1104349Sphk/* chardata.h 2104349Sphk 3104349Sphk Interface to some helper routines used to accumulate and check text 4104349Sphk and attribute content. 5104349Sphk*/ 6104349Sphk 7178848Scokane#ifdef __cplusplus 8178848Scokaneextern "C" { 9178848Scokane#endif 10178848Scokane 11104349Sphk#ifndef XML_CHARDATA_H 12104349Sphk#define XML_CHARDATA_H 1 13104349Sphk 14104349Sphk#ifndef XML_VERSION 15104349Sphk#include "expat.h" /* need XML_Char */ 16104349Sphk#endif 17104349Sphk 18104349Sphk 19104349Sphktypedef struct { 20104349Sphk int count; /* # of chars, < 0 if not set */ 21104349Sphk XML_Char data[1024]; 22104349Sphk} CharData; 23104349Sphk 24104349Sphk 25104349Sphkvoid CharData_Init(CharData *storage); 26104349Sphk 27104349Sphkvoid CharData_AppendString(CharData *storage, const char *s); 28104349Sphk 29104349Sphkvoid CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len); 30104349Sphk 31104349Sphkint CharData_CheckString(CharData *storage, const char *s); 32104349Sphk 33104349Sphkint CharData_CheckXMLChars(CharData *storage, const XML_Char *s); 34104349Sphk 35104349Sphk 36104349Sphk#endif /* XML_CHARDATA_H */ 37178848Scokane 38178848Scokane#ifdef __cplusplus 39178848Scokane} 40178848Scokane#endif 41