24 #ifndef FXPARSEBUFFER_H 25 #include "FXParseBuffer.h" 77 FXbool match(FXchar ch);
78 FXbool match(
const FXchar* str,FXint len);
82 Error parseencoding();
83 Error parsestandalone();
84 Error parseelementdecl();
85 Error parseexternalid();
86 Error parseinternalsubset();
87 Error parsedeclarations();
88 Error parseprocessing();
90 Error parseattribute(Element& elm);
91 Error parsestarttag(Element& elm);
92 Error parseendtag(Element& elm);
93 Error parsecdata(Element& elm);
94 Error parsecontents(Element& elm);
97 static const FXchar *
const errors[];
141 FXbool open(FXchar* buffer=
nullptr,FXuval sz=4096,
Direction d=Load);
146 FXuval
size()
const {
return endptr-begptr; }
175 Error startDocument();
178 Error startElement(
const FXString& tag);
184 Error characters(
const FXString& text);
187 Error comment(
const FXString& text);
193 Error endElement(
const FXString& tag);
209 static FXbool decode(
FXString& dst,
const FXString& src,FXuint flags=CRLF|REFS);
214 static FXbool encode(
FXString& dst,
const FXString& src,FXuint flags=CRLF|REFS);
Expected semicolon.
Definition: FXXML.h:49
The XML serializer loads or saves data to xml text file.
Definition: FXXML.h:34
No errors.
Definition: FXXML.h:38
FXCallback< Error(const FXString &) > commentCB
Called to pass comment string.
Definition: FXXML.h:113
Illegal token.
Definition: FXXML.h:46
FXint getLine() const
Return current line number.
Definition: FXXML.h:156
No data loaded.
Definition: FXXML.h:39
FXCallback< Error(const FXString &) > charactersCB
Called to pass batch of decoded characters.
Definition: FXXML.h:110
FXuval size() const
Return size of parse buffer.
Definition: FXXML.h:146
Unable to load.
Definition: FXXML.h:41
Expected space.
Definition: FXXML.h:42
Expected equals sign '='.
Definition: FXXML.h:43
FXCallback< Error(const FXString &, const FXString &) > processingCB
Called to pass processing instruction.
Definition: FXXML.h:116
Expected name.
Definition: FXXML.h:44
static const FXchar * getError(Error err)
Returns error code for given error.
Definition: FXXML.h:199
FXCallback< Error(const FXString &, const FXStringDictionary &) > startElementCB
Called when start of element is recognized.
Definition: FXXML.h:107
Direction
Definition: FXParseBuffer.h:36
Expected hex digit.
Definition: FXXML.h:48
Error
Definition: FXXML.h:36
Definition: FX4Splitter.h:28
Unknown reference.
Definition: FXXML.h:50
Expected string.
Definition: FXXML.h:45
Direction direction() const
Return direction in effect.
Definition: FXXML.h:151
FXint getColumn() const
Return current column number.
Definition: FXXML.h:161
FXParseBuffer manages pointers to a buffer for various file format parsers.
Definition: FXParseBuffer.h:34
FXCallback< Error() > endDocumentCB
Called when end of document is recognized.
Definition: FXXML.h:122
FXCallback< Error(const FXString &) > endElementCB
Called when end of element is recognized.
Definition: FXXML.h:119
FXlong getOffset() const
Return offset from begin of file.
Definition: FXXML.h:166
FXCallback< Error() > startDocumentCB
Called when start of document is recognized.
Definition: FXXML.h:104
Unable to save.
Definition: FXXML.h:40
The dictionary class maintains a fast-access hash table of entities indexed by a character string...
Definition: FXStringDictionary.h:31
Expected digit.
Definition: FXXML.h:47
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42