rllib
1
|
#include <rlstring.h>
Public Member Functions | |
rlString (const char *text="") | |
rlString (rlString &text) | |
rlString (rlString *text) | |
rlString (const 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 rlString &s2) |
int | operator!= (const char *s2) |
int | operator!= (rlString &s2) |
char * | text () |
char * | text () const |
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='"') |
int | removeNewline () |
int | read (const char *filename) |
int | write (const char *filename) |
const char * | toFilename () |
const char * | toDirname () |
Private Attributes | |
char * | txt |
char * | tmp |
class for a simple ANSI-C like string.
Definition at line 27 of file rlstring.h.
rlString::rlString | ( | const char * | text = "" | ) |
rlString::rlString | ( | rlString & | text | ) |
Definition at line 32 of file rlstring.cpp.
rlString::rlString | ( | rlString * | text | ) |
Definition at line 39 of file rlstring.cpp.
rlString::rlString | ( | const rlString & | text | ) |
Definition at line 46 of file rlstring.cpp.
|
virtual |
int rlString::cat | ( | const char * | text | ) |
int rlString::lower | ( | ) |
int rlString::operator!= | ( | const char * | s2 | ) |
Definition at line 114 of file rlstring.cpp.
int rlString::operator!= | ( | rlString & | s2 | ) |
Definition at line 120 of file rlstring.cpp.
rlString & rlString::operator+ | ( | const char * | s2 | ) |
Definition at line 72 of file rlstring.cpp.
Definition at line 78 of file rlstring.cpp.
rlString & rlString::operator+= | ( | const char * | s2 | ) |
Definition at line 84 of file rlstring.cpp.
Definition at line 90 of file rlstring.cpp.
rlString & rlString::operator= | ( | const char * | s2 | ) |
Definition at line 60 of file rlstring.cpp.
Definition at line 66 of file rlstring.cpp.
int rlString::operator== | ( | const char * | s2 | ) |
Definition at line 96 of file rlstring.cpp.
int rlString::operator== | ( | rlString & | s2 | ) |
Definition at line 102 of file rlstring.cpp.
int rlString::operator== | ( | const rlString & | s2 | ) |
Definition at line 108 of file rlstring.cpp.
int rlString::printf | ( | const char * | format, |
... | |||
) |
printf the text
Definition at line 145 of file rlstring.cpp.
int rlString::read | ( | const char * | filename | ) |
int rlString::removeNewline | ( | ) |
int rlString::removeQuotas | ( | char | c = '"' | ) |
Remove quotas around a string. This might be usefull together with CSV files.
Definition at line 233 of file rlstring.cpp.
int rlString::setText | ( | const char * | text | ) |
int rlString::startsWith | ( | const char * | startstr | ) |
char * rlString::strchr | ( | int | c | ) |
strchr()
Definition at line 223 of file rlstring.cpp.
int rlString::strcpy | ( | const char * | text | ) |
int rlString::strnnocasecmp | ( | const char * | other, |
int | n | ||
) |
case insensitive string compare starting n characters
Definition at line 213 of file rlstring.cpp.
int rlString::strnocasecmp | ( | const char * | other | ) |
case insensitive string compare
Definition at line 203 of file rlstring.cpp.
char * rlString::strrchr | ( | int | c | ) |
strchr()
Definition at line 228 of file rlstring.cpp.
char * rlString::strstr | ( | const char * | substring | ) |
char * rlString::text | ( | ) |
get the text
Definition at line 126 of file rlstring.cpp.
char * rlString::text | ( | ) | const |
Definition at line 131 of file rlstring.cpp.
const char * rlString::toDirname | ( | ) |
const char * rlString::toFilename | ( | ) |
int rlString::upper | ( | ) |
int rlString::write | ( | const char * | filename | ) |
|
private |
Definition at line 158 of file rlstring.h.
|
private |
Definition at line 157 of file rlstring.h.