CWB
Data Fields
ClAutoString Struct Reference

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...
 

Detailed Description

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.)

Field Documentation

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
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().


The documentation for this struct was generated from the following file: