32 values (
other.values),
33 ignoreCase (
other.ignoreCase)
44 values =
other.values;
55 for (
int i = 0; i <
num; ++i)
57 if (keys[i] ==
other.keys[i])
59 if (values[i] !=
other.values[i])
65 for (
int j = i;
j <
num; ++
j)
87 return values[keys.
indexOf (key, ignoreCase)];
92 auto i = keys.
indexOf (key, ignoreCase);
102 return keys.
contains (key, ignoreCase);
107 auto i = keys.
indexOf (key, ignoreCase);
111 values.
set (i, value);
152 for (
int i = 0; i < keys.
size(); ++i)
154 s << keys[i] <<
" = " << values[i];
int size() const noexcept
int indexOf(ParameterType elementToLookFor) const
bool contains(ParameterType elementToLookFor) const
int indexOf(StringRef stringToLookFor, bool ignoreCase=false, int startIndex=0) const
void minimiseStorageOverheads()
int size() const noexcept
void add(String stringToAdd)
void set(int index, String newString)
void setIgnoresCase(bool shouldIgnoreCase)
String getValue(StringRef, const String &defaultReturnValue) const
StringPairArray & operator=(const StringPairArray &other)
bool containsKey(StringRef key) const noexcept
void set(const String &key, const String &value)
String getDescription() const
void remove(StringRef key)
StringPairArray(bool ignoreCaseWhenComparingKeys=true)
const String & operator[](StringRef key) const
bool operator!=(const StringPairArray &other) const
void minimiseStorageOverheads()
void addArray(const StringPairArray &other)
int size() const noexcept
bool operator==(const StringPairArray &other) const