46 using QList<
KString>::operator=;
49 operator QStringList()
const;
51#ifdef KDWINUTILS_WITHMFC
56 void Copy(
const CStringArray &strArray);
77 const QString &
GetAt(
int nIndex)
const;
The KStringArray class provides a list of strings.
Definition kstringarray.h:39
bool IsEmpty() const
Determines if the array is empty.
KStringArray & operator=(const QStringList &strList)
void RemoveAt(int nIndex, int nCount=1)
Removes an element at a specific index.
void Copy(const CStringArray &strArray)
Copies another array to the array; grows the array if necessary.
QStringList toQStringList() const
void FreeExtra()
Frees all unused memory above the current upper bound.
void InsertAt(int nIndex, const KString &newElement, int nCount=1)
Inserts an element at a specified index.
int GetCount() const
Gets the number of elements in this array.
void SetAtGrow(int nIndex, const QString &newElement)
Sets the value for a given index; grows the array if necessary.
int GetUpperBound() const
Returns the largest valid index.
const QString & GetAt(int nIndex) const
Returns the value at a given index.
void SetSize(int nNewSize, int nGrowBy=-1)
int Add(const KString &str)
Adds an element to the end of the array; grows the array if necessary.
int GetSize() const
Gets the number of elements in this array.
void InsertAt(int nStartIndex, const KStringArray &pNewArray)
Inserts all the elements in another array at a specified index.
void SetAt(int nIndex, const KString &newElement)
Sets the value for a given index; array not allowed to grow.
void RemoveAll()
Removes all the elements from this array.
QString & ElementAt(int nIndex)
Returns a temporary reference to the element pointer within the array.
void Copy(const KStringArray &src)
Copies another array to the array; grows the array if necessary.
KStringArray(const QStringList &strList)
int Append(const KStringArray &src)
Appends another array to the array; grows the array if necessary.
The KString class provides a Unicode character string.
Definition kstring.h:45
#define KDWINUTILS_EXPORT
Definition kdwinutils_export.h:31
#define KDWINUTILS_BEGIN_NAMESPACE
Definition kdwinutils_global.h:27
#define KDWINUTILS_END_NAMESPACE
Definition kdwinutils_global.h:28