CWB
|
Underlying structure for the ClAutoString object. More...
#include <cl.h>
Data Fields | |
char * | data |
The actual character data (null-terminated string). More... | |
size_t | len |
Length of the string, strlen-style (count of bytes not including the final zero byte). More... | |
size_t | bytes_allocated |
Amount of memory currently allocated at the location pointed to by data. More... | |
size_t | increment |
When the data buffer is too small, it will be increased by the lowest sufficient multiple of the increment value (specified at object creation time; can be reset later; defaults to CL_MAX_LINE_LENGTH). More... | |
Underlying structure for the ClAutoString object.
(Its members are not hidden, but you are advised not to tinker with them directly unless you really know what you are doing; reading from them is usually safe but changing them other than via the object methods is not safe at all.)
size_t bytes_allocated |
Amount of memory currently allocated at the location pointed to by data.
Referenced by cl_autostring_concat(), cl_autostring_copy(), cl_autostring_dump(), and cl_autostring_new().
char* data |
The actual character data (null-terminated string).
Referenced by cl_autostring_concat(), cl_autostring_copy(), cl_autostring_delete(), cl_autostring_dump(), cl_autostring_new(), cl_autostring_reclaim_mem(), compose_kwic_line(), get_field_separators(), and get_position_values().
size_t increment |
When the data buffer is too small, it will be increased by the lowest sufficient multiple of the increment value (specified at object creation time; can be reset later; defaults to CL_MAX_LINE_LENGTH).
Referenced by cl_autostring_concat(), cl_autostring_copy(), cl_autostring_dump(), cl_autostring_new(), and cl_autostring_reclaim_mem().
size_t len |
Length of the string, strlen-style (count of bytes not including the final zero byte).
Referenced by cl_autostring_concat(), cl_autostring_copy(), cl_autostring_dump(), cl_autostring_new(), cl_autostring_reclaim_mem(), cl_autostring_truncate(), compose_kwic_line(), and get_field_separators().