2 * Summary: set of routines to process strings
3 * Description: type and interfaces needed for the internal string handling
4 * of the library, especially UTF8 processing.
6 * Copy: See Copyright for the status of this software.
8 * Author: Daniel Veillard
9 * Portion Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
21 #include <stdapis/libxml2/libxml2_xmlversion.h>
30 * This is a basic byte in an UTF-8 encoded string.
31 * It's unsigned allowing to pinpoint case where char * are assigned
32 * to xmlChar * (possibly making serialization back impossible).
35 typedef unsigned char xmlChar;
40 * Macro to cast a string to an xmlChar * when one know its safe.
42 #define BAD_CAST (xmlChar *)
47 XMLPUBFUN xmlChar* XMLCALL
48 xmlStrdup (const xmlChar *cur);
49 XMLPUBFUN xmlChar* XMLCALL
50 xmlStrndup (const xmlChar *cur,
52 XMLPUBFUN xmlChar* XMLCALL
53 xmlCharStrndup (const char *cur,
55 XMLPUBFUN xmlChar* XMLCALL
56 xmlCharStrdup (const char *cur);
57 XMLPUBFUN xmlChar* XMLCALL
58 xmlStrsub (const xmlChar *str,
61 XMLPUBFUN const xmlChar* XMLCALL
62 xmlStrchr (const xmlChar *str,
64 XMLPUBFUN const xmlChar* XMLCALL
65 xmlStrstr (const xmlChar *str,
67 XMLPUBFUN const xmlChar* XMLCALL
68 xmlStrcasestr (const xmlChar *str,
71 xmlStrcmp (const xmlChar *str1,
74 xmlStrncmp (const xmlChar *str1,
78 xmlStrcasecmp (const xmlChar *str1,
81 xmlStrncasecmp (const xmlChar *str1,
85 xmlStrEqual (const xmlChar *str1,
88 xmlStrQEqual (const xmlChar *pref,
92 xmlStrlen (const xmlChar *str);
93 XMLPUBFUN xmlChar* XMLCALL
94 xmlStrcat (xmlChar *cur,
96 XMLPUBFUN xmlChar* XMLCALL
97 xmlStrncat (xmlChar *cur,
100 XMLPUBFUN xmlChar* XMLCALL
101 xmlStrncatNew (const xmlChar *str1,
104 XMLPUBFUN int XMLCALL
105 xmlStrPrintf (xmlChar *buf,
109 XMLPUBFUN int XMLCALL
110 xmlStrVPrintf (xmlChar *buf,
115 XMLPUBFUN int XMLCALL
116 xmlGetUTF8Char (const unsigned char *utf, int *len);
118 #ifndef XMLENGINE_EXCLUDE_UNUSED
119 XMLPUBFUN int XMLCALL xmlCheckUTF8 (const unsigned char *utf);
120 #endif /* ifndef XMLENGINE_EXCLUDE_UNUSED */
122 XMLPUBFUN int XMLCALL
123 xmlUTF8Strsize (const xmlChar *utf,
125 XMLPUBFUN xmlChar* XMLCALL
126 xmlUTF8Strndup (const xmlChar *utf,
128 XMLPUBFUN xmlChar* XMLCALL
129 xmlUTF8Strpos (const xmlChar *utf,
131 XMLPUBFUN int XMLCALL
132 xmlUTF8Strloc (const xmlChar *utf,
133 const xmlChar *utfchar);
134 XMLPUBFUN xmlChar* XMLCALL
135 xmlUTF8Strsub (const xmlChar *utf,
138 XMLPUBFUN int XMLCALL
139 xmlUTF8Strlen (const xmlChar *utf);
140 XMLPUBFUN int XMLCALL
141 xmlUTF8Size (const xmlChar *utf);
142 XMLPUBFUN int XMLCALL
143 xmlUTF8Charcmp (const xmlChar *utf1,
144 const xmlChar *utf2);
149 #endif /* XML_STRING_H */