UIStringCollection

UIString item collection

Based on array.

Members

Functions

add
void add(string item, int index)

Insert resource id item into specified position

add
void add(dstring item, int index)

Insert unicode string item into specified position

add
void add(StringListValue item, int index)

Insert StringListValue.label item into specified position

add
void add(UIString item, int index)

Insert UIString item into specified position

addAll
void addAll(UIStringCollection items)

Append UIStringCollection

addAll
void addAll(dstring[] items)

Append array of unicode strings

addAll
void addAll(string[] items)

Append array of unicode strings

addAll
void addAll(UIString[] items)

Append array of unicode strings

addAll
void addAll(StringListValue[] items)

Append array of unicode strings

clear
void clear()

Remove all items

get
dstring get(size_t index)

Return unicode string for item by index

indexOf
int indexOf(dstring str)

Return index of first item with specified text or -1 if not found.

indexOf
int indexOf(string strId)

Return index of first item with specified string resource id or -1 if not found.

indexOf
int indexOf(UIString str)

Return index of first item with specified string or -1 if not found.

opAssign
void opAssign(UIStringCollection items)

Assign UIStringCollection

opAssign
void opAssign(string[] items)

Assign array of string resource IDs

opAssign
void opAssign(dstring[] items)

Assign array of unicode strings

opAssign
void opAssign(UIString[] items)

Assign array of UIString

opAssign
void opAssign(StringListValue[] items)

Assign array of StringListValue

opIndex
UIString[] opIndex()

Slice

opIndex
UIString opIndex(size_t index)

Read item by index

opIndexAssign
UIString opIndexAssign(UIString value, size_t index)

Modify item by index

opSlice
UIString[] opSlice()

Slice

opSlice
UIString[] opSlice(size_t start, size_t end)

Slice

remove
void remove(int index)

Remove item with specified index

Properties

empty
bool empty [@property getter]

Returns true if collection is empty

length
int length [@property getter]

Returns number of items

Meta