summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/expat/tests/chardata.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-01-10 11:59:27 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-01-10 11:59:27 +0100
commit2c9a5344f38aa3f867a56f8ed87b2c99b77c858a (patch)
treefc329af3515061cb2ab5588b2be82228e060ece9 /3rdparty/expat/tests/chardata.h
parent31251f6c097fa1314f7bc63fefd2d01a16b2556f (diff)
Added integral version of expat (nw)
Diffstat (limited to '3rdparty/expat/tests/chardata.h')
-rw-r--r--3rdparty/expat/tests/chardata.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/3rdparty/expat/tests/chardata.h b/3rdparty/expat/tests/chardata.h
new file mode 100644
index 00000000000..e8dc4ce22c4
--- /dev/null
+++ b/3rdparty/expat/tests/chardata.h
@@ -0,0 +1,40 @@
+/* chardata.h
+
+ Interface to some helper routines used to accumulate and check text
+ and attribute content.
+*/
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef XML_CHARDATA_H
+#define XML_CHARDATA_H 1
+
+#ifndef XML_VERSION
+#include "expat.h" /* need XML_Char */
+#endif
+
+
+typedef struct {
+ int count; /* # of chars, < 0 if not set */
+ XML_Char data[1024];
+} CharData;
+
+
+void CharData_Init(CharData *storage);
+
+void CharData_AppendString(CharData *storage, const char *s);
+
+void CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len);
+
+int CharData_CheckString(CharData *storage, const char *s);
+
+int CharData_CheckXMLChars(CharData *storage, const XML_Char *s);
+
+
+#endif /* XML_CHARDATA_H */
+
+#ifdef __cplusplus
+}
+#endif