]> git.saurik.com Git - wxWidgets.git/blob - src/expat/tests/chardata.h
Define __VISUALC__ for ICC under Windows again.
[wxWidgets.git] / src / expat / tests / chardata.h
1 /* chardata.h
2
3 Interface to some helper routines used to accumulate and check text
4 and attribute content.
5 */
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 #ifndef XML_CHARDATA_H
12 #define XML_CHARDATA_H 1
13
14 #ifndef XML_VERSION
15 #include "expat.h" /* need XML_Char */
16 #endif
17
18
19 typedef struct {
20 int count; /* # of chars, < 0 if not set */
21 XML_Char data[1024];
22 } CharData;
23
24
25 void CharData_Init(CharData *storage);
26
27 void CharData_AppendString(CharData *storage, const char *s);
28
29 void CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len);
30
31 int CharData_CheckString(CharData *storage, const char *s);
32
33 int CharData_CheckXMLChars(CharData *storage, const XML_Char *s);
34
35
36 #endif /* XML_CHARDATA_H */
37
38 #ifdef __cplusplus
39 }
40 #endif