mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Changed SparseSet to work with Range objects. Fixed array sorting bug.
This commit is contained in:
parent
21006fbd0a
commit
9c5651fb8e
14 changed files with 251 additions and 310 deletions
|
|
@ -116,6 +116,12 @@ const String& StringArray::operator[] (const int index) const throw()
|
|||
return String::empty;
|
||||
}
|
||||
|
||||
String& StringArray::getReference (const int index) throw()
|
||||
{
|
||||
jassert (((unsigned int) index) < (unsigned int) strings.size());
|
||||
return strings.getReference (index);
|
||||
}
|
||||
|
||||
void StringArray::add (const String& newString)
|
||||
{
|
||||
strings.add (newString);
|
||||
|
|
|
|||
|
|
@ -108,6 +108,12 @@ public:
|
|||
*/
|
||||
const String& operator[] (int index) const throw();
|
||||
|
||||
/** Returns a reference to one of the strings in the array.
|
||||
This lets you modify a string in-place in the array, but you must be sure that
|
||||
the index is in-range.
|
||||
*/
|
||||
String& getReference (int index) throw();
|
||||
|
||||
/** Searches for a string in the array.
|
||||
|
||||
The comparison will be case-insensitive if the ignoreCase parameter is true.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue