#include <rlstring.h>
Public Member Functions | |
rlString (const char *text="") | |
rlString (rlString &text) | |
rlString (rlString *text) | |
virtual | ~rlString () |
rlString & | operator= (const char *s2) |
rlString & | operator= (rlString &s2) |
rlString & | operator+ (const char *s2) |
rlString & | operator+ (rlString &s2) |
rlString & | operator+= (const char *s2) |
rlString & | operator+= (rlString &s2) |
int | operator== (const char *s2) |
int | operator== (rlString &s2) |
int | operator!= (const char *s2) |
int | operator!= (rlString &s2) |
char * | text () |
int | setText (const char *text) |
int | printf (const char *format,...) |
int | strcpy (const char *text) |
int | cat (const char *text) |
int | upper () |
int | lower () |
int | startsWith (const char *startstr) |
int | strnocasecmp (const char *other) |
int | strnnocasecmp (const char *other, int n) |
char * | strstr (const char *substring) |
char * | strchr (int c) |
char * | strrchr (int c) |
int | removeQuotas (char c='"') |
Private Attributes | |
char * | txt |
class for a simple ANSI-C like string.
Definition at line 25 of file rlstring.h.
rlString::rlString | ( | const char * | text = "" | ) |
rlString::rlString | ( | rlString & | text | ) |
Definition at line 27 of file rlstring.cpp.
rlString::rlString | ( | rlString * | text | ) |
Definition at line 33 of file rlstring.cpp.
|
virtual |
int rlString::cat | ( | const char * | text | ) |
int rlString::lower | ( | ) |
converst string to upper case
Definition at line 166 of file rlstring.cpp.
int rlString::operator!= | ( | const char * | s2 | ) |
Definition at line 92 of file rlstring.cpp.
int rlString::operator!= | ( | rlString & | s2 | ) |
Definition at line 98 of file rlstring.cpp.
rlString & rlString::operator+ | ( | const char * | s2 | ) |
Definition at line 56 of file rlstring.cpp.
Definition at line 62 of file rlstring.cpp.
rlString & rlString::operator+= | ( | const char * | s2 | ) |
Definition at line 68 of file rlstring.cpp.
Definition at line 74 of file rlstring.cpp.
rlString & rlString::operator= | ( | const char * | s2 | ) |
Definition at line 44 of file rlstring.cpp.
Definition at line 50 of file rlstring.cpp.
int rlString::operator== | ( | const char * | s2 | ) |
Definition at line 80 of file rlstring.cpp.
int rlString::operator== | ( | rlString & | s2 | ) |
Definition at line 86 of file rlstring.cpp.
int rlString::printf | ( | const char * | format, |
... | |||
) |
printf the text
Definition at line 118 of file rlstring.cpp.
int rlString::removeQuotas | ( | char | c = '"' | ) |
Remove quotas around a string. This might be usefull together with CSV files.
Definition at line 206 of file rlstring.cpp.
int rlString::setText | ( | const char * | text | ) |
int rlString::startsWith | ( | const char * | startstr | ) |
test if string starts with startstr
Definition at line 171 of file rlstring.cpp.
char * rlString::strchr | ( | int | c | ) |
int rlString::strcpy | ( | const char * | text | ) |
int rlString::strnnocasecmp | ( | const char * | other, |
int | n | ||
) |
int rlString::strnocasecmp | ( | const char * | other | ) |
char * rlString::strrchr | ( | int | c | ) |
char * rlString::strstr | ( | const char * | substring | ) |
strstr()
Definition at line 155 of file rlstring.cpp.
char * rlString::text | ( | ) |
int rlString::upper | ( | ) |
converst string to upper case
Definition at line 161 of file rlstring.cpp.
|
private |
Definition at line 127 of file rlstring.h.