#include <String.h>
Public Member Functions | |
String () | |
String (const char *pData) | |
String (const String &data) | |
String (const char *pData, int32 position, int32 length) | |
virtual | ~String () |
const char * | getChars () const |
int32 | findString (const char *pData) const |
int32 | findChar (char c) const |
void | setChar (int32 index, char c) |
void | clearChars (int32 quant) |
String | substringFixedNumber (int32 n) const |
String | substring (int32 position, int32 n) const |
bool | equals (String &string) |
void | toLowerCase () |
void | toUpperCase () |
int32 | length () const |
char | charAt (int32 i) const |
operator const char * () const | |
void | operator= (const char *pData) |
void | operator= (const String &in) |
void | concat (const char *pData) |
void | concat (const String &in) |
String | operator+ (const char *pData) |
String | operator+ (const String &in) |
int32 | operator== (const char *pData) const |
int32 | operator!= (const char *pData) const |
int32 | operator> (const char *pData) const |
int32 | operator< (const char *pData) const |
int32 | operator>= (const char *pData) const |
int32 | operator<= (const char *pData) const |
const char * | toString () |
Static Public Member Functions | |
static String | intToStr (int32 i) |
lang::String::String | ( | ) |
Constructor
lang::String::String | ( | const char * | pData | ) |
Constructor
in | Char array |
lang::String::String | ( | const char * | pData, | |
int32 | position, | |||
int32 | length | |||
) |
Constructor
in | Char array | |
position | The position to begin | |
length | The lenght |
virtual lang::String::~String | ( | ) | [virtual] |
Destructor
const char* lang::String::getChars | ( | ) | const |
Return an array of chars
int32 lang::String::findString | ( | const char * | pData | ) | const |
Find a sub-string in the string
str | Char array |
int32 lang::String::findChar | ( | char | c | ) | const |
Find the first occurrence of a character in the string
c | The character |
void lang::String::setChar | ( | int32 | index, | |
char | c | |||
) |
Change the character of the string in the respective index
index | The index | |
c | The character |
void lang::String::clearChars | ( | int32 | quant | ) |
Clear the first quantity of characters in the string
quant | The quantity of characters |
String lang::String::substringFixedNumber | ( | int32 | n | ) | const |
Return a string consisting of the first 'n' characters of the original one
n | The index |
String lang::String::substring | ( | int32 | position, | |
int32 | n | |||
) | const |
Return a string consisting of the 'n' characters of the original one that follow the respective position
position | The position | |
n | The index |
bool lang::String::equals | ( | String & | string | ) |
Compare the strings
string | The string object |
void lang::String::toLowerCase | ( | ) |
Change all characters to lower-case
void lang::String::toUpperCase | ( | ) |
Change all characters to upper-case
int32 lang::String::length | ( | ) | const |
Return the length of the string in bytes
char lang::String::charAt | ( | int32 | i | ) | const |
Indexing operator
i | The integer |
static String lang::String::intToStr | ( | int32 | i | ) | [static] |
Convert an integer to string
i | The integer |
lang::String::operator const char * | ( | ) | const |
Type cast to char pointer
void lang::String::operator= | ( | const char * | pData | ) |
Char pointer atribuition operator
in | The text |
void lang::String::operator= | ( | const String & | in | ) |
Atribuition operator
in | The string reference |
void lang::String::concat | ( | const char * | pData | ) |
Self-concatenation operator with a char pointer
in | The text |
void lang::String::concat | ( | const String & | in | ) |
Self-concatenation operator
in | The string reference |
String lang::String::operator+ | ( | const char * | pData | ) |
Concatenation operator with a char pointer
in | The text |
Concatenation operator
in | The string reference |
int32 lang::String::operator== | ( | const char * | pData | ) | const |
Equal compare operator
str | The text |
int32 lang::String::operator!= | ( | const char * | pData | ) | const |
Diference compare operator
str | The text |
int32 lang::String::operator> | ( | const char * | pData | ) | const |
Bigger compare operator
str | The text |
int32 lang::String::operator< | ( | const char * | pData | ) | const |
Less compare operator
str | The text |
int32 lang::String::operator>= | ( | const char * | pData | ) | const |
Bigger equal compare operator
str | The text |
int32 lang::String::operator<= | ( | const char * | pData | ) | const |
Less equal compare operator
str | The text |
const char* lang::String::toString | ( | ) | [virtual] |