Basic string class.
Provides basic string manipulation functionality (dynamic sizing, operator overloads).
Definition at line 66 of file fbstring.h.
#include <fbstring.h>
Public Member Functions |
|
| FBString () | |
| Constructor. |
|
| FBString (const char *pStr) | |
| Constructor from a string. |
|
| FBString (const FBString &pStr) | |
| Copy constructor. |
|
| FBString (const char *p1Str, const char *p2Str) | |
| Constructor from the concatenation of two
strings. |
|
| ~FBString () | |
| Destructor. |
|
| operator char * () const | |
| Overloaded char* conversion operator.
|
|
| operator const char * () const | |
| char | operator[] (unsigned int pIndex) const |
| Overloaded [] operator. |
|
| const FBString & | operator= (const char *pStr) |
| Overloaded = operator with a string.
|
|
| const FBString & | operator= (const FBString &pStr) |
| Overloaded = operator with an FBString. |
|
| bool | operator== (const FBString &pStr) const |
| Overloaded == operator with a string.
|
|
| bool | operator== (const char *pStr) const |
| bool | operator== (char *pStr) const |
| bool | operator!= (const FBString &pStr) const |
| Overloaded != operator with a string.
|
|
| bool | operator!= (const char *pStr) const |
| bool | operator!= (char *pStr) const |
| const FBString & | operator+= (const char *pStr) |
| Overloaded += operator with a string.
|
|
| FBString | operator+ (const char *pStr) |
| Overloaded + operator with a string.
|
|
| FBString | Mid (unsigned int pStart, unsigned int pLen) const |
| Extracts a substring of length a specified
length from a certain position. |
|
| FBString | Left (unsigned int pLen) const |
| Extracts the first pLen caracters from this
string. |
|
| FBString | Right (unsigned int pLen) const |
| Extracts the last pLen caracters from this
string. |
|
| unsigned int | GetLen () const |
| Get the number of caracters in this string.
|
|
| bool | IsEmpty () const |
| This method determines whether the string is
empty or not. |
|
| int | Find (char pCar) const |
| Find first occurence of the specified
caracter. |
|
| int | ReverseFind (char pCar) const |
| Find last occurence of the specified
caracter. |
|
Friends |
|
| FBString | operator+ (const FBString &p1Str, const char *p2Str) |
| FBString | ( | ) |
Constructor.
| FBString | ( | const char * | pStr | ) |
Constructor from a string.
| pStr | String to copy. |
| FBString | ( | const char * | p1Str, |
| const char * | p2Str | ||
| ) |
Constructor from the concatenation of two strings.
| p1Str | First string to copy. |
| p2Str | Second string to copy. |
| ~FBString | ( | ) |
Destructor.
| operator char * | ( | ) | const |
Overloaded char* conversion operator.
| operator const char * | ( | ) | const |
| char operator[] | ( | unsigned int | pIndex | ) | const |
Overloaded [] operator.
| pIndex | Index to read character from. |
| const FBString& operator= | ( | const char * | pStr | ) |
Overloaded = operator with a string.
| pStr | String to copy (char*). |
| bool operator== | ( | const FBString & | pStr | ) | const |
Overloaded == operator with a string.
| pStr | String to compare with (char*). |
| bool operator== | ( | const char * | pStr | ) | const |
| bool operator== | ( | char * | pStr | ) | const |
| bool operator!= | ( | const FBString & | pStr | ) | const |
Overloaded != operator with a string.
| pStr | String to compare with (char*) |
| bool operator!= | ( | const char * | pStr | ) | const |
| bool operator!= | ( | char * | pStr | ) | const |
| const FBString& operator+= | ( | const char * | pStr | ) |
Overloaded += operator with a string.
| pStr | String to concatenate to this. |
| FBString operator+ | ( | const char * | pStr | ) |
Overloaded + operator with a string.
| pStr | String to add. |
| FBString Mid | ( | unsigned int | pStart, |
| unsigned int | pLen | ||
| ) | const |
Extracts a substring of length a specified length from a certain position.
| pStart | Index of start. |
| pLen | Number of caracter to extract. |
| FBString Left | ( | unsigned int | pLen | ) | const |
Extracts the first pLen caracters from this string.
| pLen | Number of caracters to extract. |
| FBString Right | ( | unsigned int | pLen | ) | const |
Extracts the last pLen caracters from this string.
| pLen | Number of caracters to extract. |
| unsigned int GetLen | ( | ) | const |
Get the number of caracters in this string.
| bool IsEmpty | ( | ) | const |
This method determines whether the string is empty or not.
| int Find | ( | char | pCar | ) | const |
Find first occurence of the specified caracter.
| pCar | Caracter to find in the string. |
| int ReverseFind | ( | char | pCar | ) | const |
Find last occurence of the specified caracter.
| pCar | Caracter to find in the string. |