#include <ddgstr.h>
Public Members | |||
ddgStr (void) | |||
Create str initialize to zero. | |||
ddgStr (const char *ss, int size = 0) | |||
Create string initialized to ss, allocate with given size. | |||
ddgStr (const int s) | |||
Create string with a given buffer size. | |||
ddgStr (const ddgStr *str) | |||
Create string based on the value of another. | |||
ddgStr (const ddgStr &str) | |||
Create string based on the value of another. | |||
~ddgStr () | |||
Free the string. | |||
bool | assign ( const char * b ) | ||
Assign a value to the string. | |||
bool | assign ( const ddgStr * str ) | ||
Assign a value to the string. | |||
operator char * () | |||
Return the string managed by this object. | |||
operator const char * () | |||
Return the string managed by this object. | |||
operator ddgStr * () | |||
Return the pointer to this object. | |||
ddgStr& | operator+= ( const ddgStr& s) | ||
Concatenate another this to this one. | |||
unsigned int | length (void) | ||
Return the length of this string. | |||
bool | equal ( const char *b) | ||
Compare this object to a character string. | |||
char* | findChar ( const char target ) | ||
Find char in string. Return null if char is not there. | |||
char* | s | ||
String data. | |||
unsigned int | l | ||
Length of string. | |||
Static Public Members | |||
unsigned int | length ( const char *s) | ||
Return the length of the string. | |||
bool | equal (const char * a, const char *b) | ||
Compare two string objects. | |||
float | stof ( const char * s) | ||
Convert a string to a floating point value. | |||
int | stoi ( const char * s) | ||
Convert a string to an integer value. |