RigsofRods
Soft-body Physics Simulation
|
Wrapper for classic c-string (local buffer) Refresher: strlen()
excludes '\0' terminator; strncat()
Appends '\0' terminator.
More...
#include <Str.h>
Public Member Functions | |
Str () | |
Str (Str< L > const &src) | |
Str (const char *src) | |
Str (std::string::const_iterator &itor, std::string::const_iterator &endi) | |
const char * | ToCStr () const |
bool | IsEmpty () const |
char * | GetBuffer () |
size_t | GetCapacity () const |
int | Compare (const char *str) const |
size_t | GetLength () const |
Str & | Clear () |
Str & | Assign (const char *src) |
Str & | Assign (std::string::const_iterator &itor, std::string::const_iterator &endi) |
Str & | Append (const char *src) |
Str & | Append (float f) |
Str & | Append (int i) |
Str & | Append (size_t z) |
Str & | Append (char c) |
Str & | Append (std::string::const_iterator &itor, std::string::const_iterator &endi) |
operator const char * () const | |
Str & | operator= (const char *src) |
Str & | operator= (std::string const &str) |
Str & | operator<< (const char *src) |
Str & | operator<< (std::string const &str) |
Str & | operator<< (float f) |
Str & | operator<< (int i) |
Str & | operator<< (size_t z) |
Str & | operator<< (char c) |
bool | operator== (const char *other) const |
Private Attributes | |
char | m_buffer [L] |
const size_t | m_capacity = L |
Wrapper for classic c-string (local buffer) Refresher: strlen()
excludes '\0' terminator; strncat()
Appends '\0' terminator.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |