43 #ifndef VTK_PARSE_STRING_H
44 #define VTK_PARSE_STRING_H
77 #define vtkParse_CharType(c, bits) \
78 ((parse_charbits[(unsigned char)(c)] & (bits)) != 0)
enum _parse_char_type parse_char_type
This file provides string handling routines.
struct _StringCache StringCache
StringCache provides a simple way of allocating strings centrally.
size_t vtkParse_SkipComment(const char *cp)
Skip over a comment, C style or C++ style.
unsigned long NumberOfChunks
const char * vtkParse_CacheString(StringCache *cache, const char *cp, size_t n)
Cache a string so that it can then be used in the vtkParse data structures.
int vtkParse_NextToken(StringTokenizer *tokens)
Return the next preprocessor token, or '0' if none left.
size_t vtkParse_SkipQuotes(const char *cp)
Skip over a string in double or single quotes.
size_t vtkParse_SkipWhitespace(const char *cp, parse_space_t spacetype)
Skip over whitespace.
_parse_char_type
This file provides string handling routines.
void vtkParse_FreeStringCache(StringCache *cache)
Free all strings that were created with vtkParse_NewString() or with vtkParse_CacheString().
enum _preproc_token_t preproc_token_t
Preprocessor tokens for C++.
char * vtkParse_NewString(StringCache *cache, size_t n)
Alocate a new string from the cache.
enum _parse_space_t parse_space_t
Whitespace types that can be used with the tokenizer.
size_t vtkParse_SkipId(const char *cp)
Skip over an identifier.
unsigned char parse_charbits[256]
Character type lookup table.
unsigned int vtkParse_HashId(const char *cp)
Compute the hash for a id, for use in hash table lookups.
struct _StringTokenizer StringTokenizer
A struct for going through a string one token at a time.
void vtkParse_InitTokenizer(StringTokenizer *tokens, const char *text, parse_space_t wstype)
Initialize the tokenizer and get the first token.
void vtkParse_InitStringCache(StringCache *cache)
Initialize the string cache.
StringCache provides a simple way of allocating strings centrally.
_parse_space_t
Whitespace types that can be used with the tokenizer.
A struct for going through a string one token at a time.
_preproc_token_t
Preprocessor tokens for C++.
size_t vtkParse_SkipNumber(const char *cp)
Skip over a number.