Open Reality Reference Guide
|
|
Go to the documentation of this file.
43 #include <kaydaradef.h>
49 #define FBSDK_DLL K_DLLIMPORT
54 K_FORWARD( KStringList );
56 #ifdef FBSDKUseNamespace
57 namespace FBSDKNamespace {
69 char* mStr{
nullptr };
95 operator char*()
const;
96 operator const char*()
const;
121 bool operator == (
const char* pStr )
const;
122 bool operator == (
char* pStr )
const;
129 bool operator != (
const char* pStr )
const;
130 bool operator != (
char* pStr )
const;
194 void Copy(
const char* pStr );
199 void Cat(
const char* pStr );
254 int Find( kReference pRef )
const;
262 int Find(
const char *pString,
bool pCaseSensitive =
true,
bool pStartWith =
false )
const;
268 const char *
GetAt(
int pIndex )
const;
295 const char*
AsString(
const char pSeparator =
'~')
const;
301 bool SetString(
const char *pString,
const char pSeparator =
'~');
308 int Add(
const char *S,kReference pRef = 0 );
329 void InsertAt(
int pIndex,
const char *S,kReference pRef = 0 );
335 bool SetAt(
int pIndex,
const char *pString );
341 #ifdef FBSDKUseNamespace
void InsertAt(int pIndex, const char *S, kReference pRef=0)
Insert an entry at pIndex.
int GetCount() const
Get the number of items in the list.
FBString(const char *pStr)
Constructor from a string.
FBString Mid(unsigned int pStart, unsigned int pLen) const
Extracts a substring of length a specified length from a certain position.
void RemoveAt(int pIndex)
Remove an entry at pIndex.
FBString Right(unsigned int pLen) const
Extracts the last pLen characters from this string.
int Find(const char *pString, bool pCaseSensitive=true, bool pStartWith=false) const
Find the index with the string pString (or start with pString)
FBString operator+(const char *pStr)
Overloaded + operator with a string.
~FBStringList()
Destructor.
bool SetAt(int pIndex, const char *pString)
Set the string at pIndex.
const char * GetAt(int pIndex) const
Get the string at pIndex.
FBStringList(const char *pString, const char pSeparator='~')
Constructor.
bool IsEmpty() const
This method determines whether the string is empty or not.
int IndexOf(const char *S) const
Get the index of a string.
int Find(char pCar) const
Find first occurrence of the specified character.
int Remove(const char *S)
Remove a string from the list.
const FBString & operator=(const char *pStr)
Overloaded = operator with a string.
const char * operator[](int pIndex) const
Overloaded [] operator.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...
const FBString & operator+=(const char *pStr)
Overloaded += operator with a string.
FBString(const char *p1Str, const char *p2Str)
Constructor from the concatenation of two strings.
unsigned int GetLen() const
Get the number of characters in this string.
kReference GetReferenceAt(int pIndex) const
Get the reference store with the string at pIndex.
KStringList * mItems
Internal use only - List of items.
bool SetString(const char *pString, const char pSeparator='~')
Set string for list.
FBString()=default
Constructor.
FBStringList()
Constructor.
FBStringList(const FBStringList &pOther)
Copy constructor.
void Clear()
Clear the list (remove all the items).
KStringList * GetInternal() const
Get internal variable.
FBString Left(unsigned int pLen) const
Extracts the first pLen characters from this string.
const FBString & operator+=(const char pChr)
Overloaded += operator with a char.
char operator[](unsigned int pIndex) const
Overloaded [] operator.
const FBString & operator=(const FBString &pStr)
Overloaded = operator with an FBString.
const char * AsString(const char pSeparator='~') const
Get as string.
void Sort()
Sort the string list (ascending)
int ReverseFind(char pCar) const
Find last occurrence of the specified character.
int Find(kReference pRef) const
Find the index where pRef is stored.
void SetReferenceAt(int pIndex, kReference pRef)
Set the reference stored with the string at pIndex.
int Add(const char *S, kReference pRef=0)
Add a string to the list.
FBString(const FBString &pStr)
Copy constructor.