#include <oscl_string.h>
Inheritance diagram for OSCL_String:
Public Types | |
typedef char | chartype |
Public Methods | |
virtual uint32 | get_size () const=0 |
virtual uint32 | get_maxsize () const=0 |
virtual const chartype * | get_cstr () const=0 |
virtual OSCL_IMPORT_REF bool | is_writable () const |
virtual chartype * | get_str () const=0 |
OSCL_IMPORT_REF OSCL_String & | operator= (const OSCL_String &src) |
OSCL_IMPORT_REF OSCL_String & | operator= (const chartype *cstr) |
OSCL_IMPORT_REF OSCL_String & | operator+= (const OSCL_String &src) |
OSCL_IMPORT_REF OSCL_String & | operator+= (const chartype *cstr) |
OSCL_IMPORT_REF OSCL_String & | operator+= (const chartype c) |
OSCL_IMPORT_REF bool | operator== (const OSCL_String &src) const |
OSCL_IMPORT_REF bool | operator!= (const OSCL_String &src) const |
OSCL_IMPORT_REF bool | operator< (const OSCL_String &src) const |
OSCL_IMPORT_REF bool | operator<= (const OSCL_String &src) const |
OSCL_IMPORT_REF bool | operator> (const OSCL_String &src) const |
OSCL_IMPORT_REF bool | operator>= (const OSCL_String &src) const |
OSCL_IMPORT_REF bool | operator== (const chartype *cstr) const |
OSCL_IMPORT_REF chartype | operator[] (uint32 index) const |
virtual OSCL_IMPORT_REF chartype | read (uint32 index) const |
virtual OSCL_IMPORT_REF int8 | hash () const |
virtual OSCL_IMPORT_REF void | write (uint32 index, chartype c) |
virtual OSCL_IMPORT_REF void | write (uint32 offset, uint32 length, const chartype *buf) |
Protected Methods | |
OSCL_IMPORT_REF | OSCL_String () |
virtual OSCL_IMPORT_REF | ~OSCL_String () |
virtual void | set_rep (const chartype *cstr)=0 |
virtual void | append_rep (const chartype *cstr)=0 |
virtual void | set_rep (const OSCL_String &src)=0 |
virtual void | append_rep (const OSCL_String &src)=0 |
virtual void | set_len (uint32 len)=0 |
|
Reimplemented in OSCL_HeapString< Alloc >, OSCL_HeapStringA, OSCL_StackString< MaxBufSize >, OSCL_FastString, and OSCL_HeapString< OsclMemAllocator >. |
|
|
|
|
|
Append the input string to the current string. The string may be truncated to fit the available storage. |
|
Append the input null-terminated string to the current string. The string may be truncated to fit the available storage. |
|
This function returns the C-style string for read access. Implemented in OSCL_HeapString< Alloc >, OSCL_HeapStringA, OSCL_StackString< MaxBufSize >, OSCL_FastString, and OSCL_HeapString< OsclMemAllocator >. |
|
This function returns the maximum available storage size, not including null terminator. The maximum size may be larger than the current string size. Implemented in OSCL_HeapString< Alloc >, OSCL_HeapStringA, OSCL_StackString< MaxBufSize >, OSCL_FastString, and OSCL_HeapString< OsclMemAllocator >. |
|
This function returns the string size not including the null-terminator. Implemented in OSCL_HeapString< Alloc >, OSCL_HeapStringA, OSCL_StackString< MaxBufSize >, OSCL_FastString, and OSCL_HeapString< OsclMemAllocator >. |
|
This function returns the C-style string for write access. If the string is not writable it returns NULL. Implemented in OSCL_HeapString< Alloc >, OSCL_HeapStringA, OSCL_StackString< MaxBufSize >, OSCL_FastString, and OSCL_HeapString< OsclMemAllocator >. |
|
This function performs a hash operation on the string. If the string is not writable, the function leaves. |
|
This function returns true if the string is writable. |
|
|
|
Append operator. This operator appends the input character to this object. The string may be truncated to fit available storage. |
|
Append operator. This operator appends the input string to this object. The string may be truncated to fit available storage.
|
|
Append operator. This operator appends the input string to this object. The string may be truncated to fit available storage. |
|
|
|
|
|
Assignment operator
Reimplemented in OSCL_HeapString< Alloc >, OSCL_HeapStringA, OSCL_StackString< MaxBufSize >, OSCL_FastString, and OSCL_HeapString< OsclMemAllocator >. |
|
Assignment operator Reimplemented in OSCL_HeapString< Alloc >, OSCL_HeapStringA, OSCL_StackString< MaxBufSize >, and OSCL_HeapString< OsclMemAllocator >. |
|
Comparison operator
|
|
Comparison operators |
|
|
|
|
|
This is subscript notation to access a character at the given position. If the index is outside the current size range then the function leaves. |
|
This function returns the character at the given position. If the index is outside the current size range then the function leaves. |
|
Update the length of the string. This function will only be called when the string is writable. |
|
Set string representation to input string. |
|
Set string representation to input null-terminated string. |
|
This function replaces characters at the specified offset within the current string. If the string is not writable, the function leaves. The characters may be truncted to fit the current storage.
|
|
This function stores a character at the specified position. If the string is not writable, the function leaves. If the index is outside the current size range then the function leaves. |