Added xmltok_impl.c and xmltok_ns.c to source files.
[mirror-ossqm-expat.git] / tests / chardata.h
blobe8dc4ce22c42a8e994c9265c1bc412dbabde6885
1 /* chardata.h
3 Interface to some helper routines used to accumulate and check text
4 and attribute content.
5 */
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
11 #ifndef XML_CHARDATA_H
12 #define XML_CHARDATA_H 1
14 #ifndef XML_VERSION
15 #include "expat.h" /* need XML_Char */
16 #endif
19 typedef struct {
20 int count; /* # of chars, < 0 if not set */
21 XML_Char data[1024];
22 } CharData;
25 void CharData_Init(CharData *storage);
27 void CharData_AppendString(CharData *storage, const char *s);
29 void CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len);
31 int CharData_CheckString(CharData *storage, const char *s);
33 int CharData_CheckXMLChars(CharData *storage, const XML_Char *s);
36 #endif /* XML_CHARDATA_H */
38 #ifdef __cplusplus
40 #endif