FBStringList Class Reference
#include <fbstring.h>
String list.
Definition at line 201 of file fbstring.h.
FBStringList |
( |
const char * |
pString, |
|
|
const char |
pSeparator = '~' |
|
) |
| |
Constructor.
- Parameters
-
pSeparator | the string list separator. |
pString | String to set for list. |
int Add |
( |
const char * |
S, |
|
|
kReference |
pRef = 0 |
|
) |
| |
Add a string to the list.
- Parameters
-
S | String to add to list. |
pRef | Reference to store with string (default = 0) |
- Returns
- Index where item was stored.
const char* AsString |
( |
const char |
pSeparator = '~' | ) |
const |
Get as string.
- Parameters
-
pSeparator | the string list separator. |
- Returns
- String list.
Clear the list (remove all the items).
int Find |
( |
kReference |
pRef | ) |
const |
Find the index where pRef is stored.
- Parameters
-
pRef | Reference to look for. |
- Returns
- Index at which pRef can be found.
Find the index with the string pString (or start with pString)
- Parameters
-
pString | String to search for. |
pCaseSensitive | true if considering case. |
pStartWith | true if to find the index of the string which start with pString. |
- Returns
- Index where S is stored.
const char* GetAt |
( |
int |
pIndex | ) |
const |
Get the string at pIndex.
- Parameters
-
pIndex | Index to get string at. |
- Returns
- String at pIndex.
Get the number of items in the list.
- Returns
- Number of strings stored in the list.
KStringList* GetInternal |
( |
| ) |
const |
kReference GetReferenceAt |
( |
int |
pIndex | ) |
const |
Get the reference store with the string at pIndex.
- Parameters
-
pIndex | Index to get reference at. |
- Returns
- Reference stored with value at pIndex.
int IndexOf |
( |
const char * |
S | ) |
const |
Get the index of a string.
- Parameters
-
- Returns
- Index where string S was found.
void InsertAt |
( |
int |
pIndex, |
|
|
const char * |
S, |
|
|
kReference |
pRef = 0 |
|
) |
| |
Insert an entry at pIndex.
- Parameters
-
pIndex | Index where item is to be inserted. |
S | String to insert. |
pRef | Reference to store with string(default=0). |
Overload assignment operator to support deep copy.
- Parameters
-
pOther | string list to be copied from. |
- Returns
- self reference.
const char* operator[] |
( |
int |
pIndex | ) |
const |
Overloaded [] operator.
Returns the string at pIndex.
- Parameters
-
- Returns
- String stored in list at pIndex.
int Remove |
( |
const char * |
S | ) |
|
Remove a string from the list.
- Parameters
-
S | String to remove from the list. |
- Returns
- Index where item was found.
void RemoveAt |
( |
int |
pIndex | ) |
|
Remove an entry at pIndex.
- Parameters
-
pIndex | Index where item is to be removed from. |
bool SetAt |
( |
int |
pIndex, |
|
|
const char * |
pString |
|
) |
| |
Set the string at pIndex.
- Parameters
-
pIndex | Index where string is to be set. |
pString | String to set value at pIndex with. |
void SetReferenceAt |
( |
int |
pIndex, |
|
|
kReference |
pRef |
|
) |
| |
Set the reference stored with the string at pIndex.
- Parameters
-
pIndex | Index to store reference at. |
pRef | Reference to store at pIndex. |
bool SetString |
( |
const char * |
pString, |
|
|
const char |
pSeparator = '~' |
|
) |
| |
Set string for list.
- Parameters
-
pSeparator | the string list separator. |
pString | String to set for list. |
Sort the string list (ascending)
Internal use only - List of items.
Definition at line 205 of file fbstring.h.
The documentation for this class was generated from the following file: