#include <string_allocator.h>
Public Member Functions | |
Construction | |
| CL_StringAllocator () | |
| CL_StringAllocator (const CL_StringAllocator &source) | |
| Constructs a StringAllocator. | |
| ~CL_StringAllocator () | |
Operations | |
| CL_StringAllocator & | operator= (const CL_StringAllocator &source) |
| CL_StringRef8 | alloc (const CL_StringRef8 &str) |
| Alloc. | |
| CL_StringRef8 | alloc (const char *str) |
| Alloc. | |
| CL_StringRef8 | alloc (const char *str, CL_StringRef8::size_type length) |
| CL_StringRef16 | alloc (const CL_StringRef16 &str) |
| Alloc. | |
| CL_StringRef16 | alloc (const wchar_t *str) |
| Alloc. | |
| CL_StringRef16 | alloc (const wchar_t *str, CL_StringRef16::size_type length) |
| CL_StringRef | alloc (unsigned int length) |
| Alloc. | |
| CL_StringRef8 | alloc8 (unsigned int length) |
| Alloc8. | |
| CL_StringRef16 | alloc16 (unsigned int length) |
| Alloc16. | |
| void | clear () |
| Clear. | |
This class allows you to efficiently allocate strings. Instead of using the default new operator, this class allocates string data in blocks. The temporary strings returned by the class remain valid as long as the CL_StringAllocator stays valid, or until clear() is called.
|
|
|
|
|
Constructs a StringAllocator.
|
|
|
|
|
|
Alloc.
|
|
||||||||||||
|
|
|
|
Alloc.
|
|
|
Alloc.
|
|
||||||||||||
|
|
|
|
Alloc.
|
|
|
Alloc.
|
|
|
Alloc16.
|
|
|
Alloc8.
|
|
|
Clear.
|
|
|
|
1.4.6