ReactOS  0.4.13-dev-563-g0561610
xmlstring.h
Go to the documentation of this file.
1 /*
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.
5  *
6  * Copy: See Copyright for the status of this software.
7  *
8  * Author: Daniel Veillard
9  */
10 
11 #ifndef __XML_STRING_H__
12 #define __XML_STRING_H__
13 
14 #include <stdarg.h>
15 #include <libxml/xmlversion.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
28 typedef unsigned char xmlChar;
29 
35 #define BAD_CAST (xmlChar *)
36 
37 /*
38  * xmlChar handling
39  */
41  xmlStrdup (const xmlChar *cur);
43  xmlStrndup (const xmlChar *cur,
44  int len);
46  xmlCharStrndup (const char *cur,
47  int len);
49  xmlCharStrdup (const char *cur);
51  xmlStrsub (const xmlChar *str,
52  int start,
53  int len);
55  xmlStrchr (const xmlChar *str,
56  xmlChar val);
58  xmlStrstr (const xmlChar *str,
59  const xmlChar *val);
61  xmlStrcasestr (const xmlChar *str,
62  const xmlChar *val);
64  xmlStrcmp (const xmlChar *str1,
65  const xmlChar *str2);
67  xmlStrncmp (const xmlChar *str1,
68  const xmlChar *str2,
69  int len);
71  xmlStrcasecmp (const xmlChar *str1,
72  const xmlChar *str2);
74  xmlStrncasecmp (const xmlChar *str1,
75  const xmlChar *str2,
76  int len);
78  xmlStrEqual (const xmlChar *str1,
79  const xmlChar *str2);
81  xmlStrQEqual (const xmlChar *pref,
82  const xmlChar *name,
83  const xmlChar *str);
85  xmlStrlen (const xmlChar *str);
87  xmlStrcat (xmlChar *cur,
88  const xmlChar *add);
90  xmlStrncat (xmlChar *cur,
91  const xmlChar *add,
92  int len);
94  xmlStrncatNew (const xmlChar *str1,
95  const xmlChar *str2,
96  int len);
99  int len,
100  const char *msg,
101  ...) LIBXML_ATTR_FORMAT(3,4);
102 XMLPUBFUN int XMLCALL
104  int len,
105  const char *msg,
107 
108 XMLPUBFUN int XMLCALL
109  xmlGetUTF8Char (const unsigned char *utf,
110  int *len);
111 XMLPUBFUN int XMLCALL
112  xmlCheckUTF8 (const unsigned char *utf);
113 XMLPUBFUN int XMLCALL
115  int len);
118  int len);
121  int pos);
122 XMLPUBFUN int XMLCALL
124  const xmlChar *utfchar);
127  int start,
128  int len);
129 XMLPUBFUN int XMLCALL
130  xmlUTF8Strlen (const xmlChar *utf);
131 XMLPUBFUN int XMLCALL
132  xmlUTF8Size (const xmlChar *utf);
133 XMLPUBFUN int XMLCALL
135  const xmlChar *utf2);
136 
137 #ifdef __cplusplus
138 }
139 #endif
140 #endif /* __XML_STRING_H__ */
int add
Definition: i386-dis.c:3122
XMLPUBFUN int XMLCALL xmlUTF8Size(const xmlChar *utf)
Definition: xmlstring.c:615
XMLPUBFUN const xmlChar *XMLCALL xmlStrstr(const xmlChar *str, const xmlChar *val)
Definition: xmlstring.c:341
XMLPUBFUN xmlChar *XMLCALL xmlUTF8Strndup(const xmlChar *utf, int len)
Definition: xmlstring.c:866
XMLPUBFUN int XMLCALL xmlUTF8Strlen(const xmlChar *utf)
Definition: xmlstring.c:666
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
XMLPUBFUN xmlChar *XMLCALL xmlStrndup(const xmlChar *cur, int len)
Definition: xmlstring.c:41
XMLPUBFUN const xmlChar *XMLCALL xmlUTF8Strpos(const xmlChar *utf, int pos)
Definition: xmlstring.c:895
XMLPUBFUN int XMLCALL xmlStrlen(const xmlChar *str)
Definition: xmlstring.c:422
#define XMLPUBFUN
Definition: xmlexports.h:30
XMLPUBFUN xmlChar *XMLCALL xmlCharStrndup(const char *cur, int len)
Definition: xmlstring.c:85
XMLPUBFUN const xmlChar *XMLCALL xmlStrchr(const xmlChar *str, xmlChar val)
Definition: xmlstring.c:321
XMLPUBFUN int XMLCALL xmlStrQEqual(const xmlChar *pref, const xmlChar *name, const xmlChar *str)
Definition: xmlstring.c:179
XMLPUBFUN int XMLCALL xmlUTF8Charcmp(const xmlChar *utf1, const xmlChar *utf2)
Definition: xmlstring.c:646
XMLPUBFUN xmlChar *XMLCALL xmlStrcat(xmlChar *cur, const xmlChar *add)
Definition: xmlstring.c:526
const WCHAR * str
char * va_list
Definition: acmsvcex.h:78
GLuint GLfloat * val
Definition: glext.h:7180
XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL xmlStrVPrintf(xmlChar *buf, int len, const char *msg, va_list ap) LIBXML_ATTR_FORMAT(3
#define LIBXML_ATTR_FORMAT(fmt, args)
Definition: xmlversion.h:478
XMLPUBFUN int XMLCALL xmlUTF8Strloc(const xmlChar *utf, const xmlChar *utfchar)
Definition: xmlstring.c:927
XMLPUBFUN int XMLCALL xmlUTF8Strsize(const xmlChar *utf, int len)
Definition: xmlstring.c:833
XMLPUBFUN xmlChar *XMLCALL xmlStrncat(xmlChar *cur, const xmlChar *add, int len)
Definition: xmlstring.c:448
XMLPUBFUN int XMLCALL xmlStrPrintf(xmlChar *buf, int len, const char *msg,...) LIBXML_ATTR_FORMAT(3
unsigned char xmlChar
Definition: xmlstring.h:28
GLenum GLsizei len
Definition: glext.h:6722
XMLPUBFUN int XMLCALL xmlStrncmp(const xmlChar *str1, const xmlChar *str2, int len)
Definition: xmlstring.c:206
XMLPUBFUN const xmlChar *XMLCALL xmlStrcasestr(const xmlChar *str, const xmlChar *val)
Definition: xmlstring.c:369
XMLPUBFUN xmlChar *XMLCALL xmlUTF8Strsub(const xmlChar *utf, int start, int len)
Definition: xmlstring.c:964
GLuint start
Definition: gl.h:1545
XMLPUBFUN int XMLCALL xmlCheckUTF8(const unsigned char *utf)
Definition: xmlstring.c:781
XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL XMLPUBFUN int XMLCALL xmlGetUTF8Char(const unsigned char *utf, int *len)
Definition: xmlstring.c:710
XMLPUBFUN xmlChar *XMLCALL xmlStrsub(const xmlChar *str, int start, int len)
Definition: xmlstring.c:397
XMLPUBFUN xmlChar *XMLCALL xmlStrncatNew(const xmlChar *str1, const xmlChar *str2, int len)
Definition: xmlstring.c:485
#define msg(x)
Definition: auth_time.c:54
#define XMLCALL
Definition: name.c:36
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32
#define const
Definition: zconf.h:230
XMLPUBFUN int XMLCALL xmlStrncasecmp(const xmlChar *str1, const xmlChar *str2, int len)
Definition: xmlstring.c:296
XMLPUBFUN int XMLCALL xmlStrEqual(const xmlChar *str1, const xmlChar *str2)
Definition: xmlstring.c:157
XMLPUBFUN xmlChar *XMLCALL xmlCharStrdup(const char *cur)
Definition: xmlstring.c:113
XMLPUBFUN int XMLCALL xmlStrcasecmp(const xmlChar *str1, const xmlChar *str2)
Definition: xmlstring.c:271
XMLPUBFUN xmlChar *XMLCALL xmlStrdup(const xmlChar *cur)
Definition: xmlstring.c:66
XMLPUBFUN int XMLCALL xmlStrcmp(const xmlChar *str1, const xmlChar *str2)
Definition: xmlstring.c:132