source: trunk/poppler/expat-1.95.8/tests/chardata.h @ 2

Last change on this file since 2 was 2, checked in by Eugene Romanenko, 15 years ago

First import

File size: 722 bytes
Line 
1/* chardata.h
2
3   Interface to some helper routines used to accumulate and check text
4   and attribute content.
5*/
6
7#ifndef XML_CHARDATA_H
8#define XML_CHARDATA_H 1
9
10#ifndef XML_VERSION
11#include "expat.h"                      /* need XML_Char */
12#endif
13
14
15typedef struct {
16    int count;                          /* # of chars, < 0 if not set */
17    XML_Char data[1024];
18} CharData;
19
20
21void CharData_Init(CharData *storage);
22
23void CharData_AppendString(CharData *storage, const char *s);
24
25void CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len);
26
27int CharData_CheckString(CharData *storage, const char *s);
28
29int CharData_CheckXMLChars(CharData *storage, const XML_Char *s);
30
31
32#endif  /* XML_CHARDATA_H */
Note: See TracBrowser for help on using the repository browser.