sprint 1-alpha
|
#include <const_string.h>
Public Member Functions | |
const_string (const char *_str) | |
operator bool () const | |
test if string is not null | |
operator const char * () const | |
cast to const char * | |
const char * | c_str () const |
return the inner buffer (STL compability) | |
bool | operator== (const char *c) const |
bool | operator== (const const_string< case_sensitive > &s) const |
bool | operator< (const char *string) const |
bool | operator< (const const_string< case_sensitive > &string) const |
bool | operator> (const char *string) const |
bool | operator> (const const_string< case_sensitive > &string) const |
Static Public Member Functions | |
static int | compare (const char *a, const char *b) |
the comparisong method |
Costant String. Usefull in stl::map and stl::sort algorithm.
This class handle the issue: 'Why waste extra memory, and not use directly const char *'