Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 1 | <HTML |
| 2 | ><HEAD |
| 3 | ><TITLE |
| 4 | >encoding</TITLE |
| 5 | ><META |
| 6 | NAME="GENERATOR" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 7 | CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 8 | REL="HOME" |
| 9 | TITLE="Gnome XML Library Reference Manual" |
| 10 | HREF="book1.html"><LINK |
| 11 | REL="UP" |
| 12 | TITLE="Libxml Library Reference" |
| 13 | HREF="libxml-lib.html"><LINK |
| 14 | REL="PREVIOUS" |
| 15 | TITLE="parserInternals" |
| 16 | HREF="gnome-xml-parserinternals.html"><LINK |
| 17 | REL="NEXT" |
| 18 | TITLE="debugXML" |
| 19 | HREF="gnome-xml-debugxml.html"></HEAD |
| 20 | ><BODY |
| 21 | BGCOLOR="#FFFFFF" |
| 22 | TEXT="#000000" |
| 23 | ><DIV |
| 24 | CLASS="NAVHEADER" |
| 25 | ><TABLE |
| 26 | WIDTH="100%" |
| 27 | BORDER="0" |
| 28 | BGCOLOR="#000000" |
| 29 | CELLPADDING="1" |
| 30 | CELLSPACING="0" |
| 31 | ><TR |
| 32 | ><TH |
| 33 | COLSPAN="4" |
| 34 | ALIGN="center" |
| 35 | ><FONT |
| 36 | COLOR="#FFFFFF" |
| 37 | SIZE="5" |
| 38 | >Gnome XML Library Reference Manual</FONT |
| 39 | ></TH |
| 40 | ></TR |
| 41 | ><TR |
| 42 | ><TD |
| 43 | WIDTH="25%" |
| 44 | BGCOLOR="#C00000" |
| 45 | ALIGN="left" |
| 46 | ><A |
| 47 | HREF="gnome-xml-parserinternals.html" |
| 48 | ><FONT |
| 49 | COLOR="#FFFFFF" |
| 50 | SIZE="3" |
| 51 | ><B |
| 52 | ><<< Previous Page</B |
| 53 | ></FONT |
| 54 | ></A |
| 55 | ></TD |
| 56 | ><TD |
| 57 | WIDTH="25%" |
| 58 | BGCOLOR="#0000C0" |
| 59 | ALIGN="center" |
| 60 | ><FONT |
| 61 | COLOR="#FFFFFF" |
| 62 | SIZE="3" |
| 63 | ><B |
| 64 | ><A |
| 65 | HREF="book1.html" |
| 66 | ><FONT |
| 67 | COLOR="#FFFFFF" |
| 68 | SIZE="3" |
| 69 | ><B |
| 70 | >Home</B |
| 71 | ></FONT |
| 72 | ></A |
| 73 | ></B |
| 74 | ></FONT |
| 75 | ></TD |
| 76 | ><TD |
| 77 | WIDTH="25%" |
| 78 | BGCOLOR="#00C000" |
| 79 | ALIGN="center" |
| 80 | ><FONT |
| 81 | COLOR="#FFFFFF" |
| 82 | SIZE="3" |
| 83 | ><B |
| 84 | ><A |
| 85 | HREF="libxml-lib.html" |
| 86 | ><FONT |
| 87 | COLOR="#FFFFFF" |
| 88 | SIZE="3" |
| 89 | ><B |
| 90 | >Up</B |
| 91 | ></FONT |
| 92 | ></A |
| 93 | ></B |
| 94 | ></FONT |
| 95 | ></TD |
| 96 | ><TD |
| 97 | WIDTH="25%" |
| 98 | BGCOLOR="#C00000" |
| 99 | ALIGN="right" |
| 100 | ><A |
| 101 | HREF="gnome-xml-debugxml.html" |
| 102 | ><FONT |
| 103 | COLOR="#FFFFFF" |
| 104 | SIZE="3" |
| 105 | ><B |
| 106 | >Next Page >>></B |
| 107 | ></FONT |
| 108 | ></A |
| 109 | ></TD |
| 110 | ></TR |
| 111 | ></TABLE |
| 112 | ></DIV |
| 113 | ><H1 |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 114 | >encoding</H1 |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 115 | ><DIV |
| 116 | CLASS="REFNAMEDIV" |
| 117 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 118 | NAME="AEN14357" |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 119 | ></A |
| 120 | ><H2 |
| 121 | >Name</H2 |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 122 | >encoding — </DIV |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 123 | ><DIV |
| 124 | CLASS="REFSYNOPSISDIV" |
| 125 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 126 | NAME="AEN14360" |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 127 | ></A |
| 128 | ><H2 |
| 129 | >Synopsis</H2 |
| 130 | ><TABLE |
| 131 | BORDER="0" |
| 132 | BGCOLOR="#D6E8FF" |
| 133 | WIDTH="100%" |
| 134 | CELLPADDING="6" |
| 135 | ><TR |
| 136 | ><TD |
| 137 | ><PRE |
| 138 | CLASS="SYNOPSIS" |
| 139 | > |
| 140 | |
| 141 | enum <A |
| 142 | HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| 143 | >xmlCharEncoding</A |
| 144 | >; |
| 145 | int (<A |
| 146 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGINPUTFUNC" |
| 147 | >*xmlCharEncodingInputFunc</A |
| 148 | >) (unsigned char *out, |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 149 | int *outlen, |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 150 | unsigned char *in, |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 151 | int *inlen); |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 152 | int (<A |
| 153 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGOUTPUTFUNC" |
| 154 | >*xmlCharEncodingOutputFunc</A |
| 155 | >) (unsigned char *out, |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 156 | int *outlen, |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 157 | unsigned char *in, |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 158 | int *inlen); |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 159 | struct <A |
| 160 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLER" |
| 161 | >xmlCharEncodingHandler</A |
| 162 | >; |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 163 | typedef <A |
| 164 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| 165 | >xmlCharEncodingHandlerPtr</A |
| 166 | >; |
| 167 | void <A |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 168 | HREF="gnome-xml-encoding.html#XMLINITCHARENCODINGHANDLERS" |
| 169 | >xmlInitCharEncodingHandlers</A |
| 170 | > (void); |
| 171 | void <A |
| 172 | HREF="gnome-xml-encoding.html#XMLCLEANUPCHARENCODINGHANDLERS" |
| 173 | >xmlCleanupCharEncodingHandlers</A |
| 174 | > (void); |
| 175 | void <A |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 176 | HREF="gnome-xml-encoding.html#XMLREGISTERCHARENCODINGHANDLER" |
| 177 | >xmlRegisterCharEncodingHandler</A |
| 178 | > (<A |
| 179 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| 180 | >xmlCharEncodingHandlerPtr</A |
| 181 | > handler); |
| 182 | <A |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 183 | HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| 184 | >xmlCharEncoding</A |
| 185 | > <A |
| 186 | HREF="gnome-xml-encoding.html#XMLDETECTCHARENCODING" |
| 187 | >xmlDetectCharEncoding</A |
| 188 | > (unsigned char *in, |
| 189 | int len); |
| 190 | <A |
| 191 | HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| 192 | >xmlCharEncoding</A |
| 193 | > <A |
| 194 | HREF="gnome-xml-encoding.html#XMLPARSECHARENCODING" |
| 195 | >xmlParseCharEncoding</A |
| 196 | > (const char *name); |
| 197 | const char* <A |
| 198 | HREF="gnome-xml-encoding.html#XMLGETCHARENCODINGNAME" |
| 199 | >xmlGetCharEncodingName</A |
| 200 | > (<A |
| 201 | HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| 202 | >xmlCharEncoding</A |
| 203 | > enc); |
| 204 | <A |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 205 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| 206 | >xmlCharEncodingHandlerPtr</A |
| 207 | > <A |
| 208 | HREF="gnome-xml-encoding.html#XMLGETCHARENCODINGHANDLER" |
| 209 | >xmlGetCharEncodingHandler</A |
| 210 | > |
| 211 | (<A |
| 212 | HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| 213 | >xmlCharEncoding</A |
| 214 | > enc); |
| 215 | <A |
| 216 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| 217 | >xmlCharEncodingHandlerPtr</A |
| 218 | > <A |
| 219 | HREF="gnome-xml-encoding.html#XMLFINDCHARENCODINGHANDLER" |
| 220 | >xmlFindCharEncodingHandler</A |
| 221 | > |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 222 | (const char *name); |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 223 | int <A |
| 224 | HREF="gnome-xml-encoding.html#XMLCHECKUTF8" |
| 225 | >xmlCheckUTF8</A |
| 226 | > (unsigned char *utf); |
| 227 | int <A |
| 228 | HREF="gnome-xml-encoding.html#XMLCHARENCOUTFUNC" |
| 229 | >xmlCharEncOutFunc</A |
| 230 | > (<A |
| 231 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLER" |
| 232 | >xmlCharEncodingHandler</A |
| 233 | > *handler, |
| 234 | <A |
| 235 | HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| 236 | >xmlBufferPtr</A |
| 237 | > out, |
| 238 | <A |
| 239 | HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| 240 | >xmlBufferPtr</A |
| 241 | > in); |
| 242 | int <A |
| 243 | HREF="gnome-xml-encoding.html#XMLCHARENCINFUNC" |
| 244 | >xmlCharEncInFunc</A |
| 245 | > (<A |
| 246 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLER" |
| 247 | >xmlCharEncodingHandler</A |
| 248 | > *handler, |
| 249 | <A |
| 250 | HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| 251 | >xmlBufferPtr</A |
| 252 | > out, |
| 253 | <A |
| 254 | HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| 255 | >xmlBufferPtr</A |
| 256 | > in); |
| 257 | int <A |
| 258 | HREF="gnome-xml-encoding.html#XMLCHARENCFIRSTLINE" |
| 259 | >xmlCharEncFirstLine</A |
| 260 | > (<A |
| 261 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLER" |
| 262 | >xmlCharEncodingHandler</A |
| 263 | > *handler, |
| 264 | <A |
| 265 | HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| 266 | >xmlBufferPtr</A |
| 267 | > out, |
| 268 | <A |
| 269 | HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| 270 | >xmlBufferPtr</A |
| 271 | > in); |
| 272 | int <A |
| 273 | HREF="gnome-xml-encoding.html#XMLCHARENCCLOSEFUNC" |
| 274 | >xmlCharEncCloseFunc</A |
| 275 | > (<A |
| 276 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLER" |
| 277 | >xmlCharEncodingHandler</A |
| 278 | > *handler);</PRE |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 279 | ></TD |
| 280 | ></TR |
| 281 | ></TABLE |
| 282 | ></DIV |
| 283 | ><DIV |
| 284 | CLASS="REFSECT1" |
| 285 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 286 | NAME="AEN14398" |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 287 | ></A |
| 288 | ><H2 |
| 289 | >Description</H2 |
| 290 | ><P |
| 291 | ></P |
| 292 | ></DIV |
| 293 | ><DIV |
| 294 | CLASS="REFSECT1" |
| 295 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 296 | NAME="AEN14401" |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 297 | ></A |
| 298 | ><H2 |
| 299 | >Details</H2 |
| 300 | ><DIV |
| 301 | CLASS="REFSECT2" |
| 302 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 303 | NAME="AEN14403" |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 304 | ></A |
| 305 | ><H3 |
| 306 | ><A |
| 307 | NAME="XMLCHARENCODING" |
| 308 | ></A |
| 309 | >enum xmlCharEncoding</H3 |
| 310 | ><TABLE |
| 311 | BORDER="0" |
| 312 | BGCOLOR="#D6E8FF" |
| 313 | WIDTH="100%" |
| 314 | CELLPADDING="6" |
| 315 | ><TR |
| 316 | ><TD |
| 317 | ><PRE |
| 318 | CLASS="PROGRAMLISTING" |
| 319 | >typedef enum { |
| 320 | XML_CHAR_ENCODING_ERROR= -1, /* No char encoding detected */ |
| 321 | XML_CHAR_ENCODING_NONE= 0, /* No char encoding detected */ |
| 322 | XML_CHAR_ENCODING_UTF8= 1, /* UTF-8 */ |
| 323 | XML_CHAR_ENCODING_UTF16LE= 2, /* UTF-16 little endian */ |
| 324 | XML_CHAR_ENCODING_UTF16BE= 3, /* UTF-16 big endian */ |
| 325 | XML_CHAR_ENCODING_UCS4LE= 4, /* UCS-4 little endian */ |
| 326 | XML_CHAR_ENCODING_UCS4BE= 5, /* UCS-4 big endian */ |
| 327 | XML_CHAR_ENCODING_EBCDIC= 6, /* EBCDIC uh! */ |
| 328 | XML_CHAR_ENCODING_UCS4_2143=7, /* UCS-4 unusual ordering */ |
| 329 | XML_CHAR_ENCODING_UCS4_3412=8, /* UCS-4 unusual ordering */ |
| 330 | XML_CHAR_ENCODING_UCS2= 9, /* UCS-2 */ |
| 331 | XML_CHAR_ENCODING_8859_1= 10,/* ISO-8859-1 ISO Latin 1 */ |
| 332 | XML_CHAR_ENCODING_8859_2= 11,/* ISO-8859-2 ISO Latin 2 */ |
| 333 | XML_CHAR_ENCODING_8859_3= 12,/* ISO-8859-3 */ |
| 334 | XML_CHAR_ENCODING_8859_4= 13,/* ISO-8859-4 */ |
| 335 | XML_CHAR_ENCODING_8859_5= 14,/* ISO-8859-5 */ |
| 336 | XML_CHAR_ENCODING_8859_6= 15,/* ISO-8859-6 */ |
| 337 | XML_CHAR_ENCODING_8859_7= 16,/* ISO-8859-7 */ |
| 338 | XML_CHAR_ENCODING_8859_8= 17,/* ISO-8859-8 */ |
| 339 | XML_CHAR_ENCODING_8859_9= 18,/* ISO-8859-9 */ |
| 340 | XML_CHAR_ENCODING_2022_JP= 19,/* ISO-2022-JP */ |
| 341 | XML_CHAR_ENCODING_SHIFT_JIS=20,/* Shift_JIS */ |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 342 | XML_CHAR_ENCODING_EUC_JP= 21,/* EUC-JP */ |
| 343 | XML_CHAR_ENCODING_ASCII= 22 /* pure ASCII */ |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 344 | } xmlCharEncoding;</PRE |
| 345 | ></TD |
| 346 | ></TR |
| 347 | ></TABLE |
| 348 | ><P |
| 349 | ></P |
| 350 | ></DIV |
| 351 | ><HR><DIV |
| 352 | CLASS="REFSECT2" |
| 353 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 354 | NAME="AEN14408" |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 355 | ></A |
| 356 | ><H3 |
| 357 | ><A |
| 358 | NAME="XMLCHARENCODINGINPUTFUNC" |
| 359 | ></A |
| 360 | >xmlCharEncodingInputFunc ()</H3 |
| 361 | ><TABLE |
| 362 | BORDER="0" |
| 363 | BGCOLOR="#D6E8FF" |
| 364 | WIDTH="100%" |
| 365 | CELLPADDING="6" |
| 366 | ><TR |
| 367 | ><TD |
| 368 | ><PRE |
| 369 | CLASS="PROGRAMLISTING" |
| 370 | >int (*xmlCharEncodingInputFunc) (unsigned char *out, |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 371 | int *outlen, |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 372 | unsigned char *in, |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 373 | int *inlen);</PRE |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 374 | ></TD |
| 375 | ></TR |
| 376 | ></TABLE |
| 377 | ><P |
| 378 | ></P |
| 379 | ><DIV |
| 380 | CLASS="INFORMALTABLE" |
| 381 | ><P |
| 382 | ></P |
| 383 | ><TABLE |
| 384 | BORDER="0" |
| 385 | WIDTH="100%" |
| 386 | BGCOLOR="#FFD0D0" |
| 387 | CELLSPACING="0" |
| 388 | CELLPADDING="4" |
| 389 | CLASS="CALSTABLE" |
| 390 | ><TR |
| 391 | ><TD |
| 392 | WIDTH="20%" |
| 393 | ALIGN="RIGHT" |
| 394 | VALIGN="TOP" |
| 395 | ><TT |
| 396 | CLASS="PARAMETER" |
| 397 | ><I |
| 398 | >out</I |
| 399 | ></TT |
| 400 | > :</TD |
| 401 | ><TD |
| 402 | WIDTH="80%" |
| 403 | ALIGN="LEFT" |
| 404 | VALIGN="TOP" |
| 405 | > </TD |
| 406 | ></TR |
| 407 | ><TR |
| 408 | ><TD |
| 409 | WIDTH="20%" |
| 410 | ALIGN="RIGHT" |
| 411 | VALIGN="TOP" |
| 412 | ><TT |
| 413 | CLASS="PARAMETER" |
| 414 | ><I |
| 415 | >outlen</I |
| 416 | ></TT |
| 417 | > :</TD |
| 418 | ><TD |
| 419 | WIDTH="80%" |
| 420 | ALIGN="LEFT" |
| 421 | VALIGN="TOP" |
| 422 | > </TD |
| 423 | ></TR |
| 424 | ><TR |
| 425 | ><TD |
| 426 | WIDTH="20%" |
| 427 | ALIGN="RIGHT" |
| 428 | VALIGN="TOP" |
| 429 | ><TT |
| 430 | CLASS="PARAMETER" |
| 431 | ><I |
| 432 | >in</I |
| 433 | ></TT |
| 434 | > :</TD |
| 435 | ><TD |
| 436 | WIDTH="80%" |
| 437 | ALIGN="LEFT" |
| 438 | VALIGN="TOP" |
| 439 | > </TD |
| 440 | ></TR |
| 441 | ><TR |
| 442 | ><TD |
| 443 | WIDTH="20%" |
| 444 | ALIGN="RIGHT" |
| 445 | VALIGN="TOP" |
| 446 | ><TT |
| 447 | CLASS="PARAMETER" |
| 448 | ><I |
| 449 | >inlen</I |
| 450 | ></TT |
| 451 | > :</TD |
| 452 | ><TD |
| 453 | WIDTH="80%" |
| 454 | ALIGN="LEFT" |
| 455 | VALIGN="TOP" |
| 456 | > </TD |
| 457 | ></TR |
| 458 | ><TR |
| 459 | ><TD |
| 460 | WIDTH="20%" |
| 461 | ALIGN="RIGHT" |
| 462 | VALIGN="TOP" |
| 463 | ><I |
| 464 | CLASS="EMPHASIS" |
| 465 | >Returns</I |
| 466 | > :</TD |
| 467 | ><TD |
| 468 | WIDTH="80%" |
| 469 | ALIGN="LEFT" |
| 470 | VALIGN="TOP" |
| 471 | > </TD |
| 472 | ></TR |
| 473 | ></TABLE |
| 474 | ><P |
| 475 | ></P |
| 476 | ></DIV |
| 477 | ></DIV |
| 478 | ><HR><DIV |
| 479 | CLASS="REFSECT2" |
| 480 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 481 | NAME="AEN14438" |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 482 | ></A |
| 483 | ><H3 |
| 484 | ><A |
| 485 | NAME="XMLCHARENCODINGOUTPUTFUNC" |
| 486 | ></A |
| 487 | >xmlCharEncodingOutputFunc ()</H3 |
| 488 | ><TABLE |
| 489 | BORDER="0" |
| 490 | BGCOLOR="#D6E8FF" |
| 491 | WIDTH="100%" |
| 492 | CELLPADDING="6" |
| 493 | ><TR |
| 494 | ><TD |
| 495 | ><PRE |
| 496 | CLASS="PROGRAMLISTING" |
| 497 | >int (*xmlCharEncodingOutputFunc) (unsigned char *out, |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 498 | int *outlen, |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 499 | unsigned char *in, |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 500 | int *inlen);</PRE |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 501 | ></TD |
| 502 | ></TR |
| 503 | ></TABLE |
| 504 | ><P |
| 505 | ></P |
| 506 | ><DIV |
| 507 | CLASS="INFORMALTABLE" |
| 508 | ><P |
| 509 | ></P |
| 510 | ><TABLE |
| 511 | BORDER="0" |
| 512 | WIDTH="100%" |
| 513 | BGCOLOR="#FFD0D0" |
| 514 | CELLSPACING="0" |
| 515 | CELLPADDING="4" |
| 516 | CLASS="CALSTABLE" |
| 517 | ><TR |
| 518 | ><TD |
| 519 | WIDTH="20%" |
| 520 | ALIGN="RIGHT" |
| 521 | VALIGN="TOP" |
| 522 | ><TT |
| 523 | CLASS="PARAMETER" |
| 524 | ><I |
| 525 | >out</I |
| 526 | ></TT |
| 527 | > :</TD |
| 528 | ><TD |
| 529 | WIDTH="80%" |
| 530 | ALIGN="LEFT" |
| 531 | VALIGN="TOP" |
| 532 | > </TD |
| 533 | ></TR |
| 534 | ><TR |
| 535 | ><TD |
| 536 | WIDTH="20%" |
| 537 | ALIGN="RIGHT" |
| 538 | VALIGN="TOP" |
| 539 | ><TT |
| 540 | CLASS="PARAMETER" |
| 541 | ><I |
| 542 | >outlen</I |
| 543 | ></TT |
| 544 | > :</TD |
| 545 | ><TD |
| 546 | WIDTH="80%" |
| 547 | ALIGN="LEFT" |
| 548 | VALIGN="TOP" |
| 549 | > </TD |
| 550 | ></TR |
| 551 | ><TR |
| 552 | ><TD |
| 553 | WIDTH="20%" |
| 554 | ALIGN="RIGHT" |
| 555 | VALIGN="TOP" |
| 556 | ><TT |
| 557 | CLASS="PARAMETER" |
| 558 | ><I |
| 559 | >in</I |
| 560 | ></TT |
| 561 | > :</TD |
| 562 | ><TD |
| 563 | WIDTH="80%" |
| 564 | ALIGN="LEFT" |
| 565 | VALIGN="TOP" |
| 566 | > </TD |
| 567 | ></TR |
| 568 | ><TR |
| 569 | ><TD |
| 570 | WIDTH="20%" |
| 571 | ALIGN="RIGHT" |
| 572 | VALIGN="TOP" |
| 573 | ><TT |
| 574 | CLASS="PARAMETER" |
| 575 | ><I |
| 576 | >inlen</I |
| 577 | ></TT |
| 578 | > :</TD |
| 579 | ><TD |
| 580 | WIDTH="80%" |
| 581 | ALIGN="LEFT" |
| 582 | VALIGN="TOP" |
| 583 | > </TD |
| 584 | ></TR |
| 585 | ><TR |
| 586 | ><TD |
| 587 | WIDTH="20%" |
| 588 | ALIGN="RIGHT" |
| 589 | VALIGN="TOP" |
| 590 | ><I |
| 591 | CLASS="EMPHASIS" |
| 592 | >Returns</I |
| 593 | > :</TD |
| 594 | ><TD |
| 595 | WIDTH="80%" |
| 596 | ALIGN="LEFT" |
| 597 | VALIGN="TOP" |
| 598 | > </TD |
| 599 | ></TR |
| 600 | ></TABLE |
| 601 | ><P |
| 602 | ></P |
| 603 | ></DIV |
| 604 | ></DIV |
| 605 | ><HR><DIV |
| 606 | CLASS="REFSECT2" |
| 607 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 608 | NAME="AEN14468" |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 609 | ></A |
| 610 | ><H3 |
| 611 | ><A |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 612 | NAME="XMLCHARENCODINGHANDLER" |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 613 | ></A |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 614 | >struct xmlCharEncodingHandler</H3 |
| 615 | ><TABLE |
| 616 | BORDER="0" |
| 617 | BGCOLOR="#D6E8FF" |
| 618 | WIDTH="100%" |
| 619 | CELLPADDING="6" |
| 620 | ><TR |
| 621 | ><TD |
| 622 | ><PRE |
| 623 | CLASS="PROGRAMLISTING" |
| 624 | >struct xmlCharEncodingHandler { |
| 625 | char *name; |
| 626 | xmlCharEncodingInputFunc input; |
| 627 | xmlCharEncodingOutputFunc output; |
| 628 | #ifdef LIBXML_ICONV_ENABLED |
| 629 | iconv_t iconv_in; |
| 630 | iconv_t iconv_out; |
| 631 | #endif /* LIBXML_ICONV_ENABLED */ |
| 632 | };</PRE |
| 633 | ></TD |
| 634 | ></TR |
| 635 | ></TABLE |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 636 | ><P |
| 637 | ></P |
| 638 | ></DIV |
| 639 | ><HR><DIV |
| 640 | CLASS="REFSECT2" |
| 641 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 642 | NAME="AEN14473" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 643 | ></A |
| 644 | ><H3 |
| 645 | ><A |
| 646 | NAME="XMLCHARENCODINGHANDLERPTR" |
| 647 | ></A |
| 648 | >xmlCharEncodingHandlerPtr</H3 |
| 649 | ><TABLE |
| 650 | BORDER="0" |
| 651 | BGCOLOR="#D6E8FF" |
| 652 | WIDTH="100%" |
| 653 | CELLPADDING="6" |
| 654 | ><TR |
| 655 | ><TD |
| 656 | ><PRE |
| 657 | CLASS="PROGRAMLISTING" |
| 658 | >typedef xmlCharEncodingHandler *xmlCharEncodingHandlerPtr;</PRE |
| 659 | ></TD |
| 660 | ></TR |
| 661 | ></TABLE |
| 662 | ><P |
| 663 | ></P |
| 664 | ></DIV |
| 665 | ><HR><DIV |
| 666 | CLASS="REFSECT2" |
| 667 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 668 | NAME="AEN14478" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 669 | ></A |
| 670 | ><H3 |
| 671 | ><A |
| 672 | NAME="XMLINITCHARENCODINGHANDLERS" |
| 673 | ></A |
| 674 | >xmlInitCharEncodingHandlers ()</H3 |
| 675 | ><TABLE |
| 676 | BORDER="0" |
| 677 | BGCOLOR="#D6E8FF" |
| 678 | WIDTH="100%" |
| 679 | CELLPADDING="6" |
| 680 | ><TR |
| 681 | ><TD |
| 682 | ><PRE |
| 683 | CLASS="PROGRAMLISTING" |
| 684 | >void xmlInitCharEncodingHandlers (void);</PRE |
| 685 | ></TD |
| 686 | ></TR |
| 687 | ></TABLE |
| 688 | ><P |
| 689 | >Initialize the char encoding support, it registers the default |
| 690 | encoding supported. |
| 691 | NOTE: while public, this function usually doesn't need to be called |
| 692 | in normal processing.</P |
| 693 | ><P |
| 694 | ></P |
| 695 | ></DIV |
| 696 | ><HR><DIV |
| 697 | CLASS="REFSECT2" |
| 698 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 699 | NAME="AEN14484" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 700 | ></A |
| 701 | ><H3 |
| 702 | ><A |
| 703 | NAME="XMLCLEANUPCHARENCODINGHANDLERS" |
| 704 | ></A |
| 705 | >xmlCleanupCharEncodingHandlers ()</H3 |
| 706 | ><TABLE |
| 707 | BORDER="0" |
| 708 | BGCOLOR="#D6E8FF" |
| 709 | WIDTH="100%" |
| 710 | CELLPADDING="6" |
| 711 | ><TR |
| 712 | ><TD |
| 713 | ><PRE |
| 714 | CLASS="PROGRAMLISTING" |
| 715 | >void xmlCleanupCharEncodingHandlers (void);</PRE |
| 716 | ></TD |
| 717 | ></TR |
| 718 | ></TABLE |
| 719 | ><P |
| 720 | >Cleanup the memory allocated for the char encoding support, it |
| 721 | unregisters all the encoding handlers.</P |
| 722 | ><P |
| 723 | ></P |
| 724 | ></DIV |
| 725 | ><HR><DIV |
| 726 | CLASS="REFSECT2" |
| 727 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 728 | NAME="AEN14490" |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 729 | ></A |
| 730 | ><H3 |
| 731 | ><A |
| 732 | NAME="XMLREGISTERCHARENCODINGHANDLER" |
| 733 | ></A |
| 734 | >xmlRegisterCharEncodingHandler ()</H3 |
| 735 | ><TABLE |
| 736 | BORDER="0" |
| 737 | BGCOLOR="#D6E8FF" |
| 738 | WIDTH="100%" |
| 739 | CELLPADDING="6" |
| 740 | ><TR |
| 741 | ><TD |
| 742 | ><PRE |
| 743 | CLASS="PROGRAMLISTING" |
| 744 | >void xmlRegisterCharEncodingHandler (<A |
| 745 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| 746 | >xmlCharEncodingHandlerPtr</A |
| 747 | > handler);</PRE |
| 748 | ></TD |
| 749 | ></TR |
| 750 | ></TABLE |
| 751 | ><P |
| 752 | >Register the char encoding handler, surprizing, isn't it ?</P |
| 753 | ><P |
| 754 | ></P |
| 755 | ><DIV |
| 756 | CLASS="INFORMALTABLE" |
| 757 | ><P |
| 758 | ></P |
| 759 | ><TABLE |
| 760 | BORDER="0" |
| 761 | WIDTH="100%" |
| 762 | BGCOLOR="#FFD0D0" |
| 763 | CELLSPACING="0" |
| 764 | CELLPADDING="4" |
| 765 | CLASS="CALSTABLE" |
| 766 | ><TR |
| 767 | ><TD |
| 768 | WIDTH="20%" |
| 769 | ALIGN="RIGHT" |
| 770 | VALIGN="TOP" |
| 771 | ><TT |
| 772 | CLASS="PARAMETER" |
| 773 | ><I |
| 774 | >handler</I |
| 775 | ></TT |
| 776 | > :</TD |
| 777 | ><TD |
| 778 | WIDTH="80%" |
| 779 | ALIGN="LEFT" |
| 780 | VALIGN="TOP" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 781 | > the xmlCharEncodingHandlerPtr handler block</TD |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 782 | ></TR |
| 783 | ></TABLE |
| 784 | ><P |
| 785 | ></P |
| 786 | ></DIV |
| 787 | ></DIV |
| 788 | ><HR><DIV |
| 789 | CLASS="REFSECT2" |
| 790 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 791 | NAME="AEN14506" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 792 | ></A |
| 793 | ><H3 |
| 794 | ><A |
| 795 | NAME="XMLDETECTCHARENCODING" |
| 796 | ></A |
| 797 | >xmlDetectCharEncoding ()</H3 |
| 798 | ><TABLE |
| 799 | BORDER="0" |
| 800 | BGCOLOR="#D6E8FF" |
| 801 | WIDTH="100%" |
| 802 | CELLPADDING="6" |
| 803 | ><TR |
| 804 | ><TD |
| 805 | ><PRE |
| 806 | CLASS="PROGRAMLISTING" |
| 807 | ><A |
| 808 | HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| 809 | >xmlCharEncoding</A |
| 810 | > xmlDetectCharEncoding (unsigned char *in, |
| 811 | int len);</PRE |
| 812 | ></TD |
| 813 | ></TR |
| 814 | ></TABLE |
| 815 | ><P |
| 816 | >Guess the encoding of the entity using the first bytes of the entity content |
| 817 | accordingly of the non-normative appendix F of the XML-1.0 recommendation.</P |
| 818 | ><P |
| 819 | ></P |
| 820 | ><DIV |
| 821 | CLASS="INFORMALTABLE" |
| 822 | ><P |
| 823 | ></P |
| 824 | ><TABLE |
| 825 | BORDER="0" |
| 826 | WIDTH="100%" |
| 827 | BGCOLOR="#FFD0D0" |
| 828 | CELLSPACING="0" |
| 829 | CELLPADDING="4" |
| 830 | CLASS="CALSTABLE" |
| 831 | ><TR |
| 832 | ><TD |
| 833 | WIDTH="20%" |
| 834 | ALIGN="RIGHT" |
| 835 | VALIGN="TOP" |
| 836 | ><TT |
| 837 | CLASS="PARAMETER" |
| 838 | ><I |
| 839 | >in</I |
| 840 | ></TT |
| 841 | > :</TD |
| 842 | ><TD |
| 843 | WIDTH="80%" |
| 844 | ALIGN="LEFT" |
| 845 | VALIGN="TOP" |
| 846 | > a pointer to the first bytes of the XML entity, must be at least |
| 847 | 4 bytes long.</TD |
| 848 | ></TR |
| 849 | ><TR |
| 850 | ><TD |
| 851 | WIDTH="20%" |
| 852 | ALIGN="RIGHT" |
| 853 | VALIGN="TOP" |
| 854 | ><TT |
| 855 | CLASS="PARAMETER" |
| 856 | ><I |
| 857 | >len</I |
| 858 | ></TT |
| 859 | > :</TD |
| 860 | ><TD |
| 861 | WIDTH="80%" |
| 862 | ALIGN="LEFT" |
| 863 | VALIGN="TOP" |
| 864 | > pointer to the length of the buffer</TD |
| 865 | ></TR |
| 866 | ><TR |
| 867 | ><TD |
| 868 | WIDTH="20%" |
| 869 | ALIGN="RIGHT" |
| 870 | VALIGN="TOP" |
| 871 | ><I |
| 872 | CLASS="EMPHASIS" |
| 873 | >Returns</I |
| 874 | > :</TD |
| 875 | ><TD |
| 876 | WIDTH="80%" |
| 877 | ALIGN="LEFT" |
| 878 | VALIGN="TOP" |
| 879 | >one of the XML_CHAR_ENCODING_... values.</TD |
| 880 | ></TR |
| 881 | ></TABLE |
| 882 | ><P |
| 883 | ></P |
| 884 | ></DIV |
| 885 | ></DIV |
| 886 | ><HR><DIV |
| 887 | CLASS="REFSECT2" |
| 888 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 889 | NAME="AEN14530" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 890 | ></A |
| 891 | ><H3 |
| 892 | ><A |
| 893 | NAME="XMLPARSECHARENCODING" |
| 894 | ></A |
| 895 | >xmlParseCharEncoding ()</H3 |
| 896 | ><TABLE |
| 897 | BORDER="0" |
| 898 | BGCOLOR="#D6E8FF" |
| 899 | WIDTH="100%" |
| 900 | CELLPADDING="6" |
| 901 | ><TR |
| 902 | ><TD |
| 903 | ><PRE |
| 904 | CLASS="PROGRAMLISTING" |
| 905 | ><A |
| 906 | HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| 907 | >xmlCharEncoding</A |
| 908 | > xmlParseCharEncoding (const char *name);</PRE |
| 909 | ></TD |
| 910 | ></TR |
| 911 | ></TABLE |
| 912 | ><P |
| 913 | >Conpare the string to the known encoding schemes already known. Note |
| 914 | that the comparison is case insensitive accordingly to the section |
| 915 | [XML] 4.3.3 Character Encoding in Entities.</P |
| 916 | ><P |
| 917 | ></P |
| 918 | ><DIV |
| 919 | CLASS="INFORMALTABLE" |
| 920 | ><P |
| 921 | ></P |
| 922 | ><TABLE |
| 923 | BORDER="0" |
| 924 | WIDTH="100%" |
| 925 | BGCOLOR="#FFD0D0" |
| 926 | CELLSPACING="0" |
| 927 | CELLPADDING="4" |
| 928 | CLASS="CALSTABLE" |
| 929 | ><TR |
| 930 | ><TD |
| 931 | WIDTH="20%" |
| 932 | ALIGN="RIGHT" |
| 933 | VALIGN="TOP" |
| 934 | ><TT |
| 935 | CLASS="PARAMETER" |
| 936 | ><I |
| 937 | >name</I |
| 938 | ></TT |
| 939 | > :</TD |
| 940 | ><TD |
| 941 | WIDTH="80%" |
| 942 | ALIGN="LEFT" |
| 943 | VALIGN="TOP" |
| 944 | > the encoding name as parsed, in UTF-8 format (ASCII actually)</TD |
| 945 | ></TR |
| 946 | ><TR |
| 947 | ><TD |
| 948 | WIDTH="20%" |
| 949 | ALIGN="RIGHT" |
| 950 | VALIGN="TOP" |
| 951 | ><I |
| 952 | CLASS="EMPHASIS" |
| 953 | >Returns</I |
| 954 | > :</TD |
| 955 | ><TD |
| 956 | WIDTH="80%" |
| 957 | ALIGN="LEFT" |
| 958 | VALIGN="TOP" |
| 959 | >one of the XML_CHAR_ENCODING_... values or XML_CHAR_ENCODING_NONE |
| 960 | if not recognized.</TD |
| 961 | ></TR |
| 962 | ></TABLE |
| 963 | ><P |
| 964 | ></P |
| 965 | ></DIV |
| 966 | ></DIV |
| 967 | ><HR><DIV |
| 968 | CLASS="REFSECT2" |
| 969 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 970 | NAME="AEN14550" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 971 | ></A |
| 972 | ><H3 |
| 973 | ><A |
| 974 | NAME="XMLGETCHARENCODINGNAME" |
| 975 | ></A |
| 976 | >xmlGetCharEncodingName ()</H3 |
| 977 | ><TABLE |
| 978 | BORDER="0" |
| 979 | BGCOLOR="#D6E8FF" |
| 980 | WIDTH="100%" |
| 981 | CELLPADDING="6" |
| 982 | ><TR |
| 983 | ><TD |
| 984 | ><PRE |
| 985 | CLASS="PROGRAMLISTING" |
| 986 | >const char* xmlGetCharEncodingName (<A |
| 987 | HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| 988 | >xmlCharEncoding</A |
| 989 | > enc);</PRE |
| 990 | ></TD |
| 991 | ></TR |
| 992 | ></TABLE |
| 993 | ><P |
| 994 | >The "canonical" name for XML encoding. |
| 995 | C.f. http://www.w3.org/TR/REC-xml<GTKDOCLINK |
| 996 | HREF="CHARENCODING" |
| 997 | >charencoding</GTKDOCLINK |
| 998 | > |
| 999 | Section 4.3.3 Character Encoding in Entities</P |
| 1000 | ><P |
| 1001 | ></P |
| 1002 | ><DIV |
| 1003 | CLASS="INFORMALTABLE" |
| 1004 | ><P |
| 1005 | ></P |
| 1006 | ><TABLE |
| 1007 | BORDER="0" |
| 1008 | WIDTH="100%" |
| 1009 | BGCOLOR="#FFD0D0" |
| 1010 | CELLSPACING="0" |
| 1011 | CELLPADDING="4" |
| 1012 | CLASS="CALSTABLE" |
| 1013 | ><TR |
| 1014 | ><TD |
| 1015 | WIDTH="20%" |
| 1016 | ALIGN="RIGHT" |
| 1017 | VALIGN="TOP" |
| 1018 | ><TT |
| 1019 | CLASS="PARAMETER" |
| 1020 | ><I |
| 1021 | >enc</I |
| 1022 | ></TT |
| 1023 | > :</TD |
| 1024 | ><TD |
| 1025 | WIDTH="80%" |
| 1026 | ALIGN="LEFT" |
| 1027 | VALIGN="TOP" |
| 1028 | > the encoding</TD |
| 1029 | ></TR |
| 1030 | ><TR |
| 1031 | ><TD |
| 1032 | WIDTH="20%" |
| 1033 | ALIGN="RIGHT" |
| 1034 | VALIGN="TOP" |
| 1035 | ><I |
| 1036 | CLASS="EMPHASIS" |
| 1037 | >Returns</I |
| 1038 | > :</TD |
| 1039 | ><TD |
| 1040 | WIDTH="80%" |
| 1041 | ALIGN="LEFT" |
| 1042 | VALIGN="TOP" |
| 1043 | >the canonical name for the given encoding</TD |
| 1044 | ></TR |
| 1045 | ></TABLE |
| 1046 | ><P |
| 1047 | ></P |
| 1048 | ></DIV |
| 1049 | ></DIV |
| 1050 | ><HR><DIV |
| 1051 | CLASS="REFSECT2" |
| 1052 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 1053 | NAME="AEN14571" |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 1054 | ></A |
| 1055 | ><H3 |
| 1056 | ><A |
| 1057 | NAME="XMLGETCHARENCODINGHANDLER" |
| 1058 | ></A |
| 1059 | >xmlGetCharEncodingHandler ()</H3 |
| 1060 | ><TABLE |
| 1061 | BORDER="0" |
| 1062 | BGCOLOR="#D6E8FF" |
| 1063 | WIDTH="100%" |
| 1064 | CELLPADDING="6" |
| 1065 | ><TR |
| 1066 | ><TD |
| 1067 | ><PRE |
| 1068 | CLASS="PROGRAMLISTING" |
| 1069 | ><A |
| 1070 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| 1071 | >xmlCharEncodingHandlerPtr</A |
| 1072 | > xmlGetCharEncodingHandler |
| 1073 | (<A |
| 1074 | HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| 1075 | >xmlCharEncoding</A |
| 1076 | > enc);</PRE |
| 1077 | ></TD |
| 1078 | ></TR |
| 1079 | ></TABLE |
| 1080 | ><P |
| 1081 | >Search in the registrered set the handler able to read/write that encoding.</P |
| 1082 | ><P |
| 1083 | ></P |
| 1084 | ><DIV |
| 1085 | CLASS="INFORMALTABLE" |
| 1086 | ><P |
| 1087 | ></P |
| 1088 | ><TABLE |
| 1089 | BORDER="0" |
| 1090 | WIDTH="100%" |
| 1091 | BGCOLOR="#FFD0D0" |
| 1092 | CELLSPACING="0" |
| 1093 | CELLPADDING="4" |
| 1094 | CLASS="CALSTABLE" |
| 1095 | ><TR |
| 1096 | ><TD |
| 1097 | WIDTH="20%" |
| 1098 | ALIGN="RIGHT" |
| 1099 | VALIGN="TOP" |
| 1100 | ><TT |
| 1101 | CLASS="PARAMETER" |
| 1102 | ><I |
| 1103 | >enc</I |
| 1104 | ></TT |
| 1105 | > :</TD |
| 1106 | ><TD |
| 1107 | WIDTH="80%" |
| 1108 | ALIGN="LEFT" |
| 1109 | VALIGN="TOP" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1110 | > a string describing the char encoding.</TD |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 1111 | ></TR |
| 1112 | ><TR |
| 1113 | ><TD |
| 1114 | WIDTH="20%" |
| 1115 | ALIGN="RIGHT" |
| 1116 | VALIGN="TOP" |
| 1117 | ><I |
| 1118 | CLASS="EMPHASIS" |
| 1119 | >Returns</I |
| 1120 | > :</TD |
| 1121 | ><TD |
| 1122 | WIDTH="80%" |
| 1123 | ALIGN="LEFT" |
| 1124 | VALIGN="TOP" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1125 | >the handler or NULL if not found</TD |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 1126 | ></TR |
| 1127 | ></TABLE |
| 1128 | ><P |
| 1129 | ></P |
| 1130 | ></DIV |
| 1131 | ></DIV |
| 1132 | ><HR><DIV |
| 1133 | CLASS="REFSECT2" |
| 1134 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 1135 | NAME="AEN14592" |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 1136 | ></A |
| 1137 | ><H3 |
| 1138 | ><A |
| 1139 | NAME="XMLFINDCHARENCODINGHANDLER" |
| 1140 | ></A |
| 1141 | >xmlFindCharEncodingHandler ()</H3 |
| 1142 | ><TABLE |
| 1143 | BORDER="0" |
| 1144 | BGCOLOR="#D6E8FF" |
| 1145 | WIDTH="100%" |
| 1146 | CELLPADDING="6" |
| 1147 | ><TR |
| 1148 | ><TD |
| 1149 | ><PRE |
| 1150 | CLASS="PROGRAMLISTING" |
| 1151 | ><A |
| 1152 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLERPTR" |
| 1153 | >xmlCharEncodingHandlerPtr</A |
| 1154 | > xmlFindCharEncodingHandler |
| 1155 | (const char *name);</PRE |
| 1156 | ></TD |
| 1157 | ></TR |
| 1158 | ></TABLE |
| 1159 | ><P |
| 1160 | ></P |
| 1161 | ><DIV |
| 1162 | CLASS="INFORMALTABLE" |
| 1163 | ><P |
| 1164 | ></P |
| 1165 | ><TABLE |
| 1166 | BORDER="0" |
| 1167 | WIDTH="100%" |
| 1168 | BGCOLOR="#FFD0D0" |
| 1169 | CELLSPACING="0" |
| 1170 | CELLPADDING="4" |
| 1171 | CLASS="CALSTABLE" |
| 1172 | ><TR |
| 1173 | ><TD |
| 1174 | WIDTH="20%" |
| 1175 | ALIGN="RIGHT" |
| 1176 | VALIGN="TOP" |
| 1177 | ><TT |
| 1178 | CLASS="PARAMETER" |
| 1179 | ><I |
| 1180 | >name</I |
| 1181 | ></TT |
| 1182 | > :</TD |
| 1183 | ><TD |
| 1184 | WIDTH="80%" |
| 1185 | ALIGN="LEFT" |
| 1186 | VALIGN="TOP" |
| 1187 | > </TD |
| 1188 | ></TR |
| 1189 | ><TR |
| 1190 | ><TD |
| 1191 | WIDTH="20%" |
| 1192 | ALIGN="RIGHT" |
| 1193 | VALIGN="TOP" |
| 1194 | ><I |
| 1195 | CLASS="EMPHASIS" |
| 1196 | >Returns</I |
| 1197 | > :</TD |
| 1198 | ><TD |
| 1199 | WIDTH="80%" |
| 1200 | ALIGN="LEFT" |
| 1201 | VALIGN="TOP" |
| 1202 | > </TD |
| 1203 | ></TR |
| 1204 | ></TABLE |
| 1205 | ><P |
| 1206 | ></P |
| 1207 | ></DIV |
| 1208 | ></DIV |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 1209 | ><HR><DIV |
| 1210 | CLASS="REFSECT2" |
| 1211 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 1212 | NAME="AEN14611" |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 1213 | ></A |
| 1214 | ><H3 |
| 1215 | ><A |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1216 | NAME="XMLCHECKUTF8" |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 1217 | ></A |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1218 | >xmlCheckUTF8 ()</H3 |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 1219 | ><TABLE |
| 1220 | BORDER="0" |
| 1221 | BGCOLOR="#D6E8FF" |
| 1222 | WIDTH="100%" |
| 1223 | CELLPADDING="6" |
| 1224 | ><TR |
| 1225 | ><TD |
| 1226 | ><PRE |
| 1227 | CLASS="PROGRAMLISTING" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1228 | >int xmlCheckUTF8 (unsigned char *utf);</PRE |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 1229 | ></TD |
| 1230 | ></TR |
| 1231 | ></TABLE |
| 1232 | ><P |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1233 | >Checks <TT |
| 1234 | CLASS="PARAMETER" |
| 1235 | ><I |
| 1236 | >utf</I |
| 1237 | ></TT |
| 1238 | > for being valid utf-8. <TT |
| 1239 | CLASS="PARAMETER" |
| 1240 | ><I |
| 1241 | >utf</I |
| 1242 | ></TT |
| 1243 | > is assumed to be |
| 1244 | null-terminated. This function is not super-strict, as it will |
| 1245 | allow longer utf-8 sequences than necessary. Note that Java is |
| 1246 | capable of producing these sequences if provoked. Also note, this |
| 1247 | routine checks for the 4-byte maxiumum size, but does not check for |
| 1248 | 0x10ffff maximum value.</P |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 1249 | ><P |
| 1250 | ></P |
| 1251 | ><DIV |
| 1252 | CLASS="INFORMALTABLE" |
| 1253 | ><P |
| 1254 | ></P |
| 1255 | ><TABLE |
| 1256 | BORDER="0" |
| 1257 | WIDTH="100%" |
| 1258 | BGCOLOR="#FFD0D0" |
| 1259 | CELLSPACING="0" |
| 1260 | CELLPADDING="4" |
| 1261 | CLASS="CALSTABLE" |
| 1262 | ><TR |
| 1263 | ><TD |
| 1264 | WIDTH="20%" |
| 1265 | ALIGN="RIGHT" |
| 1266 | VALIGN="TOP" |
| 1267 | ><TT |
| 1268 | CLASS="PARAMETER" |
| 1269 | ><I |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1270 | >utf</I |
| 1271 | ></TT |
| 1272 | > :</TD |
| 1273 | ><TD |
| 1274 | WIDTH="80%" |
| 1275 | ALIGN="LEFT" |
| 1276 | VALIGN="TOP" |
| 1277 | > Pointer to putative utf-8 encoded string.</TD |
| 1278 | ></TR |
| 1279 | ><TR |
| 1280 | ><TD |
| 1281 | WIDTH="20%" |
| 1282 | ALIGN="RIGHT" |
| 1283 | VALIGN="TOP" |
| 1284 | ><I |
| 1285 | CLASS="EMPHASIS" |
| 1286 | >Returns</I |
| 1287 | > :</TD |
| 1288 | ><TD |
| 1289 | WIDTH="80%" |
| 1290 | ALIGN="LEFT" |
| 1291 | VALIGN="TOP" |
| 1292 | > true if <TT |
| 1293 | CLASS="PARAMETER" |
| 1294 | ><I |
| 1295 | >utf</I |
| 1296 | ></TT |
| 1297 | > is valid.</TD |
| 1298 | ></TR |
| 1299 | ></TABLE |
| 1300 | ><P |
| 1301 | ></P |
| 1302 | ></DIV |
| 1303 | ></DIV |
| 1304 | ><HR><DIV |
| 1305 | CLASS="REFSECT2" |
| 1306 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 1307 | NAME="AEN14633" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1308 | ></A |
| 1309 | ><H3 |
| 1310 | ><A |
| 1311 | NAME="XMLCHARENCOUTFUNC" |
| 1312 | ></A |
| 1313 | >xmlCharEncOutFunc ()</H3 |
| 1314 | ><TABLE |
| 1315 | BORDER="0" |
| 1316 | BGCOLOR="#D6E8FF" |
| 1317 | WIDTH="100%" |
| 1318 | CELLPADDING="6" |
| 1319 | ><TR |
| 1320 | ><TD |
| 1321 | ><PRE |
| 1322 | CLASS="PROGRAMLISTING" |
| 1323 | >int xmlCharEncOutFunc (<A |
| 1324 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLER" |
| 1325 | >xmlCharEncodingHandler</A |
| 1326 | > *handler, |
| 1327 | <A |
| 1328 | HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| 1329 | >xmlBufferPtr</A |
| 1330 | > out, |
| 1331 | <A |
| 1332 | HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| 1333 | >xmlBufferPtr</A |
| 1334 | > in);</PRE |
| 1335 | ></TD |
| 1336 | ></TR |
| 1337 | ></TABLE |
| 1338 | ><P |
| 1339 | >Generic front-end for the encoding handler output function |
| 1340 | a first call with <TT |
| 1341 | CLASS="PARAMETER" |
| 1342 | ><I |
| 1343 | >in</I |
| 1344 | ></TT |
| 1345 | > == NULL has to be made firs to initiate the |
| 1346 | output in case of non-stateless encoding needing to initiate their |
| 1347 | state or the output (like the BOM in UTF16). |
| 1348 | In case of UTF8 sequence conversion errors for the given encoder, |
| 1349 | the content will be automatically remapped to a CharRef sequence.</P |
| 1350 | ><P |
| 1351 | ></P |
| 1352 | ><DIV |
| 1353 | CLASS="INFORMALTABLE" |
| 1354 | ><P |
| 1355 | ></P |
| 1356 | ><TABLE |
| 1357 | BORDER="0" |
| 1358 | WIDTH="100%" |
| 1359 | BGCOLOR="#FFD0D0" |
| 1360 | CELLSPACING="0" |
| 1361 | CELLPADDING="4" |
| 1362 | CLASS="CALSTABLE" |
| 1363 | ><TR |
| 1364 | ><TD |
| 1365 | WIDTH="20%" |
| 1366 | ALIGN="RIGHT" |
| 1367 | VALIGN="TOP" |
| 1368 | ><TT |
| 1369 | CLASS="PARAMETER" |
| 1370 | ><I |
| 1371 | >handler</I |
| 1372 | ></TT |
| 1373 | > :</TD |
| 1374 | ><TD |
| 1375 | WIDTH="80%" |
| 1376 | ALIGN="LEFT" |
| 1377 | VALIGN="TOP" |
| 1378 | > char enconding transformation data structure</TD |
| 1379 | ></TR |
| 1380 | ><TR |
| 1381 | ><TD |
| 1382 | WIDTH="20%" |
| 1383 | ALIGN="RIGHT" |
| 1384 | VALIGN="TOP" |
| 1385 | ><TT |
| 1386 | CLASS="PARAMETER" |
| 1387 | ><I |
| 1388 | >out</I |
| 1389 | ></TT |
| 1390 | > :</TD |
| 1391 | ><TD |
| 1392 | WIDTH="80%" |
| 1393 | ALIGN="LEFT" |
| 1394 | VALIGN="TOP" |
| 1395 | > an xmlBuffer for the output.</TD |
| 1396 | ></TR |
| 1397 | ><TR |
| 1398 | ><TD |
| 1399 | WIDTH="20%" |
| 1400 | ALIGN="RIGHT" |
| 1401 | VALIGN="TOP" |
| 1402 | ><TT |
| 1403 | CLASS="PARAMETER" |
| 1404 | ><I |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1405 | >in</I |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 1406 | ></TT |
| 1407 | > :</TD |
| 1408 | ><TD |
| 1409 | WIDTH="80%" |
| 1410 | ALIGN="LEFT" |
| 1411 | VALIGN="TOP" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1412 | > an xmlBuffer for the input</TD |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 1413 | ></TR |
| 1414 | ><TR |
| 1415 | ><TD |
| 1416 | WIDTH="20%" |
| 1417 | ALIGN="RIGHT" |
| 1418 | VALIGN="TOP" |
| 1419 | ><I |
| 1420 | CLASS="EMPHASIS" |
| 1421 | >Returns</I |
| 1422 | > :</TD |
| 1423 | ><TD |
| 1424 | WIDTH="80%" |
| 1425 | ALIGN="LEFT" |
| 1426 | VALIGN="TOP" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1427 | >the number of byte written if success, or |
| 1428 | -1 general error |
| 1429 | -2 if the transcoding fails (for *in is not valid utf8 string or |
| 1430 | the result of transformation can't fit into the encoding we want), or</TD |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 1431 | ></TR |
| 1432 | ></TABLE |
| 1433 | ><P |
| 1434 | ></P |
| 1435 | ></DIV |
| 1436 | ></DIV |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1437 | ><HR><DIV |
| 1438 | CLASS="REFSECT2" |
| 1439 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 1440 | NAME="AEN14664" |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1441 | ></A |
| 1442 | ><H3 |
| 1443 | ><A |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1444 | NAME="XMLCHARENCINFUNC" |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1445 | ></A |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1446 | >xmlCharEncInFunc ()</H3 |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1447 | ><TABLE |
| 1448 | BORDER="0" |
| 1449 | BGCOLOR="#D6E8FF" |
| 1450 | WIDTH="100%" |
| 1451 | CELLPADDING="6" |
| 1452 | ><TR |
| 1453 | ><TD |
| 1454 | ><PRE |
| 1455 | CLASS="PROGRAMLISTING" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1456 | >int xmlCharEncInFunc (<A |
| 1457 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLER" |
| 1458 | >xmlCharEncodingHandler</A |
| 1459 | > *handler, |
| 1460 | <A |
| 1461 | HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| 1462 | >xmlBufferPtr</A |
| 1463 | > out, |
| 1464 | <A |
| 1465 | HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| 1466 | >xmlBufferPtr</A |
| 1467 | > in);</PRE |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1468 | ></TD |
| 1469 | ></TR |
| 1470 | ></TABLE |
| 1471 | ><P |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1472 | >Generic front-end for the encoding handler input function</P |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1473 | ><P |
| 1474 | ></P |
| 1475 | ><DIV |
| 1476 | CLASS="INFORMALTABLE" |
| 1477 | ><P |
| 1478 | ></P |
| 1479 | ><TABLE |
| 1480 | BORDER="0" |
| 1481 | WIDTH="100%" |
| 1482 | BGCOLOR="#FFD0D0" |
| 1483 | CELLSPACING="0" |
| 1484 | CELLPADDING="4" |
| 1485 | CLASS="CALSTABLE" |
| 1486 | ><TR |
| 1487 | ><TD |
| 1488 | WIDTH="20%" |
| 1489 | ALIGN="RIGHT" |
| 1490 | VALIGN="TOP" |
| 1491 | ><TT |
| 1492 | CLASS="PARAMETER" |
| 1493 | ><I |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1494 | >handler</I |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1495 | ></TT |
| 1496 | > :</TD |
| 1497 | ><TD |
| 1498 | WIDTH="80%" |
| 1499 | ALIGN="LEFT" |
| 1500 | VALIGN="TOP" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1501 | > char enconding transformation data structure</TD |
| 1502 | ></TR |
| 1503 | ><TR |
| 1504 | ><TD |
| 1505 | WIDTH="20%" |
| 1506 | ALIGN="RIGHT" |
| 1507 | VALIGN="TOP" |
| 1508 | ><TT |
| 1509 | CLASS="PARAMETER" |
| 1510 | ><I |
| 1511 | >out</I |
| 1512 | ></TT |
| 1513 | > :</TD |
| 1514 | ><TD |
| 1515 | WIDTH="80%" |
| 1516 | ALIGN="LEFT" |
| 1517 | VALIGN="TOP" |
| 1518 | > an xmlBuffer for the output.</TD |
| 1519 | ></TR |
| 1520 | ><TR |
| 1521 | ><TD |
| 1522 | WIDTH="20%" |
| 1523 | ALIGN="RIGHT" |
| 1524 | VALIGN="TOP" |
| 1525 | ><TT |
| 1526 | CLASS="PARAMETER" |
| 1527 | ><I |
| 1528 | >in</I |
| 1529 | ></TT |
| 1530 | > :</TD |
| 1531 | ><TD |
| 1532 | WIDTH="80%" |
| 1533 | ALIGN="LEFT" |
| 1534 | VALIGN="TOP" |
| 1535 | > an xmlBuffer for the input</TD |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1536 | ></TR |
| 1537 | ><TR |
| 1538 | ><TD |
| 1539 | WIDTH="20%" |
| 1540 | ALIGN="RIGHT" |
| 1541 | VALIGN="TOP" |
| 1542 | ><I |
| 1543 | CLASS="EMPHASIS" |
| 1544 | >Returns</I |
| 1545 | > :</TD |
| 1546 | ><TD |
| 1547 | WIDTH="80%" |
| 1548 | ALIGN="LEFT" |
| 1549 | VALIGN="TOP" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1550 | >the number of byte written if success, or |
| 1551 | -1 general error |
| 1552 | -2 if the transcoding fails (for *in is not valid utf8 string or |
| 1553 | the result of transformation can't fit into the encoding we want), or</TD |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1554 | ></TR |
| 1555 | ></TABLE |
| 1556 | ><P |
| 1557 | ></P |
| 1558 | ></DIV |
| 1559 | ></DIV |
| 1560 | ><HR><DIV |
| 1561 | CLASS="REFSECT2" |
| 1562 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 1563 | NAME="AEN14694" |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1564 | ></A |
| 1565 | ><H3 |
| 1566 | ><A |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1567 | NAME="XMLCHARENCFIRSTLINE" |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1568 | ></A |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1569 | >xmlCharEncFirstLine ()</H3 |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1570 | ><TABLE |
| 1571 | BORDER="0" |
| 1572 | BGCOLOR="#D6E8FF" |
| 1573 | WIDTH="100%" |
| 1574 | CELLPADDING="6" |
| 1575 | ><TR |
| 1576 | ><TD |
| 1577 | ><PRE |
| 1578 | CLASS="PROGRAMLISTING" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1579 | >int xmlCharEncFirstLine (<A |
| 1580 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLER" |
| 1581 | >xmlCharEncodingHandler</A |
| 1582 | > *handler, |
| 1583 | <A |
| 1584 | HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| 1585 | >xmlBufferPtr</A |
| 1586 | > out, |
| 1587 | <A |
| 1588 | HREF="gnome-xml-tree.html#XMLBUFFERPTR" |
| 1589 | >xmlBufferPtr</A |
| 1590 | > in);</PRE |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1591 | ></TD |
| 1592 | ></TR |
| 1593 | ></TABLE |
| 1594 | ><P |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1595 | >Front-end for the encoding handler input function, but handle only |
| 1596 | the very first line, i.e. limit itself to 45 chars.</P |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1597 | ><P |
| 1598 | ></P |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1599 | ><DIV |
| 1600 | CLASS="INFORMALTABLE" |
| 1601 | ><P |
| 1602 | ></P |
| 1603 | ><TABLE |
| 1604 | BORDER="0" |
| 1605 | WIDTH="100%" |
| 1606 | BGCOLOR="#FFD0D0" |
| 1607 | CELLSPACING="0" |
| 1608 | CELLPADDING="4" |
| 1609 | CLASS="CALSTABLE" |
| 1610 | ><TR |
| 1611 | ><TD |
| 1612 | WIDTH="20%" |
| 1613 | ALIGN="RIGHT" |
| 1614 | VALIGN="TOP" |
| 1615 | ><TT |
| 1616 | CLASS="PARAMETER" |
| 1617 | ><I |
| 1618 | >handler</I |
| 1619 | ></TT |
| 1620 | > :</TD |
| 1621 | ><TD |
| 1622 | WIDTH="80%" |
| 1623 | ALIGN="LEFT" |
| 1624 | VALIGN="TOP" |
| 1625 | > char enconding transformation data structure</TD |
| 1626 | ></TR |
| 1627 | ><TR |
| 1628 | ><TD |
| 1629 | WIDTH="20%" |
| 1630 | ALIGN="RIGHT" |
| 1631 | VALIGN="TOP" |
| 1632 | ><TT |
| 1633 | CLASS="PARAMETER" |
| 1634 | ><I |
| 1635 | >out</I |
| 1636 | ></TT |
| 1637 | > :</TD |
| 1638 | ><TD |
| 1639 | WIDTH="80%" |
| 1640 | ALIGN="LEFT" |
| 1641 | VALIGN="TOP" |
| 1642 | > an xmlBuffer for the output.</TD |
| 1643 | ></TR |
| 1644 | ><TR |
| 1645 | ><TD |
| 1646 | WIDTH="20%" |
| 1647 | ALIGN="RIGHT" |
| 1648 | VALIGN="TOP" |
| 1649 | ><TT |
| 1650 | CLASS="PARAMETER" |
| 1651 | ><I |
| 1652 | >in</I |
| 1653 | ></TT |
| 1654 | > :</TD |
| 1655 | ><TD |
| 1656 | WIDTH="80%" |
| 1657 | ALIGN="LEFT" |
| 1658 | VALIGN="TOP" |
| 1659 | > an xmlBuffer for the input</TD |
| 1660 | ></TR |
| 1661 | ><TR |
| 1662 | ><TD |
| 1663 | WIDTH="20%" |
| 1664 | ALIGN="RIGHT" |
| 1665 | VALIGN="TOP" |
| 1666 | ><I |
| 1667 | CLASS="EMPHASIS" |
| 1668 | >Returns</I |
| 1669 | > :</TD |
| 1670 | ><TD |
| 1671 | WIDTH="80%" |
| 1672 | ALIGN="LEFT" |
| 1673 | VALIGN="TOP" |
| 1674 | >the number of byte written if success, or |
| 1675 | -1 general error |
| 1676 | -2 if the transcoding fails (for *in is not valid utf8 string or |
| 1677 | the result of transformation can't fit into the encoding we want), or</TD |
| 1678 | ></TR |
| 1679 | ></TABLE |
| 1680 | ><P |
| 1681 | ></P |
| 1682 | ></DIV |
| 1683 | ></DIV |
| 1684 | ><HR><DIV |
| 1685 | CLASS="REFSECT2" |
| 1686 | ><A |
Daniel Veillard | 7c29ce2 | 2000-08-12 21:20:53 +0000 | [diff] [blame^] | 1687 | NAME="AEN14724" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1688 | ></A |
| 1689 | ><H3 |
| 1690 | ><A |
| 1691 | NAME="XMLCHARENCCLOSEFUNC" |
| 1692 | ></A |
| 1693 | >xmlCharEncCloseFunc ()</H3 |
| 1694 | ><TABLE |
| 1695 | BORDER="0" |
| 1696 | BGCOLOR="#D6E8FF" |
| 1697 | WIDTH="100%" |
| 1698 | CELLPADDING="6" |
| 1699 | ><TR |
| 1700 | ><TD |
| 1701 | ><PRE |
| 1702 | CLASS="PROGRAMLISTING" |
| 1703 | >int xmlCharEncCloseFunc (<A |
| 1704 | HREF="gnome-xml-encoding.html#XMLCHARENCODINGHANDLER" |
| 1705 | >xmlCharEncodingHandler</A |
| 1706 | > *handler);</PRE |
| 1707 | ></TD |
| 1708 | ></TR |
| 1709 | ></TABLE |
| 1710 | ><P |
| 1711 | >Generic front-end for hencoding handler close function</P |
| 1712 | ><P |
| 1713 | ></P |
| 1714 | ><DIV |
| 1715 | CLASS="INFORMALTABLE" |
| 1716 | ><P |
| 1717 | ></P |
| 1718 | ><TABLE |
| 1719 | BORDER="0" |
| 1720 | WIDTH="100%" |
| 1721 | BGCOLOR="#FFD0D0" |
| 1722 | CELLSPACING="0" |
| 1723 | CELLPADDING="4" |
| 1724 | CLASS="CALSTABLE" |
| 1725 | ><TR |
| 1726 | ><TD |
| 1727 | WIDTH="20%" |
| 1728 | ALIGN="RIGHT" |
| 1729 | VALIGN="TOP" |
| 1730 | ><TT |
| 1731 | CLASS="PARAMETER" |
| 1732 | ><I |
| 1733 | >handler</I |
| 1734 | ></TT |
| 1735 | > :</TD |
| 1736 | ><TD |
| 1737 | WIDTH="80%" |
| 1738 | ALIGN="LEFT" |
| 1739 | VALIGN="TOP" |
| 1740 | > char enconding transformation data structure</TD |
| 1741 | ></TR |
| 1742 | ><TR |
| 1743 | ><TD |
| 1744 | WIDTH="20%" |
| 1745 | ALIGN="RIGHT" |
| 1746 | VALIGN="TOP" |
| 1747 | ><I |
| 1748 | CLASS="EMPHASIS" |
| 1749 | >Returns</I |
| 1750 | > :</TD |
| 1751 | ><TD |
| 1752 | WIDTH="80%" |
| 1753 | ALIGN="LEFT" |
| 1754 | VALIGN="TOP" |
| 1755 | >0 if success, or -1 in case of error</TD |
| 1756 | ></TR |
| 1757 | ></TABLE |
| 1758 | ><P |
| 1759 | ></P |
| 1760 | ></DIV |
Daniel Veillard | 0604743 | 2000-04-24 11:33:38 +0000 | [diff] [blame] | 1761 | ></DIV |
Daniel Veillard | aeea04f | 2000-01-25 19:27:27 +0000 | [diff] [blame] | 1762 | ></DIV |
| 1763 | ><DIV |
| 1764 | CLASS="NAVFOOTER" |
| 1765 | ><BR |
| 1766 | CLEAR="all"><BR><TABLE |
| 1767 | WIDTH="100%" |
| 1768 | BORDER="0" |
| 1769 | BGCOLOR="#000000" |
| 1770 | CELLPADDING="1" |
| 1771 | CELLSPACING="0" |
| 1772 | ><TR |
| 1773 | ><TD |
| 1774 | WIDTH="25%" |
| 1775 | BGCOLOR="#C00000" |
| 1776 | ALIGN="left" |
| 1777 | ><A |
| 1778 | HREF="gnome-xml-parserinternals.html" |
| 1779 | ><FONT |
| 1780 | COLOR="#FFFFFF" |
| 1781 | SIZE="3" |
| 1782 | ><B |
| 1783 | ><<< Previous Page</B |
| 1784 | ></FONT |
| 1785 | ></A |
| 1786 | ></TD |
| 1787 | ><TD |
| 1788 | WIDTH="25%" |
| 1789 | BGCOLOR="#0000C0" |
| 1790 | ALIGN="center" |
| 1791 | ><FONT |
| 1792 | COLOR="#FFFFFF" |
| 1793 | SIZE="3" |
| 1794 | ><B |
| 1795 | ><A |
| 1796 | HREF="book1.html" |
| 1797 | ><FONT |
| 1798 | COLOR="#FFFFFF" |
| 1799 | SIZE="3" |
| 1800 | ><B |
| 1801 | >Home</B |
| 1802 | ></FONT |
| 1803 | ></A |
| 1804 | ></B |
| 1805 | ></FONT |
| 1806 | ></TD |
| 1807 | ><TD |
| 1808 | WIDTH="25%" |
| 1809 | BGCOLOR="#00C000" |
| 1810 | ALIGN="center" |
| 1811 | ><FONT |
| 1812 | COLOR="#FFFFFF" |
| 1813 | SIZE="3" |
| 1814 | ><B |
| 1815 | ><A |
| 1816 | HREF="libxml-lib.html" |
| 1817 | ><FONT |
| 1818 | COLOR="#FFFFFF" |
| 1819 | SIZE="3" |
| 1820 | ><B |
| 1821 | >Up</B |
| 1822 | ></FONT |
| 1823 | ></A |
| 1824 | ></B |
| 1825 | ></FONT |
| 1826 | ></TD |
| 1827 | ><TD |
| 1828 | WIDTH="25%" |
| 1829 | BGCOLOR="#C00000" |
| 1830 | ALIGN="right" |
| 1831 | ><A |
| 1832 | HREF="gnome-xml-debugxml.html" |
| 1833 | ><FONT |
| 1834 | COLOR="#FFFFFF" |
| 1835 | SIZE="3" |
| 1836 | ><B |
| 1837 | >Next Page >>></B |
| 1838 | ></FONT |
| 1839 | ></A |
| 1840 | ></TD |
| 1841 | ></TR |
| 1842 | ><TR |
| 1843 | ><TD |
| 1844 | COLSPAN="2" |
| 1845 | ALIGN="left" |
| 1846 | ><FONT |
| 1847 | COLOR="#FFFFFF" |
| 1848 | SIZE="3" |
| 1849 | ><B |
| 1850 | >parserInternals</B |
| 1851 | ></FONT |
| 1852 | ></TD |
| 1853 | ><TD |
| 1854 | COLSPAN="2" |
| 1855 | ALIGN="right" |
| 1856 | ><FONT |
| 1857 | COLOR="#FFFFFF" |
| 1858 | SIZE="3" |
| 1859 | ><B |
| 1860 | >debugXML</B |
| 1861 | ></FONT |
| 1862 | ></TD |
| 1863 | ></TR |
| 1864 | ></TABLE |
| 1865 | ></DIV |
| 1866 | ></BODY |
| 1867 | ></HTML |
| 1868 | > |