xml/xmlexpatparser/src/expat-1.95.5/tests/chardata.h
changeset 0 e35f40988205
equal deleted inserted replaced
-1:000000000000 0:e35f40988205
       
     1 /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
       
     2    See the file COPYING for copying permission.
       
     3 */
       
     4 /* chardata.h
       
     5 
       
     6    Interface to some helper routines used to accumulate and check text
       
     7    and attribute content.
       
     8 */
       
     9 
       
    10 #ifndef XML_CHARDATA_H
       
    11 #define XML_CHARDATA_H 1
       
    12 
       
    13 #ifndef XML_VERSION
       
    14 #include "expat.h"                      /* need XML_Char */
       
    15 #endif
       
    16 
       
    17 
       
    18 typedef struct {
       
    19     int count;                          /* # of chars, < 0 if not set */
       
    20     XML_Char data[1024];
       
    21 } CharData;
       
    22 
       
    23 
       
    24 void CharData_Init(CharData *storage);
       
    25 
       
    26 void CharData_AppendString(CharData *storage, const char *s);
       
    27 
       
    28 void CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len);
       
    29 
       
    30 int CharData_CheckString(CharData *storage, const char *s);
       
    31 
       
    32 int CharData_CheckXMLChars(CharData *storage, const XML_Char *s);
       
    33 
       
    34 
       
    35 #endif  /* XML_CHARDATA_H */