xmlstring.h

00001 /*
00002 
00003  * Summary: set of routines to process strings
00004 
00005  * Description: type and interfaces needed for the internal string handling
00006 
00007  *              of the library, especially UTF8 processing.
00008 
00009  *
00010 
00011  * Copy: See Copyright for the status of this software.
00012 
00013  *
00014 
00015  * Author: Daniel Veillard
00016 
00017  */
00018 
00019 
00020 
00021 #ifndef __XML_STRING_H__
00022 
00023 #define __XML_STRING_H__
00024 
00025 
00026 
00027 #include <stdarg.h>
00028 
00029 #include <libxml/xmlversion.h>
00030 
00031 
00032 
00033 #ifdef __cplusplus
00034 
00035 extern "C" {
00036 
00037 #endif
00038 
00039 
00040 
00057 typedef unsigned char xmlChar;
00058 
00059 
00060 
00071 #define BAD_CAST (xmlChar *)
00072 
00073 
00074 
00075 /*
00076 
00077  * xmlChar handling
00078 
00079  */
00080 
00081 XMLPUBFUN xmlChar * XMLCALL
00082 
00083                 xmlStrdup                (const xmlChar *cur);
00084 
00085 XMLPUBFUN xmlChar * XMLCALL
00086 
00087                 xmlStrndup               (const xmlChar *cur,
00088 
00089                                          int len);
00090 
00091 XMLPUBFUN xmlChar * XMLCALL
00092 
00093                 xmlCharStrndup           (const char *cur,
00094 
00095                                          int len);
00096 
00097 XMLPUBFUN xmlChar * XMLCALL
00098 
00099                 xmlCharStrdup            (const char *cur);
00100 
00101 XMLPUBFUN xmlChar * XMLCALL
00102 
00103                 xmlStrsub                (const xmlChar *str,
00104 
00105                                          int start,
00106 
00107                                          int len);
00108 
00109 XMLPUBFUN const xmlChar * XMLCALL
00110 
00111                 xmlStrchr                (const xmlChar *str,
00112 
00113                                          xmlChar val);
00114 
00115 XMLPUBFUN const xmlChar * XMLCALL
00116 
00117                 xmlStrstr                (const xmlChar *str,
00118 
00119                                          const xmlChar *val);
00120 
00121 XMLPUBFUN const xmlChar * XMLCALL
00122 
00123                 xmlStrcasestr            (const xmlChar *str,
00124 
00125                                          xmlChar *val);
00126 
00127 XMLPUBFUN int XMLCALL
00128 
00129                 xmlStrcmp                (const xmlChar *str1,
00130 
00131                                          const xmlChar *str2);
00132 
00133 XMLPUBFUN int XMLCALL
00134 
00135                 xmlStrncmp               (const xmlChar *str1,
00136 
00137                                          const xmlChar *str2,
00138 
00139                                          int len);
00140 
00141 XMLPUBFUN int XMLCALL
00142 
00143                 xmlStrcasecmp            (const xmlChar *str1,
00144 
00145                                          const xmlChar *str2);
00146 
00147 XMLPUBFUN int XMLCALL
00148 
00149                 xmlStrncasecmp           (const xmlChar *str1,
00150 
00151                                          const xmlChar *str2,
00152 
00153                                          int len);
00154 
00155 XMLPUBFUN int XMLCALL
00156 
00157                 xmlStrEqual              (const xmlChar *str1,
00158 
00159                                          const xmlChar *str2);
00160 
00161 XMLPUBFUN int XMLCALL
00162 
00163                 xmlStrQEqual             (const xmlChar *pref,
00164 
00165                                          const xmlChar *name,
00166 
00167                                          const xmlChar *str);
00168 
00169 XMLPUBFUN int XMLCALL
00170 
00171                 xmlStrlen                (const xmlChar *str);
00172 
00173 XMLPUBFUN xmlChar * XMLCALL
00174 
00175                 xmlStrcat                (xmlChar *cur,
00176 
00177                                          const xmlChar *add);
00178 
00179 XMLPUBFUN xmlChar * XMLCALL
00180 
00181                 xmlStrncat               (xmlChar *cur,
00182 
00183                                          const xmlChar *add,
00184 
00185                                          int len);
00186 
00187 XMLPUBFUN xmlChar * XMLCALL
00188 
00189                 xmlStrncatNew            (const xmlChar *str1,
00190 
00191                                          const xmlChar *str2,
00192 
00193                                          int len);
00194 
00195 XMLPUBFUN int XMLCALL
00196 
00197                 xmlStrPrintf             (xmlChar *buf,
00198 
00199                                          int len,
00200 
00201                                          const xmlChar *msg,
00202 
00203                                          ...);
00204 
00205 XMLPUBFUN int XMLCALL
00206 
00207                 xmlStrVPrintf                (xmlChar *buf,
00208 
00209                                          int len,
00210 
00211                                          const xmlChar *msg,
00212 
00213                                          va_list ap);
00214 
00215 
00216 
00217 XMLPUBFUN int XMLCALL
00218 
00219         xmlGetUTF8Char                   (const unsigned char *utf,
00220 
00221                                          int *len);
00222 
00223 XMLPUBFUN int XMLCALL
00224 
00225         xmlCheckUTF8                     (const unsigned char *utf);
00226 
00227 XMLPUBFUN int XMLCALL
00228 
00229         xmlUTF8Strsize                   (const xmlChar *utf,
00230 
00231                                          int len);
00232 
00233 XMLPUBFUN xmlChar * XMLCALL 
00234 
00235         xmlUTF8Strndup                   (const xmlChar *utf,
00236 
00237                                          int len);
00238 
00239 XMLPUBFUN const xmlChar * XMLCALL 
00240 
00241         xmlUTF8Strpos                    (const xmlChar *utf,
00242 
00243                                          int pos);
00244 
00245 XMLPUBFUN int XMLCALL
00246 
00247         xmlUTF8Strloc                    (const xmlChar *utf,
00248 
00249                                          const xmlChar *utfchar);
00250 
00251 XMLPUBFUN xmlChar * XMLCALL 
00252 
00253         xmlUTF8Strsub                    (const xmlChar *utf,
00254 
00255                                          int start,
00256 
00257                                          int len);
00258 
00259 XMLPUBFUN int XMLCALL
00260 
00261         xmlUTF8Strlen                    (const xmlChar *utf);
00262 
00263 XMLPUBFUN int XMLCALL
00264 
00265         xmlUTF8Size                      (const xmlChar *utf);
00266 
00267 XMLPUBFUN int XMLCALL
00268 
00269         xmlUTF8Charcmp                   (const xmlChar *utf1,
00270 
00271                                          const xmlChar *utf2);
00272 
00273 
00274 
00275 #ifdef __cplusplus
00276 
00277 }
00278 
00279 #endif
00280 
00281 #endif /* __XML_STRING_H__ */
00282 

Generated on Wed Jul 26 13:30:47 2006 for XSB by  doxygen 1.4.5