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
FBString(const char *p1Str, const char *p2Str)
Constructor from the concatenation of two strings.
FBString(const char *pStr)
Constructor from a string.
char operator[](unsigned int pIndex) const
Overloaded [] operator.
const FBString & operator=(const FBString &pStr)
Overloaded = operator with an FBString.
unsigned int GetLen() const
Get the number of characters in this string.
FBString(const FBString &pStr)
Copy constructor.
const FBString & operator=(const char *pStr)
Overloaded = operator with a string.
FBString()=default
Constructor.
const FBString & operator+=(const char *pStr)
Overloaded += operator with a string.
int Find(char pCar) const
Find first occurrence of the specified character.
bool IsEmpty() const
This method determines whether the string is empty or not.
FBString Right(unsigned int pLen) const
Extracts the last pLen characters from this string.
FBString operator+(const char *pStr)
Overloaded + operator with a string.
const FBString & operator+=(const char pChr)
Overloaded += operator with a char.
FBString Left(unsigned int pLen) const
Extracts the first pLen characters from this string.
FBString Mid(unsigned int pStart, unsigned int pLen) const
Extracts a substring of length a specified length from a certain position.
int ReverseFind(char pCar) const
Find last occurrence of the specified character.
int Find(const char *pString, bool pCaseSensitive=true, bool pStartWith=false) const
Find the index with the string pString (or start with pString)
int Find(kReference pRef) const
Find the index where pRef is stored.
FBStringList()
Constructor.
int GetCount() const
Get the number of items in the list.
KStringList * GetInternal() const
Get internal variable.
~FBStringList()
Destructor.
KStringList * mItems
Internal use only - List of items.
const char * AsString(const char pSeparator='~') const
Get as string.
FBStringList(const char *pString, const char pSeparator='~')
Constructor.
int IndexOf(const char *S) const
Get the index of a string.
void RemoveAt(int pIndex)
Remove an entry at pIndex.
void InsertAt(int pIndex, const char *S, kReference pRef=0)
Insert an entry at pIndex.
void Clear()
Clear the list (remove all the items).
int Add(const char *S, kReference pRef=0)
Add a string to the list.
bool SetString(const char *pString, const char pSeparator='~')
Set string for list.
const char * GetAt(int pIndex) const
Get the string at pIndex.
bool SetAt(int pIndex, const char *pString)
Set the string at pIndex.
void SetReferenceAt(int pIndex, kReference pRef)
Set the reference stored with the string at pIndex.
int Remove(const char *S)
Remove a string from the list.
void Sort()
Sort the string list (ascending)
const char * operator[](int pIndex) const
Overloaded [] operator.
FBStringList(const FBStringList &pOther)
Copy constructor.
kReference GetReferenceAt(int pIndex) const
Get the reference store with the string at pIndex.
#define FBSDK_DLL
Be sure that FBSDK_DLL is defined only once...