This class supports parsing and modification of strings containing sequences of elements separated with some separator character.
Constructor.
Argument | Type | Default | Description |
value | String | '' | String with initial sequence values. |
sep | String | ',' | Separator character for sequence elements. |
Forces the content string to contain a tuple with the given number of elements.
Argument | Type | Default | Description |
num | Int | New number of elements. | |
fill | String | String to insert in empty spaces. |
Returns a string containing values of the sequence elements.
Reimplemented in AFX2DArrayConstString.
Returns the length in characters of a sequence element.
Argument | Type | Default | Description |
index | Int | Element index. |
Returns the position in the content string of the beginning character of the sequence element.
Argument | Type | Default | Description |
index | Int | Element index. |
Returns the value of a sequence element.
Argument | Type | Default | Description |
index | Int | Element index. |
Inserts many copies of an element.
Argument | Type | Default | Description |
index | Int | Element index at which inserting begins. | |
numElements | Int | Number of elements to insert. | |
val | String | Value for the new elements. |
Removes elements starting at the given index.
Argument | Type | Default | Description |
index | Int | Element index at which removal begins. | |
numElements | Int | Number of elements to remove. |
Resets all values for the sequence elements.
Argument | Type | Default | Description |
seqstr | String | Sequence string with new values. |
Sets the element separator character.
Argument | Type | Default | Description |
sep | String | Separator character. |
Sets the length of the sequence element.
Argument | Type | Default | Description |
index | Int | Element index. | |
length | Int | New length (in characters). |
Sets the position of the sequence element.
Argument | Type | Default | Description |
index | Int | Element index. | |
position | Int | New position within the string. |
Sets the value of a sequence element.
Argument | Type | Default | Description |
index | Int | Element index. | |
value | String | New value. | |
replaceAll | Bool | False | If False (default), leading and trailing spaces will be preserved, otherwise, all space between separators will be replaced with the new value. |