#include <ExtString.h>
Public Member Functions | |
ExtString () | |
inherited constructors | |
ExtString (const string &str) | |
ExtString (const string &str, size_t pos, size_t n=npos) | |
ExtString (const char *s, size_t n) | |
ExtString (const char *s) | |
ExtString (size_t n, char c) | |
ExtString | getline () |
return the first line of application string | |
ExtString | eraseline () |
return application string without first line | |
int | countlines () |
return the number of lines of application string |
Class that contains some useful additional functions for string objects: getline():get a line (terminated with line feed) in an ExtString; eraseline():delete a line (terminated with line feed) in an ExtString; countlines():counts the number of lines in a an ExtString;
ExtString::ExtString | ( | ) | [inline, explicit] |
inherited constructors
ExtString::ExtString | ( | const string & | str | ) | [inline] |
ExtString::ExtString | ( | const string & | str, | |
size_t | pos, | |||
size_t | n = npos | |||
) | [inline] |
ExtString::ExtString | ( | const char * | s, | |
size_t | n | |||
) | [inline] |
ExtString::ExtString | ( | const char * | s | ) | [inline] |
ExtString::ExtString | ( | size_t | n, | |
char | c | |||
) | [inline] |
ExtString ExtString::getline | ( | ) |
return the first line of application string
ExtString ExtString::eraseline | ( | ) |
return application string without first line
int ExtString::countlines | ( | ) |
return the number of lines of application string