mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
regenerated API documentation for xmlsoft.org (part of Bug 119535)
* doc/API*.html, doc/html/*: regenerated API documentation for xmlsoft.org (part of Bug 119535)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>encoding</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>encoding</title><meta name="generator" content="DocBook XSL Stylesheets V1.60.1"><meta xmlns="http://www.w3.org/TR/xhtml1/transitional" name="generator" content="GTK-Doc V1.0 (XML mode)"></meta><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
|
||||
.synopsis, .classsynopsis {
|
||||
background: #eeeeee;
|
||||
border: solid 1px #aaaaaa;
|
||||
@@ -28,7 +28,7 @@
|
||||
.navigation .title {
|
||||
font-size: 200%;
|
||||
}
|
||||
</style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="libxml-lib.html" title="Libxml Library Reference"><link rel="previous" href="libxml-parserInternals.html" title="parserInternals"><link rel="next" href="libxml-hash.html" title="hash"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-parserInternals.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="libxml-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th><td><a accesskey="n" href="libxml-hash.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="refentry" lang="en"><a name="libxml-encoding"></a><div class="titlepage"></div><div class="refnamediv"><h2>encoding</h2><p>encoding — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
|
||||
</style><link rel="home" href="index.html" title="[Insert name here] Reference Manual"><link rel="up" href="ch01.html" title="[Insert title here]"><link rel="previous" href="libxml-wsockcompat.html" title="wsockcompat"><link rel="next" href="libxml-xmlregexp.html" title="xmlregexp"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-wsockcompat.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">[Insert name here] Reference Manual</th><td><a accesskey="n" href="libxml-xmlregexp.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="refentry" lang="en"><a name="libxml-encoding"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2><span class="refentrytitle">encoding</span></h2><p>encoding — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
|
||||
|
||||
|
||||
|
||||
@@ -150,15 +150,15 @@ support needed.</p><p>
|
||||
Take a block of chars in the original encoding and try to convert
|
||||
it to an UTF-8 block of chars out.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>out</tt></i><EFBFBD>:</span></td><td> a pointer to an array of bytes to store the UTF-8 result
|
||||
</td></tr><tr><td><span class="term"><i><tt>outlen</tt></i><EFBFBD>:</span></td><td> the length of <i><tt>out</tt></i>
|
||||
</td></tr><tr><td><span class="term"><i><tt>in</tt></i><EFBFBD>:</span></td><td> a pointer to an array of chars in the original encoding
|
||||
</td></tr><tr><td><span class="term"><i><tt>inlen</tt></i><EFBFBD>:</span></td><td> the length of <i><tt>in</tt></i>
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>out</tt></i><EFBFBD>:</span></td><td> a pointer to an array of bytes to store the UTF-8 result
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>outlen</tt></i><EFBFBD>:</span></td><td> the length of <i class="parameter"><tt>out</tt></i>
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>in</tt></i><EFBFBD>:</span></td><td> a pointer to an array of chars in the original encoding
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>inlen</tt></i><EFBFBD>:</span></td><td> the length of <i class="parameter"><tt>in</tt></i>
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of byte written, or -1 by lack of space, or -2
|
||||
if the transcoding failed.
|
||||
The value of <i><tt>inlen</tt></i> after return is the number of octets consumed
|
||||
The value of <i class="parameter"><tt>inlen</tt></i> after return is the number of octets consumed
|
||||
as the return value is positive, else unpredictiable.
|
||||
The value of <i><tt>outlen</tt></i> after return is the number of octets consumed.
|
||||
The value of <i class="parameter"><tt>outlen</tt></i> after return is the number of octets consumed.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlCharEncodingOutputFunc"></a>xmlCharEncodingOutputFunc ()</h3><pre class="programlisting">int (*xmlCharEncodingOutputFunc) (unsigned char *out,
|
||||
int *outlen,
|
||||
unsigned char *in,
|
||||
@@ -168,16 +168,17 @@ encoding.
|
||||
Note: a first call designed to produce heading info is called with
|
||||
in = NULL. If stateful this should also initialize the encoder state.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>out</tt></i><EFBFBD>:</span></td><td> a pointer to an array of bytes to store the result
|
||||
</td></tr><tr><td><span class="term"><i><tt>outlen</tt></i><EFBFBD>:</span></td><td> the length of <i><tt>out</tt></i>
|
||||
</td></tr><tr><td><span class="term"><i><tt>in</tt></i><EFBFBD>:</span></td><td> a pointer to an array of UTF-8 chars
|
||||
</td></tr><tr><td><span class="term"><i><tt>inlen</tt></i><EFBFBD>:</span></td><td> the length of <i><tt>in</tt></i>
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>out</tt></i><EFBFBD>:</span></td><td> a pointer to an array of bytes to store the result
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>outlen</tt></i><EFBFBD>:</span></td><td> the length of <i class="parameter"><tt>out</tt></i>
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>in</tt></i><EFBFBD>:</span></td><td> a pointer to an array of UTF-8 chars
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>inlen</tt></i><EFBFBD>:</span></td><td> the length of <i class="parameter"><tt>in</tt></i>
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of byte written, or -1 by lack of space, or -2
|
||||
if the transcoding failed.
|
||||
The value of <i><tt>inlen</tt></i> after return is the number of octets consumed
|
||||
The value of <i class="parameter"><tt>inlen</tt></i> after return is the number of octets consumed
|
||||
as the return value is positive, else unpredictiable.
|
||||
The value of <i><tt>outlen</tt></i> after return is the number of ocetes consumed.
|
||||
The value of <i class="parameter"><tt>outlen</tt></i> after return is the number of ocetes consumed.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlCharEncodingHandler"></a>struct xmlCharEncodingHandler</h3><pre class="programlisting">struct xmlCharEncodingHandler {
|
||||
|
||||
char *name;
|
||||
xmlCharEncodingInputFunc input;
|
||||
xmlCharEncodingOutputFunc output;
|
||||
@@ -204,18 +205,18 @@ unregisters all the encoding handlers and the aliases.</p><p>
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlRegisterCharEncodingHandler"></a>xmlRegisterCharEncodingHandler ()</h3><pre class="programlisting">void xmlRegisterCharEncodingHandler (<a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> handler);</pre><p>
|
||||
Register the char encoding handler, surprising, isn't it ?</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>handler</tt></i><EFBFBD>:</span></td><td> the xmlCharEncodingHandlerPtr handler block
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handler</tt></i><EFBFBD>:</span></td><td> the xmlCharEncodingHandlerPtr handler block
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlGetCharEncodingHandler"></a>xmlGetCharEncodingHandler ()</h3><pre class="programlisting"><a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> xmlGetCharEncodingHandler
|
||||
(<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);</pre><p>
|
||||
Search in the registered set the handler able to read/write that encoding.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>enc</tt></i><EFBFBD>:</span></td><td> an xmlCharEncoding value.
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>enc</tt></i><EFBFBD>:</span></td><td> an xmlCharEncoding value.
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the handler or NULL if not found
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlFindCharEncodingHandler"></a>xmlFindCharEncodingHandler ()</h3><pre class="programlisting"><a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> xmlFindCharEncodingHandler
|
||||
(const char *name);</pre><p>
|
||||
Search in the registered set the handler able to read/write that encoding.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>name</tt></i><EFBFBD>:</span></td><td> a string describing the char encoding.
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> a string describing the char encoding.
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the handler or NULL if not found
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlNewCharEncodingHandler"></a>xmlNewCharEncodingHandler ()</h3><pre class="programlisting"><a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> xmlNewCharEncodingHandler
|
||||
(const char *name,
|
||||
@@ -223,27 +224,27 @@ Search in the registered set the handler able to read/write that encoding.</p><p
|
||||
<a href="libxml-encoding.html#xmlCharEncodingOutputFunc">xmlCharEncodingOutputFunc</a> output);</pre><p>
|
||||
Create and registers an xmlCharEncodingHandler.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>name</tt></i><EFBFBD>:</span></td><td> the encoding name, in UTF-8 format (ASCII actually)
|
||||
</td></tr><tr><td><span class="term"><i><tt>input</tt></i><EFBFBD>:</span></td><td> the xmlCharEncodingInputFunc to read that encoding
|
||||
</td></tr><tr><td><span class="term"><i><tt>output</tt></i><EFBFBD>:</span></td><td> the xmlCharEncodingOutputFunc to write that encoding
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> the encoding name, in UTF-8 format (ASCII actually)
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>input</tt></i><EFBFBD>:</span></td><td> the xmlCharEncodingInputFunc to read that encoding
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>output</tt></i><EFBFBD>:</span></td><td> the xmlCharEncodingOutputFunc to write that encoding
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the xmlCharEncodingHandlerPtr created (or NULL in case of error).
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlAddEncodingAlias"></a>xmlAddEncodingAlias ()</h3><pre class="programlisting">int xmlAddEncodingAlias (const char *name,
|
||||
const char *alias);</pre><p>
|
||||
Registers and alias <i><tt>alias</tt></i> for an encoding named <i><tt>name</tt></i>. Existing alias
|
||||
Registers and alias <i class="parameter"><tt>alias</tt></i> for an encoding named <i class="parameter"><tt>name</tt></i>. Existing alias
|
||||
will be overwritten.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>name</tt></i><EFBFBD>:</span></td><td> the encoding name as parsed, in UTF-8 format (ASCII actually)
|
||||
</td></tr><tr><td><span class="term"><i><tt>alias</tt></i><EFBFBD>:</span></td><td> the alias name as parsed, in UTF-8 format (ASCII actually)
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> the encoding name as parsed, in UTF-8 format (ASCII actually)
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>alias</tt></i><EFBFBD>:</span></td><td> the alias name as parsed, in UTF-8 format (ASCII actually)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success, -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDelEncodingAlias"></a>xmlDelEncodingAlias ()</h3><pre class="programlisting">int xmlDelEncodingAlias (const char *alias);</pre><p>
|
||||
Unregisters an encoding alias <i><tt>alias</tt></i></p><p>
|
||||
Unregisters an encoding alias <i class="parameter"><tt>alias</tt></i></p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>alias</tt></i><EFBFBD>:</span></td><td> the alias name as parsed, in UTF-8 format (ASCII actually)
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>alias</tt></i><EFBFBD>:</span></td><td> the alias name as parsed, in UTF-8 format (ASCII actually)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success, -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlGetEncodingAlias"></a>xmlGetEncodingAlias ()</h3><pre class="programlisting">const char* xmlGetEncodingAlias (const char *alias);</pre><p>
|
||||
Lookup an encoding name for the given alias.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>alias</tt></i><EFBFBD>:</span></td><td> the alias name as parsed, in UTF-8 format (ASCII actually)
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>alias</tt></i><EFBFBD>:</span></td><td> the alias name as parsed, in UTF-8 format (ASCII actually)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>NULL if not found the original name otherwise
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlCleanupEncodingAliases"></a>xmlCleanupEncodingAliases ()</h3><pre class="programlisting">void xmlCleanupEncodingAliases (void);</pre><p>
|
||||
Unregisters all aliases</p><p>
|
||||
@@ -253,7 +254,7 @@ Compare the string to the known encoding schemes already known. Note
|
||||
that the comparison is case insensitive accordingly to the section
|
||||
[XML] 4.3.3 Character Encoding in Entities.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>name</tt></i><EFBFBD>:</span></td><td> the encoding name as parsed, in UTF-8 format (ASCII actually)
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>name</tt></i><EFBFBD>:</span></td><td> the encoding name as parsed, in UTF-8 format (ASCII actually)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>one of the XML_CHAR_ENCODING_... values or XML_CHAR_ENCODING_NONE
|
||||
if not recognized.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlGetCharEncodingName"></a>xmlGetCharEncodingName ()</h3><pre class="programlisting">const char* xmlGetCharEncodingName (<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);</pre><p>
|
||||
@@ -261,30 +262,30 @@ The "canonical" name for XML encoding.
|
||||
C.f. http://www.w3.org/TR/REC-xml<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="charencoding">charencoding</GTKDOCLINK>
|
||||
Section 4.3.3 Character Encoding in Entities</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>enc</tt></i><EFBFBD>:</span></td><td> the encoding
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>enc</tt></i><EFBFBD>:</span></td><td> the encoding
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the canonical name for the given encoding
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDetectCharEncoding"></a>xmlDetectCharEncoding ()</h3><pre class="programlisting"><a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> xmlDetectCharEncoding (unsigned char *in,
|
||||
int len);</pre><p>
|
||||
Guess the encoding of the entity using the first bytes of the entity content
|
||||
accordingly of the non-normative appendix F of the XML-1.0 recommendation.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>in</tt></i><EFBFBD>:</span></td><td> a pointer to the first bytes of the XML entity, must be at least
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>in</tt></i><EFBFBD>:</span></td><td> a pointer to the first bytes of the XML entity, must be at least
|
||||
4 bytes long.
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i><EFBFBD>:</span></td><td> pointer to the length of the buffer
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>len</tt></i><EFBFBD>:</span></td><td> pointer to the length of the buffer
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>one of the XML_CHAR_ENCODING_... values.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlCharEncOutFunc"></a>xmlCharEncOutFunc ()</h3><pre class="programlisting">int xmlCharEncOutFunc (<a href="libxml-encoding.html#xmlCharEncodingHandler">xmlCharEncodingHandler</a> *handler,
|
||||
<a href="libxml-tree.html#xmlBufferPtr">xmlBufferPtr</a> out,
|
||||
<a href="libxml-tree.html#xmlBufferPtr">xmlBufferPtr</a> in);</pre><p>
|
||||
Generic front-end for the encoding handler output function
|
||||
a first call with <i><tt>in</tt></i> == NULL has to be made firs to initiate the
|
||||
a first call with <i class="parameter"><tt>in</tt></i> == NULL has to be made firs to initiate the
|
||||
output in case of non-stateless encoding needing to initiate their
|
||||
state or the output (like the BOM in UTF16).
|
||||
In case of UTF8 sequence conversion errors for the given encoder,
|
||||
the content will be automatically remapped to a CharRef sequence.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>handler</tt></i><EFBFBD>:</span></td><td> char enconding transformation data structure
|
||||
</td></tr><tr><td><span class="term"><i><tt>out</tt></i><EFBFBD>:</span></td><td> an xmlBuffer for the output.
|
||||
</td></tr><tr><td><span class="term"><i><tt>in</tt></i><EFBFBD>:</span></td><td> an xmlBuffer for the input
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handler</tt></i><EFBFBD>:</span></td><td> char enconding transformation data structure
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>out</tt></i><EFBFBD>:</span></td><td> an xmlBuffer for the output.
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>in</tt></i><EFBFBD>:</span></td><td> an xmlBuffer for the input
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of byte written if success, or
|
||||
-1 general error
|
||||
-2 if the transcoding fails (for *in is not valid utf8 string or
|
||||
@@ -294,9 +295,9 @@ the content will be automatically remapped to a CharRef sequence.</p><p>
|
||||
<a href="libxml-tree.html#xmlBufferPtr">xmlBufferPtr</a> in);</pre><p>
|
||||
Generic front-end for the encoding handler input function</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>handler</tt></i><EFBFBD>:</span></td><td> char encoding transformation data structure
|
||||
</td></tr><tr><td><span class="term"><i><tt>out</tt></i><EFBFBD>:</span></td><td> an xmlBuffer for the output.
|
||||
</td></tr><tr><td><span class="term"><i><tt>in</tt></i><EFBFBD>:</span></td><td> an xmlBuffer for the input
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handler</tt></i><EFBFBD>:</span></td><td> char encoding transformation data structure
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>out</tt></i><EFBFBD>:</span></td><td> an xmlBuffer for the output.
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>in</tt></i><EFBFBD>:</span></td><td> an xmlBuffer for the input
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of byte written if success, or
|
||||
-1 general error
|
||||
-2 if the transcoding fails (for *in is not valid utf8 string or
|
||||
@@ -307,9 +308,9 @@ Generic front-end for the encoding handler input function</p><p>
|
||||
Front-end for the encoding handler input function, but handle only
|
||||
the very first line, i.e. limit itself to 45 chars.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>handler</tt></i><EFBFBD>:</span></td><td> char enconding transformation data structure
|
||||
</td></tr><tr><td><span class="term"><i><tt>out</tt></i><EFBFBD>:</span></td><td> an xmlBuffer for the output.
|
||||
</td></tr><tr><td><span class="term"><i><tt>in</tt></i><EFBFBD>:</span></td><td> an xmlBuffer for the input
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handler</tt></i><EFBFBD>:</span></td><td> char enconding transformation data structure
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>out</tt></i><EFBFBD>:</span></td><td> an xmlBuffer for the output.
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>in</tt></i><EFBFBD>:</span></td><td> an xmlBuffer for the input
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of byte written if success, or
|
||||
-1 general error
|
||||
-2 if the transcoding fails (for *in is not valid utf8 string or
|
||||
@@ -317,7 +318,7 @@ the very first line, i.e. limit itself to 45 chars.</p><p>
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlCharEncCloseFunc"></a>xmlCharEncCloseFunc ()</h3><pre class="programlisting">int xmlCharEncCloseFunc (<a href="libxml-encoding.html#xmlCharEncodingHandler">xmlCharEncodingHandler</a> *handler);</pre><p>
|
||||
Generic front-end for encoding handler close function</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>handler</tt></i><EFBFBD>:</span></td><td> char enconding transformation data structure
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handler</tt></i><EFBFBD>:</span></td><td> char enconding transformation data structure
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 if success, or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="UTF8Toisolat1"></a>UTF8Toisolat1 ()</h3><pre class="programlisting">int UTF8Toisolat1 (unsigned char *out,
|
||||
int *outlen,
|
||||
@@ -326,14 +327,14 @@ Generic front-end for encoding handler close function</p><p>
|
||||
Take a block of UTF-8 chars in and try to convert it to an ISO Latin 1
|
||||
block of chars out.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>out</tt></i><EFBFBD>:</span></td><td> a pointer to an array of bytes to store the result
|
||||
</td></tr><tr><td><span class="term"><i><tt>outlen</tt></i><EFBFBD>:</span></td><td> the length of <i><tt>out</tt></i>
|
||||
</td></tr><tr><td><span class="term"><i><tt>in</tt></i><EFBFBD>:</span></td><td> a pointer to an array of UTF-8 chars
|
||||
</td></tr><tr><td><span class="term"><i><tt>inlen</tt></i><EFBFBD>:</span></td><td> the length of <i><tt>in</tt></i>
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>out</tt></i><EFBFBD>:</span></td><td> a pointer to an array of bytes to store the result
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>outlen</tt></i><EFBFBD>:</span></td><td> the length of <i class="parameter"><tt>out</tt></i>
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>in</tt></i><EFBFBD>:</span></td><td> a pointer to an array of UTF-8 chars
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>inlen</tt></i><EFBFBD>:</span></td><td> the length of <i class="parameter"><tt>in</tt></i>
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 if success, -2 if the transcoding fails, or -1 otherwise
|
||||
The value of <i><tt>inlen</tt></i> after return is the number of octets consumed
|
||||
The value of <i class="parameter"><tt>inlen</tt></i> after return is the number of octets consumed
|
||||
as the return value is positive, else unpredictable.
|
||||
The value of <i><tt>outlen</tt></i> after return is the number of ocetes consumed.
|
||||
The value of <i class="parameter"><tt>outlen</tt></i> after return is the number of ocetes consumed.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="isolat1ToUTF8"></a>isolat1ToUTF8 ()</h3><pre class="programlisting">int isolat1ToUTF8 (unsigned char *out,
|
||||
int *outlen,
|
||||
unsigned char *in,
|
||||
@@ -341,38 +342,38 @@ The value of <i><tt>outlen</tt></i> after return is the number of ocetes consume
|
||||
Take a block of ISO Latin 1 chars in and try to convert it to an UTF-8
|
||||
block of chars out.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>out</tt></i><EFBFBD>:</span></td><td> a pointer to an array of bytes to store the result
|
||||
</td></tr><tr><td><span class="term"><i><tt>outlen</tt></i><EFBFBD>:</span></td><td> the length of <i><tt>out</tt></i>
|
||||
</td></tr><tr><td><span class="term"><i><tt>in</tt></i><EFBFBD>:</span></td><td> a pointer to an array of ISO Latin 1 chars
|
||||
</td></tr><tr><td><span class="term"><i><tt>inlen</tt></i><EFBFBD>:</span></td><td> the length of <i><tt>in</tt></i>
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>out</tt></i><EFBFBD>:</span></td><td> a pointer to an array of bytes to store the result
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>outlen</tt></i><EFBFBD>:</span></td><td> the length of <i class="parameter"><tt>out</tt></i>
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>in</tt></i><EFBFBD>:</span></td><td> a pointer to an array of ISO Latin 1 chars
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>inlen</tt></i><EFBFBD>:</span></td><td> the length of <i class="parameter"><tt>in</tt></i>
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 if success, or -1 otherwise
|
||||
The value of <i><tt>inlen</tt></i> after return is the number of octets consumed
|
||||
The value of <i class="parameter"><tt>inlen</tt></i> after return is the number of octets consumed
|
||||
as the return value is positive, else unpredictable.
|
||||
The value of <i><tt>outlen</tt></i> after return is the number of ocetes consumed.
|
||||
The value of <i class="parameter"><tt>outlen</tt></i> after return is the number of ocetes consumed.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlGetUTF8Char"></a>xmlGetUTF8Char ()</h3><pre class="programlisting">int xmlGetUTF8Char (unsigned char *utf,
|
||||
int *len);</pre><p>
|
||||
Read one UTF8 Char from <i><tt>utf</tt></i></p><p>
|
||||
Read one UTF8 Char from <i class="parameter"><tt>utf</tt></i></p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>utf</tt></i><EFBFBD>:</span></td><td> a sequence of UTF-8 encoded bytes
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i><EFBFBD>:</span></td><td> a pointer to <i><tt>bytes</tt></i> len
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the char value or -1 in case of error and update <i><tt>len</tt></i> with the
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>utf</tt></i><EFBFBD>:</span></td><td> a sequence of UTF-8 encoded bytes
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>len</tt></i><EFBFBD>:</span></td><td> a pointer to <i class="parameter"><tt>bytes</tt></i> len
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the char value or -1 in case of error and update <i class="parameter"><tt>len</tt></i> with the
|
||||
number of bytes used
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlCheckUTF8"></a>xmlCheckUTF8 ()</h3><pre class="programlisting">int xmlCheckUTF8 (unsigned char *utf);</pre><p>
|
||||
Checks <i><tt>utf</tt></i> for being valid utf-8. <i><tt>utf</tt></i> is assumed to be
|
||||
Checks <i class="parameter"><tt>utf</tt></i> for being valid utf-8. <i class="parameter"><tt>utf</tt></i> is assumed to be
|
||||
null-terminated. This function is not super-strict, as it will
|
||||
allow longer utf-8 sequences than necessary. Note that Java is
|
||||
capable of producing these sequences if provoked. Also note, this
|
||||
routine checks for the 4-byte maximum size, but does not check for
|
||||
0x10ffff maximum value.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>utf</tt></i><EFBFBD>:</span></td><td> Pointer to putative utf-8 encoded string.
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> true if <i><tt>utf</tt></i> is valid.
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>utf</tt></i><EFBFBD>:</span></td><td> Pointer to putative utf-8 encoded string.
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> true if <i class="parameter"><tt>utf</tt></i> is valid.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlUTF8Strsize"></a>xmlUTF8Strsize ()</h3><pre class="programlisting">int xmlUTF8Strsize (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *utf,
|
||||
int len);</pre><p>
|
||||
storage size of an UTF8 string</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>utf</tt></i><EFBFBD>:</span></td><td> a sequence of UTF-8 encoded bytes
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i><EFBFBD>:</span></td><td> the number of characters in the array
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>utf</tt></i><EFBFBD>:</span></td><td> a sequence of UTF-8 encoded bytes
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>len</tt></i><EFBFBD>:</span></td><td> the number of characters in the array
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the storage size of
|
||||
the first 'len' characters of ARRAY
|
||||
|
||||
@@ -380,23 +381,23 @@ the first 'len' characters of ARRAY
|
||||
int len);</pre><p>
|
||||
a strndup for array of UTF8's</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>utf</tt></i><EFBFBD>:</span></td><td> the input UTF8 *
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i><EFBFBD>:</span></td><td> the len of <i><tt>utf</tt></i> (in chars)
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>utf</tt></i><EFBFBD>:</span></td><td> the input UTF8 *
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>len</tt></i><EFBFBD>:</span></td><td> the len of <i class="parameter"><tt>utf</tt></i> (in chars)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a new UTF8 * or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlUTF8Strpos"></a>xmlUTF8Strpos ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlChar">xmlChar</a>* xmlUTF8Strpos (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *utf,
|
||||
int pos);</pre><p>
|
||||
a function to provide the equivalent of fetching a
|
||||
character from a string array</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>utf</tt></i><EFBFBD>:</span></td><td> the input UTF8 *
|
||||
</td></tr><tr><td><span class="term"><i><tt>pos</tt></i><EFBFBD>:</span></td><td> the position of the desired UTF8 char (in chars)
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>utf</tt></i><EFBFBD>:</span></td><td> the input UTF8 *
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>pos</tt></i><EFBFBD>:</span></td><td> the position of the desired UTF8 char (in chars)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a pointer to the UTF8 character or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlUTF8Strloc"></a>xmlUTF8Strloc ()</h3><pre class="programlisting">int xmlUTF8Strloc (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *utf,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *utfchar);</pre><p>
|
||||
a function to provide relative location of a UTF8 char</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>utf</tt></i><EFBFBD>:</span></td><td> the input UTF8 *
|
||||
</td></tr><tr><td><span class="term"><i><tt>utfchar</tt></i><EFBFBD>:</span></td><td> the UTF8 character to be found
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>utf</tt></i><EFBFBD>:</span></td><td> the input UTF8 *
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>utfchar</tt></i><EFBFBD>:</span></td><td> the UTF8 character to be found
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the relative character position of the desired char
|
||||
or -1 if not found
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlUTF8Strsub"></a>xmlUTF8Strsub ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlChar">xmlChar</a>* xmlUTF8Strsub (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *utf,
|
||||
@@ -404,28 +405,27 @@ or -1 if not found
|
||||
int len);</pre><p>
|
||||
Note: positions are given in units of UTF-8 chars</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>utf</tt></i><EFBFBD>:</span></td><td> a sequence of UTF-8 encoded bytes
|
||||
</td></tr><tr><td><span class="term"><i><tt>start</tt></i><EFBFBD>:</span></td><td> relative pos of first char
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i><EFBFBD>:</span></td><td> total number to copy
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>utf</tt></i><EFBFBD>:</span></td><td> a sequence of UTF-8 encoded bytes
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>start</tt></i><EFBFBD>:</span></td><td> relative pos of first char
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>len</tt></i><EFBFBD>:</span></td><td> total number to copy
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a pointer to a newly created string
|
||||
or NULL if any problem
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlUTF8Strlen"></a>xmlUTF8Strlen ()</h3><pre class="programlisting">int xmlUTF8Strlen (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *utf);</pre><p>
|
||||
compute the length of an UTF8 string, it doesn't do a full UTF8
|
||||
checking of the content of the string.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>utf</tt></i><EFBFBD>:</span></td><td> a sequence of UTF-8 encoded bytes
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>utf</tt></i><EFBFBD>:</span></td><td> a sequence of UTF-8 encoded bytes
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of characters in the string or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlUTF8Size"></a>xmlUTF8Size ()</h3><pre class="programlisting">int xmlUTF8Size (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *utf);</pre><p>
|
||||
</p><p>
|
||||
calulates the internal size of a UTF8 character</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>utf</tt></i><EFBFBD>:</span></td><td> pointer to the UTF8 character
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>utf</tt></i><EFBFBD>:</span></td><td> pointer to the UTF8 character
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the numbers of bytes in the character, -1 on format error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlUTF8Charcmp"></a>xmlUTF8Charcmp ()</h3><pre class="programlisting">int xmlUTF8Charcmp (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *utf1,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *utf2);</pre><p>
|
||||
</p><p>
|
||||
compares the two UCS4 values</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>utf1</tt></i><EFBFBD>:</span></td><td> pointer to first UTF8 char
|
||||
</td></tr><tr><td><span class="term"><i><tt>utf2</tt></i><EFBFBD>:</span></td><td> pointer to second UTF8 char
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>result of comparing the two UCS4 values
|
||||
as with xmlStrncmp
|
||||
</td></tr></tbody></table></div></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-parserInternals.html"><b><<<EFBFBD>parserInternals</b></a></td><td align="right"><a accesskey="n" href="libxml-hash.html"><b>hash<EFBFBD>>></b></a></td></tr></table></body></html>
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>utf1</tt></i><EFBFBD>:</span></td><td> pointer to first UTF8 char
|
||||
</td></tr><tr><td><span class="term"><i class="parameter"><tt>utf2</tt></i><EFBFBD>:</span></td><td> pointer to second UTF8 char
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>result of the compare as with xmlStrncmp
|
||||
</td></tr></tbody></table></div></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-wsockcompat.html"><b><<<EFBFBD>wsockcompat</b></a></td><td align="right"><a accesskey="n" href="libxml-xmlregexp.html"><b>xmlregexp<EFBFBD>>></b></a></td></tr></table></body></html>
|
||||
|
||||
Reference in New Issue
Block a user