tagging release
[dasher.git] / trunk / Src / Common / Expat / tests / chardata.h
blobebd65c694c7a32b1bc178d1223b3a8f43f5c785e
1 /* chardata.h
3 Interface to some helper routines used to accumulate and check text
4 and attribute content.
5 */
7 #ifndef XML_CHARDATA_H
8 #define XML_CHARDATA_H 1
10 #ifndef XML_VERSION
11 #include "expat.h" /* need XML_Char */
12 #endif
14 typedef struct {
15 int count; /* # of chars, < 0 if not set */
16 XML_Char data[1024];
17 } CharData;
19 void CharData_Init(CharData * storage);
21 void CharData_AppendString(CharData * storage, const char *s);
23 void CharData_AppendXMLChars(CharData * storage, const XML_Char * s, int len);
25 int CharData_CheckString(CharData * storage, const char *s);
27 int CharData_CheckXMLChars(CharData * storage, const XML_Char * s);
29 #endif /* XML_CHARDATA_H */