|
| HString (const char *str) |
|
| HString (const char *str, const size_t len) |
|
| HString (char c) |
|
| HString (const int value) |
| This constructor is used to catch mistakes made by Hospan component developers.
|
|
| HString (const HString &rOther) |
| Copy constructor.
|
|
| HString (const HString &rOther, size_t pos, size_t len=npos) |
|
void | setString (const char *str) |
| Set the string by copying const char*.
|
|
void | setString (const char *str, const size_t len) |
| Set the string by copying a specific number of chars from const char*.
|
|
HString & | append (const char *str) |
|
HString & | append (const char chr) |
|
HString & | append (const HString &str) |
|
HString & | erase (size_t pos=0, size_t len=npos) |
|
void | clear () |
| Clear the string.
|
|
void | replace (const size_t pos, const size_t len, const char *str) |
|
HString & | replace (const char *oldstr, const char *newstr) |
|
HString & | replace (const HString &rOldstr, const HString &rNewstr) |
|
const char * | c_str () const |
| Returns a c_str pointer to internal data.
|
|
size_t | size () const |
|
bool | empty () const |
| Check if string is empty.
|
|
bool | compare (const char *other) const |
| Compare string to const char*.
|
|
bool | compare (const HString &rOther) const |
|
bool | startsWith (const HString &rOther) const |
|
bool | isNummeric () const |
| Check if the string can be interpreted as a number.
|
|
bool | isBool () const |
| Check if the string can be interpreted as bool (true, false, 1, 0)
|
|
double | toDouble (bool *isOK) const |
|
long int | toLongInt (bool *isOK) const |
|
bool | toBool (bool *isOK) const |
|
HString | substr (const size_t pos, const size_t len=npos) const |
| Extract substring.
|
|
HVector< HString > | split (const char delim) const |
|
size_t | find_first_of (const char c, size_t pos=0) const |
|
size_t | rfind (const char c, size_t pos=npos) const |
|
size_t | find (const char c, size_t pos=0) const |
|
size_t | find (const char *s, size_t pos=0) const |
|
size_t | find (const HString &s, size_t pos=0) const |
|
bool | containes (const HString &rString) const |
|
bool | containes (const char c) const |
|
bool | containes (const char *s) const |
|
char | front () const |
|
char & | front () |
|
char | back () const |
|
char & | back () |
|
char | at (const size_t pos) const |
|
char & | operator[] (const size_t idx) |
|
const char & | operator[] (const size_t idx) const |
|
bool | operator< (const HString &rhs) const |
|
HString & | operator+= (const HString &rhs) |
|
HString & | operator+= (const char *rhs) |
|
HString & | operator+= (const char rhs) |
|
HString & | operator= (const char *rhs) |
|
HString & | operator= (const char rhs) |
|
HString & | operator= (const HString &rhs) |
|
static const size_t | npos = std::numeric_limits<size_t>::max() |
|