chardata.h

00001 /* chardata.h
00002 
00003    Interface to some helper routines used to accumulate and check text
00004    and attribute content.
00005 */
00006 
00007 #ifndef XML_CHARDATA_H
00008 #define XML_CHARDATA_H 1
00009 
00010 #ifndef XML_VERSION
00011 #include "expat.h"                      /* need XML_Char */
00012 #endif
00013 
00014 
00015 typedef struct {
00016     int count;                          /* # of chars, < 0 if not set */
00017     XML_Char data[1024];
00018 } CharData;
00019 
00020 
00021 void CharData_Init(CharData *storage);
00022 
00023 void CharData_AppendString(CharData *storage, const char *s);
00024 
00025 void CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len);
00026 
00027 int CharData_CheckString(CharData *storage, const char *s);
00028 
00029 int CharData_CheckXMLChars(CharData *storage, const XML_Char *s);
00030 
00031 
00032 #endif  /* XML_CHARDATA_H */

Generated on Mon Jun 5 10:20:42 2006 for Intelligence.kdevelop by  doxygen 1.4.6