|
void | operator= (const char *text) |
| Assign a string buffer from a null terminated string. More...
|
|
void | operator= (String &object) |
| Assign a string buffer from another string object. More...
|
|
| stringbuf () |
| Create an empty instance of a string buffer.
|
|
| stringbuf (const char *text) |
| Create a string buffer from a null terminated string. More...
|
|
| memstring (void *memory, size_t size) |
| Create an instance of a memory string. More...
|
|
void | operator= (String &object) |
| Assign the text of a string to our object. More...
|
|
void | operator= (const char *text) |
| Assign null terminated text to our object. More...
|
|
| ~memstring () |
| Destroy memory string.
|
|
int | __isoc99_scanf (const char *format,...) |
| Scan input items from a string object. More...
|
|
int | __isoc99_vscanf (const char *format, va_list args) |
| Scan input items from a string object. More...
|
|
void | add (const char *text) |
| Append null terminated text to our string buffer. More...
|
|
void | add (char character) |
| Append a single character to our string buffer. More...
|
|
char | at (int position) const |
| Return character found at a specific position in the string. More...
|
|
const char * | begin (void) const |
| Get pointer to first character in string for iteration. More...
|
|
char * | c_mem () |
|
const char * | c_str (void) const |
| Get character text buffer of string object. More...
|
|
size_t | ccount (const char *list) const |
| Count number of occurrences of characters in string. More...
|
|
void | chop (const char *list) |
| Chop trailing characters from the string. More...
|
|
void | chop (size_t count=1) |
| Chop trailing characters from text. More...
|
|
const char * | chr (char character) const |
| Find pointer in string where specified character appears. More...
|
|
void | clear (size_t offset) |
| Clear a field of a filled string with filler. More...
|
|
void | clear (void) |
| Clear string by setting to empty.
|
|
virtual int | compare (const char *string) const |
| Compare the values of two string. More...
|
|
String | copy (size_t offset, size_t size) const |
| Convenience method for substring extraction. More...
|
|
size_t | count (void) const |
| Count all characters in the string (strlen). More...
|
|
void | cut (size_t offset, size_t size=0) |
| Cut (remove) text from string. More...
|
|
char * | data (void) |
| Get memory text buffer of string object. More...
|
|
const char * | end (void) const |
| Get pointer to last character in string for iteration. More...
|
|
void | erase (void) |
| Erase string memory.
|
|
void | fill (size_t size, char fill) |
|
const char * | find (const char *list, size_t offset=0) const |
| Find a character in the string. More...
|
|
bool | full (void) const |
| Test if the string's allocated space is all used up. More...
|
|
String | get (size_t offset, size_t size=0) const |
| Get a new string object as a substring of the current object. More...
|
|
String | left (size_t size) const |
| Convenience method for left of string. More...
|
|
size_t | len (void) const |
| Get length of string. More...
|
|
void | lower (void) |
| Convert string to lower case.
|
|
size_t | offset (const char *pointer) const |
| Find offset of a pointer into our string buffer. More...
|
|
| operator bool () const |
| Test if string has data. More...
|
|
| operator const char * () const |
| Casting reference to raw text string. More...
|
|
bool | operator! () const |
| Test if string is empty. More...
|
|
bool | operator!= (const char *text) const |
| Compare our object with null terminated text. More...
|
|
String & | operator% (short &value) |
| Parse short integer value from a string. More...
|
|
String & | operator% (unsigned short &value) |
| Parse short integer value from a string. More...
|
|
String & | operator% (long &value) |
| Parse long integer value from a string. More...
|
|
String & | operator% (unsigned long &value) |
| Parse long integer value from a string. More...
|
|
String & | operator% (double &value) |
| Parse double value from a string. More...
|
|
String & | operator% (const char *text) |
| Parse text from a string in a scan expression. More...
|
|
String & | operator& (const char *text) |
| Concatenate null terminated text to our object. More...
|
|
String & | operator&= (const char *text) |
|
String | operator() (int offset, size_t size) const |
| Get a new substring through object expression. More...
|
|
const char * | operator() (int offset) const |
| Reference a string in the object by relative offset. More...
|
|
const char * | operator* () const |
| Reference raw text buffer by pointer operator. More...
|
|
bool | operator*= (const char *substring) |
|
bool | operator*= (regex &expr) |
|
String & | operator*= (size_t number) |
| Delete a specified number of characters from start of string. More...
|
|
const String | operator+ (const char *text) const |
| Concatenate null terminated text to our object. More...
|
|
String & | operator++ (void) |
| Delete first character from string.
|
|
String & | operator+= (const char *text) |
| Concatenate text to an existing string object. More...
|
|
String & | operator+= (size_t number) |
| Delete a specified number of characters from start of string. More...
|
|
String & | operator-- (void) |
| Delete last character from string.
|
|
String & | operator-= (size_t number) |
| Delete a specified number of characters from end of string. More...
|
|
bool | operator< (const char *text) const |
| Compare our object with null terminated text. More...
|
|
String & | operator<< (const char *text) |
|
String & | operator<< (char code) |
|
bool | operator<= (const char *text) const |
| Compare our object with null terminated text. More...
|
|
String & | operator= (const String &object) |
| Assign our string with the cstring of another object. More...
|
|
String & | operator= (const char *text) |
| Assign text to our existing buffer. More...
|
|
bool | operator== (const char *text) const |
| Compare our object with null terminated text. More...
|
|
bool | operator> (const char *text) const |
| Compare our object with null terminated text. More...
|
|
bool | operator>= (const char *text) const |
| Compare our object with null terminated text. More...
|
|
const char | operator[] (int offset) const |
| Reference a single character in string object by array offset. More...
|
|
String & | operator^= (const String &object) |
| Create new cow instance and assign value from another string object. More...
|
|
String & | operator^= (const char *text) |
| Create new cow instance and assign value from null terminated text. More...
|
|
String & | operator| (const char *text) |
| Concatenate null terminated text to our object. More...
|
|
String & | operator|= (const char *text) |
| Concatenate text to an existing string object. More...
|
|
void | paste (size_t offset, const char *text, size_t size=0) |
| Insert (paste) text into string. More...
|
|
size_t | printf (const char *format,...) |
| Print items into a string object. More...
|
|
const char * | rchr (char character) const |
| Find pointer in string where specified character last appears. More...
|
|
unsigned | replace (const char *string, const char *text=NULL, unsigned flags=0) |
|
unsigned | replace (regex &expr, const char *text=NULL, unsigned flags=0) |
|
const char * | rfind (const char *list, size_t offset=npos) const |
| Find last occurrence of character in the string. More...
|
|
String | right (size_t offset) const |
| Convenience method for right of string. More...
|
|
void | rset (const char *text, char overflow, size_t offset, size_t size=0) |
| Set a text field within our string object offset from the end of buffer. More...
|
|
const char * | rskip (const char *list, size_t offset=npos) const |
| Skip trailing characters in the string. More...
|
|
void | rsplit (const char *pointer) |
| Split the string by a pointer position. More...
|
|
void | rsplit (size_t offset) |
| Split the string at a specific offset. More...
|
|
const char * | search (const char *string, unsigned instance=0, unsigned flags=0) const |
| Search for a substring in the string. More...
|
|
const char * | search (regex &expr, unsigned instance=0, unsigned flags=0) const |
|
void | set (const char *text) |
| Set string object to text of a null terminated string. More...
|
|
void | set (size_t offset, const char *text, size_t size=0) |
| Set a portion of the string object at a specified offset to a text string. More...
|
|
void | set (const char *text, char overflow, size_t offset, size_t size=0) |
| Set a text field within our string object. More...
|
|
size_t | size (void) const |
| Get the size of currently allocated space for string. More...
|
|
const char * | skip (const char *list, size_t offset=0) const |
| Skip lead characters in the string. More...
|
|
void | split (const char *pointer) |
| Split the string by a pointer position. More...
|
|
void | split (size_t offset) |
| Split the string at a specific offset. More...
|
|
| String () |
| Create a new empty string object.
|
|
| String (size_t size) |
| Create an empty string with a buffer pre-allocated to a specified size. More...
|
|
| String (size_t size, const char *format,...) |
| Create a string by printf-like formating into a pre-allocated space of a specified size. More...
|
|
| String (const char *text) |
| Create a string from null terminated text. More...
|
|
| String (const char *text, size_t size) |
| Create a string from null terminated text up to a maximum specified size. More...
|
|
| String (const char *text, const char *end) |
| Create a string for a substring. More...
|
|
| String (const String &existing) |
| Construct a copy of a string object. More...
|
|
void | strip (const char *list) |
| Strip lead and trailing characters from the string. More...
|
|
double | tod (char **pointer=NULL) |
| Convert string to a double value. More...
|
|
char * | token (char **last, const char *list, const char *quote=NULL, const char *end=NULL) |
| A thread-safe token parsing routine for strings objects. More...
|
|
long | tol (char **pointer=NULL) |
| Convert string to a long value. More...
|
|
void | trim (const char *list) |
| Trim lead characters from the string. More...
|
|
void | trim (size_t count=1) |
| Trim lead characters from text. More...
|
|
bool | unquote (const char *quote) |
| Unquote a quoted string. More...
|
|
void | upper (void) |
| Convert string to upper case.
|
|
size_t | vprintf (const char *format, va_list args) |
| Print items into a string object. More...
|
|
virtual | ~String () |
| Destroy string. More...
|
|
ObjectProtocol * | copy (void) |
| Retain (increase retention of) object when copying.
|
|
void | operator++ (void) |
| Increase retention operator.
|
|
void | operator-- (void) |
| Decrease retention operator.
|
|
virtual | ~ObjectProtocol () |
| Required virtual destructor.
|
|