|
Public Member Functions |
| MNString () |
| MNString (const MNString &x) |
| MNString (const MNSubString &x) |
| MNString (const char *t) |
| MNString (const string t) |
| MNString (const char *t, int len) |
| MNString (char c) |
| ~MNString () |
MNString & | operator= (const MNString &y) |
MNString & | operator= (const char *y) |
MNString & | operator= (char c) |
MNString & | operator= (const MNSubString &y) |
MNString & | operator= (const string y) |
MNString & | operator+= (const MNString &y) |
MNString & | operator+= (const MNSubString &y) |
MNString & | operator+= (const char *t) |
MNString & | operator+= (char c) |
void | prepend (const MNString &y) |
void | prepend (const MNSubString &y) |
void | prepend (const char *t) |
void | prepend (char c) |
int | index (char c, int startpos=0) const |
int | index (const MNString &y, int startpos=0) const |
int | index (const MNSubString &y, int startpos=0) const |
int | index (const char *t, int startpos=0) const |
int | index (const MNRegex &r, int startpos=0) const |
int | contains (char c) const |
int | contains (const MNString &y) const |
int | contains (const MNSubString &y) const |
int | contains (const char *t) const |
int | contains (const MNRegex &r) const |
int | contains (char c, int pos) const |
int | contains (const MNString &y, int pos) const |
int | contains (const MNSubString &y, int pos) const |
int | contains (const char *t, int pos) const |
int | contains (const MNRegex &r, int pos) const |
int | matches (char c, int pos=0) const |
int | matches (const MNString &y, int pos=0) const |
int | matches (const MNSubString &y, int pos=0) const |
int | matches (const char *t, int pos=0) const |
int | matches (const MNRegex &r, int pos=0) const |
int | freq (char c) const |
int | freq (const MNString &y) const |
int | freq (const MNSubString &y) const |
int | freq (const char *t) const |
void | del (int pos, int len) |
void | del (const MNString &y, int startpos=0) |
void | del (const MNSubString &y, int startpos=0) |
void | del (const char *t, int startpos=0) |
void | del (char c, int startpos=0) |
void | del (const MNRegex &r, int startpos=0) |
int | gsub (const MNString &pat, const MNString &repl) |
int | gsub (const MNSubString &pat, const MNString &repl) |
int | gsub (const char *pat, const MNString &repl) |
int | gsub (const char *pat, const char *repl) |
int | gsub (const MNRegex &pat, const MNString &repl) |
void | reverse () |
void | upcase () |
void | downcase () |
void | capitalize () |
char & | operator[] (int i) |
const char & | operator[] (int i) const |
char | elem (int i) const |
char | firstchar () const |
char | lastchar () const |
| operator const char * () const |
const char * | chars () const |
unsigned int | length () const |
int | empty () const |
void | alloc (int newsize) |
int | allocation () const |
void | error (const char *msg) const |
int | OK () const |
|
at() return the substring at the position specified by the first parameter.
|
MNSubString | at (int pos, int len) |
MNSubString | operator() (int pos, int len) |
MNSubString | at (const MNString &x, int startpos=0) |
MNSubString | at (const MNSubString &x, int startpos=0) |
MNSubString | at (const char *t, int startpos=0) |
MNSubString | at (char c, int startpos=0) |
MNSubString | at (const MNRegex &r, int startpos=0) |
|
MNSubString | before (int pos) |
MNSubString | before (const MNString &x, int startpos=0) |
MNSubString | before (const MNSubString &x, int startpos=0) |
MNSubString | before (const char *t, int startpos=0) |
MNSubString | before (char c, int startpos=0) |
MNSubString | before (const MNRegex &r, int startpos=0) |
|
MNSubString | through (int pos) |
MNSubString | through (const MNString &x, int startpos=0) |
MNSubString | through (const MNSubString &x, int startpos=0) |
MNSubString | through (const char *t, int startpos=0) |
MNSubString | through (char c, int startpos=0) |
MNSubString | through (const MNRegex &r, int startpos=0) |
|
MNSubString | from (int pos) |
MNSubString | from (const MNString &x, int startpos=0) |
MNSubString | from (const MNSubString &x, int startpos=0) |
MNSubString | from (const char *t, int startpos=0) |
MNSubString | from (char c, int startpos=0) |
MNSubString | from (const MNRegex &r, int startpos=0) |
|
MNSubString | after (int pos) |
MNSubString | after (const MNString &x, int startpos=0) |
MNSubString | after (const MNSubString &x, int startpos=0) |
MNSubString | after (const char *t, int startpos=0) |
MNSubString | after (char c, int startpos=0) |
MNSubString | after (const MNRegex &r, int startpos=0) |
Protected Member Functions |
int | search (int, int, const char *, int=-1) const |
int | search (int, int, char) const |
int | match (int, int, int, const char *, int=-1) const |
int | _gsub (const char *, int, const char *, int) |
int | _gsub (const MNRegex &, const char *, int) |
MNSubString | _substr (int, int) |
Protected Attributes |
MNStrRep * | rep |
Friends |
void | cat (const MNString &, const MNString &, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const MNSubString &, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const char *, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, char, MNString &) |
| A concatenation function.
|
void | cat (const MNSubString &, const MNString &, MNString &) |
| A concatenation function.
|
void | cat (const MNSubString &, const MNSubString &, MNString &) |
| A concatenation function.
|
void | cat (const MNSubString &, const char *, MNString &) |
| A concatenation function.
|
void | cat (const MNSubString &, char, MNString &) |
| A concatenation function.
|
void | cat (const char *, const MNString &, MNString &) |
| A concatenation function.
|
void | cat (const char *, const MNSubString &, MNString &) |
| A concatenation function.
|
void | cat (const char *, const char *, MNString &) |
| A concatenation function.
|
void | cat (const char *, char, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const MNString &, const MNString &, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const MNString &, const MNSubString &, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const MNString &, const char *, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const MNString &, char, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const MNSubString &, const MNString &, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const MNSubString &, const MNSubString &, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const MNSubString &, const char *, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const MNSubString &, char, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const char *, const MNString &, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const char *, const MNSubString &, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const char *, const char *, MNString &) |
| A concatenation function.
|
void | cat (const MNString &, const char *, char, MNString &) |
| A concatenation function.
|
void | cat (const char *, const MNString &, const MNString &, MNString &) |
| A concatenation function.
|
void | cat (const char *, const MNString &, const MNSubString &, MNString &) |
| A concatenation function.
|
void | cat (const char *, const MNString &, const char *, MNString &) |
| A concatenation function.
|
void | cat (const char *, const MNString &, char, MNString &) |
| A concatenation function.
|
void | cat (const char *, const MNSubString &, const MNString &, MNString &) |
| A concatenation function.
|
void | cat (const char *, const MNSubString &, const MNSubString &, MNString &) |
| A concatenation function.
|
void | cat (const char *, const MNSubString &, const char *, MNString &) |
| A concatenation function.
|
void | cat (const char *, const MNSubString &, char, MNString &) |
| A concatenation function.
|
void | cat (const char *, const char *, const MNString &, MNString &) |
| A concatenation function.
|
void | cat (const char *, const char *, const MNSubString &, MNString &) |
| A concatenation function.
|
void | cat (const char *, const char *, const char *, MNString &) |
| A concatenation function.
|
void | cat (const char *, const char *, char, MNString &) |
| A concatenation function.
|
int | split (const MNString &x, MNString res[], int maxn, const MNString &sep) |
int | split (const MNString &x, MNString res[], int maxn, const MNRegex &sep) |
MNString | common_prefix (const MNString &x, const MNString &y, int startpos=0) |
MNString | common_suffix (const MNString &x, const MNString &y, int startpos=-1) |
MNString | replicate (char c, int n) |
MNString | replicate (const MNString &y, int n) |
MNString | join (MNString src[], int n, const MNString &sep) |
MNString | reverse (const MNString &x) |
MNString | upcase (const MNString &x) |
MNString | downcase (const MNString &x) |
MNString | capitalize (const MNString &x) |
std::ostream & | operator<< (std::ostream &s, const MNString &x) |
std::ostream & | operator<< (std::ostream &s, const MNSubString &x) |
std::istream & | operator>> (std::istream &s, MNString &x) |
int | readline (std::istream &s, MNString &x, char terminator= '\n', int discard_terminator=1) |