String list. More...
Public Member Functions | |
FBStringList () | |
Constructor. More... | |
FBStringList (str pString, str pSeparator='~') | |
Constructor. More... | |
FBStringList (FBStringList pOther) | |
Copy constructor. More... | |
int | Add (str S, kReference pRef=0) |
Add a string to the list. More... | |
str | AsString (str pSeparator='~') |
Get as string. More... | |
Clear () | |
Clear the list (remove all the items). More... | |
int | Find (kReference pRef) |
Find the index where pRef is stored. More... | |
int | Find (str pString, bool pCaseSensitive=True, bool pStartWith=False) |
Find the index with the string pString (or start with pString) More... | |
str | GetAt (int pIndex) |
Get the string at pIndex. More... | |
kReference | GetReferenceAt (int pIndex) |
Get the reference store with the string at pIndex. More... | |
int | IndexOf (str S) |
Get the index of a string. More... | |
InsertAt (int pIndex, str S, kReference pRef=0) | |
Insert an entry at pIndex. More... | |
int | Remove (str S) |
Remove a string from the list. More... | |
RemoveAt (int pIndex) | |
Remove an entry at pIndex. More... | |
bool | SetAt (int pIndex, str pString) |
Set the string at pIndex. More... | |
SetReferenceAt (int pIndex, kReference pRef) | |
Set the reference stored with the string at pIndex. More... | |
bool | SetString (str pString, str pSeparator='~') |
Set string for list. More... | |
Sort () | |
Sort the string list (ascending) More... | |
FBStringList | ( | ) |
Constructor.
FBStringList | ( | str | pString, |
str | pSeparator = '~' |
||
) |
Constructor.
pString | String to set for list. |
pSeparator | the string list separator. |
FBStringList | ( | FBStringList | pOther | ) |
Copy constructor.
Add a string to the list.
S | String to add to list. |
pRef | Reference to store with string (default = 0) |
Get as string.
pSeparator | the string list separator. |
Clear | ( | ) |
Clear the list (remove all the items).
int Find | ( | kReference | pRef | ) |
Find the index where pRef is stored.
pRef | Reference to look for. |
Find the index with the string pString (or start with pString)
pString | String to search for. |
pCaseSensitive | true if considering case. |
pStartWith | true if to find the index of the string which start with pString. |
Get the string at pIndex.
pIndex | Index to get string at. |
kReference GetReferenceAt | ( | int | pIndex | ) |
Get the reference store with the string at pIndex.
pIndex | Index to get reference at. |
Get the index of a string.
S | String to look for. |
Insert an entry at pIndex.
pIndex | Index where item is to be inserted. |
S | String to insert. |
pRef | Reference to store with string(default=0). |
Remove a string from the list.
S | String to remove from the list. |
RemoveAt | ( | int | pIndex | ) |
Remove an entry at pIndex.
pIndex | Index where item is to be removed from. |
Set the string at pIndex.
pIndex | Index where string is to be set. |
pString | String to set value at pIndex with. |
SetReferenceAt | ( | int | pIndex, |
kReference | pRef | ||
) |
Set the reference stored with the string at pIndex.
pIndex | Index to store reference at. |
pRef | Reference to store at pIndex. |
Set string for list.
pString | String to set for list. |
pSeparator | the string list separator. |
Sort | ( | ) |
Sort the string list (ascending)