24 #ifndef _UCOMMON_STRING_H_
28 #ifndef _UCOMMON_PROTOCOLS_H_
32 #ifndef _UCOMMON_XML_H_
33 #define _UCOMMON_XML_H_
52 enum {TAG, CDATA, COMMENT, DTD, AMP, NONE, END} state;
54 unsigned bufpos, bufsize;
55 __LOCAL
bool parseTag(
void);
56 __LOCAL
void putBuffer(
char c);
57 __LOCAL
void clearBuffer(
void);
78 virtual void comment(caddr_t text,
size_t size);
85 virtual void characters(caddr_t text,
size_t size);
90 virtual void startDocument(
void);
95 virtual void endDocument(
void);
102 virtual void startElement(caddr_t name, caddr_t *attr) = 0;
108 virtual void endElement(caddr_t name) = 0;
119 bool partial(
const char *address,
size_t size);
141 bool parse(FILE *
file);
A common string class and character string support functions.
Access standard files through character protocol.
bool end(void) const
End of document check.
Common namespace for all ucommon objects.
Abstract interfaces and support.
Common character processing protocol.