#include <oscl_string_containers.h>
Inheritance diagram for OSCL_StackString< MaxBufSize >:
Public Types | |
typedef OSCL_String::chartype | chartype |
Public Methods | |
OSCL_StackString () | |
OSCL_StackString (const OSCL_StackString &src) | |
OSCL_StackString (const OSCL_String &src) | |
OSCL_StackString (const chartype *cstr) | |
OSCL_StackString (const chartype *buf, uint32 length) | |
~OSCL_StackString () | |
uint32 | get_size () const |
uint32 | get_maxsize () const |
const chartype * | get_cstr () const |
chartype * | get_str () const |
OSCL_StackString & | operator= (const OSCL_StackString &src) |
OSCL_StackString & | operator= (const OSCL_String &src) |
OSCL_StackString & | operator= (const chartype *cstr) |
void | set (const chartype *buf, uint32 length) |
Friends | |
class | OSCL_String |
The string array is fixed length, is allocated from the stack, and is modifiable. Operations that update the string will automatically truncate it to fit the fixed size storage. This is recommended for use for short strings (<255). Use OSCL_HeapString for very large strings to avoid stack overflow.
C: | type of character. |
MaxBufSize: | maximum string length not including null terminator. |
|
Reimplemented from OSCL_String. |
|
|