59 StringArray (
const std::initializer_list<const char*>& strings);
95 explicit StringArray (
const wchar_t*
const* strings);
157 String& getReference (
int index)
noexcept;
176 bool ignoreCase =
false)
const;
189 bool ignoreCase =
false,
190 int startIndex = 0)
const;
233 template <
typename Iterator>
236 ensureStorageAllocated (size() + (
int)
static_cast<size_t> (end - start));
239 strings.add (*start++);
249 bool ignoreCase =
false);
332 void remove (
int index);
339 bool ignoreCase =
false);
361 void removeDuplicates (
bool ignoreCase);
429 void sort (
bool ignoreCase);
452 void minimiseStorageOverheads();
Holds a resizable array of primitive or copy-by-value objects.
int size() const noexcept
Returns the current number of elements in the array.
ElementType * begin() const noexcept
Returns a pointer to the first element in the array.
ElementType * end() const noexcept
Returns a pointer to the element which follows the last element in the array.
Wraps a pointer to a null-terminated UTF-8 character string, and provides various methods to operate ...
A special array for holding a list of strings.
StringArray(StringRef firstValue, OtherElements... otherValues)
Creates an array containing a list of strings.
String * end() const noexcept
Returns a pointer to the String which follows the last element in the array.
Array< String > strings
This is the array holding the actual strings.
void addArray(Iterator &&start, Iterator &&end)
Adds items from a range of start/end iterators of some kind of objects which can be implicitly conver...
String * begin() const noexcept
Returns a pointer to the first String in the array.
int size() const noexcept
Returns the number of strings in the array.
bool isEmpty() const noexcept
Returns true if the array is empty, false otherwise.
A simple class for holding temporary references to a string literal or String.
#define JUCE_API
This macro is added to all JUCE public class declarations.