1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-28 00:21:53 +03:00

get rid of the readline and libhistory dependancies by default, release

* configure.in: get rid of the readline and libhistory
  dependancies by default, release 2.4.1 with IA64 fix
* nanohttp.c tree.c xmlIO.c include/libxml/nanohttp.h
  include/libxml/tree.h include/libxml/xmlIO.h: incorporated
  John Kroll fixes to allow saving to HTTP via PUT (or
  POST of needed).
* doc/html/*.html: regenerated the docs
Daniel
This commit is contained in:
Daniel Veillard
2001-07-23 19:10:52 +00:00
parent e812624729
commit f012a64d13
31 changed files with 8197 additions and 3936 deletions

View File

@ -122,7 +122,7 @@ NAME="LIBXML-ENCODING"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN20826"
NAME="AEN21633"
></A
><H2
>Name</H2
@ -130,7 +130,7 @@ NAME="AEN20826"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN20829"
NAME="AEN21636"
></A
><H2
>Synopsis</H2
@ -381,7 +381,7 @@ HREF="libxml-tree.html#XMLCHAR"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN20889"
NAME="AEN21696"
></A
><H2
>Description</H2
@ -391,14 +391,14 @@ NAME="AEN20889"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN20892"
NAME="AEN21699"
></A
><H2
>Details</H2
><DIV
CLASS="REFSECT2"
><A
NAME="AEN20894"
NAME="AEN21701"
></A
><H3
><A
@ -444,27 +444,12 @@ CLASS="PROGRAMLISTING"
></TR
></TABLE
><P
>Predefined values for some standard encodings
Libxml don't do beforehand translation on UTF8, ISOLatinX
It also support UTF16 (LE and BE) by default.</P
><P
>Anything else would have to be translated to UTF8 before being
given to the parser itself. The BOM for UTF16 and the encoding
declaration are looked at and a converter is looked for at that
point. If not found the parser stops here as asked by the XML REC
Converter can be registered by the user using xmlRegisterCharEncodingHandler
but the currentl form doesn't allow stateful transcoding (a serious
problem agreed !). If iconv has been found it will be used
automatically and allow stateful transcoding, the simplest is then
to be sure to enable icon and to provide iconv libs for the encoding
support needed.</P
><P
></P
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20901"
NAME="AEN21706"
></A
><H3
><A
@ -488,14 +473,11 @@ CLASS="PROGRAMLISTING"
></TR
></TABLE
><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="INFORMALTABLE"
><A
NAME="AEN20907"
NAME="AEN21711"
></A
><P
></P
@ -522,7 +504,7 @@ CLASS="PARAMETER"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> a pointer ot an array of bytes to store the UTF-8 result</TD
>&nbsp;</TD
></TR
><TR
><TD
@ -539,12 +521,7 @@ CLASS="PARAMETER"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> the lenght of <TT
CLASS="PARAMETER"
><I
>out</I
></TT
></TD
>&nbsp;</TD
></TR
><TR
><TD
@ -561,7 +538,7 @@ CLASS="PARAMETER"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> a pointer ot an array of chars in the original encoding</TD
>&nbsp;</TD
></TR
><TR
><TD
@ -578,12 +555,7 @@ CLASS="PARAMETER"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> the lenght of <TT
CLASS="PARAMETER"
><I
>in</I
></TT
></TD
>&nbsp;</TD
></TR
><TR
><TD
@ -598,21 +570,7 @@ CLASS="EMPHASIS"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>the number of byte written, or -1 by lack of space, or -2
if the transcoding failed.
The value of <TT
CLASS="PARAMETER"
><I
>inlen</I
></TT
> after return is the number of octets consumed
as the return value is positive, else unpredictiable.
The value of <TT
CLASS="PARAMETER"
><I
>outlen</I
></TT
> after return is the number of ocetes consumed.</TD
>&nbsp;</TD
></TR
></TBODY
></TABLE
@ -623,7 +581,7 @@ CLASS="PARAMETER"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20936"
NAME="AEN21736"
></A
><H3
><A
@ -647,16 +605,11 @@ CLASS="PROGRAMLISTING"
></TR
></TABLE
><P
>Take a block of UTF-8 chars in and try to convert it to an other
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="INFORMALTABLE"
><A
NAME="AEN20942"
NAME="AEN21741"
></A
><P
></P
@ -683,7 +636,7 @@ CLASS="PARAMETER"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> a pointer ot an array of bytes to store the result</TD
>&nbsp;</TD
></TR
><TR
><TD
@ -700,12 +653,7 @@ CLASS="PARAMETER"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> the lenght of <TT
CLASS="PARAMETER"
><I
>out</I
></TT
></TD
>&nbsp;</TD
></TR
><TR
><TD
@ -722,7 +670,7 @@ CLASS="PARAMETER"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> a pointer ot an array of UTF-8 chars</TD
>&nbsp;</TD
></TR
><TR
><TD
@ -739,12 +687,7 @@ CLASS="PARAMETER"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> the lenght of <TT
CLASS="PARAMETER"
><I
>in</I
></TT
></TD
>&nbsp;</TD
></TR
><TR
><TD
@ -759,21 +702,7 @@ CLASS="EMPHASIS"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>the number of byte written, or -1 by lack of space, or -2
if the transcoding failed.
The value of <TT
CLASS="PARAMETER"
><I
>inlen</I
></TT
> after return is the number of octets consumed
as the return value is positive, else unpredictiable.
The value of <TT
CLASS="PARAMETER"
><I
>outlen</I
></TT
> after return is the number of ocetes consumed.</TD
>&nbsp;</TD
></TR
></TBODY
></TABLE
@ -784,7 +713,7 @@ CLASS="PARAMETER"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20971"
NAME="AEN21766"
></A
><H3
><A
@ -818,7 +747,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20976"
NAME="AEN21771"
></A
><H3
><A
@ -844,7 +773,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20981"
NAME="AEN21776"
></A
><H3
><A
@ -875,7 +804,7 @@ in normal processing.</P
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20987"
NAME="AEN21782"
></A
><H3
><A
@ -904,7 +833,7 @@ unregisters all the encoding handlers and the aliases.</P
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN20993"
NAME="AEN21788"
></A
><H3
><A
@ -934,7 +863,7 @@ HREF="libxml-encoding.html#XMLCHARENCODINGHANDLERPTR"
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21000"
NAME="AEN21795"
></A
><P
></P
@ -972,7 +901,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21009"
NAME="AEN21804"
></A
><H3
><A
@ -1006,7 +935,7 @@ HREF="libxml-encoding.html#XMLCHARENCODING"
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21017"
NAME="AEN21812"
></A
><P
></P
@ -1033,6 +962,90 @@ CLASS="PARAMETER"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> an xmlCharEncoding value.</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><I
CLASS="EMPHASIS"
>Returns</I
> :</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>the handler or NULL if not found</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21825"
></A
><H3
><A
NAME="XMLFINDCHARENCODINGHANDLER"
></A
>xmlFindCharEncodingHandler ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
><A
HREF="libxml-encoding.html#XMLCHARENCODINGHANDLERPTR"
>xmlCharEncodingHandlerPtr</A
> xmlFindCharEncodingHandler
(const char *name);</PRE
></TD
></TR
></TABLE
><P
>Search in the registrered set the handler able to read/write that encoding.</P
><P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21832"
></A
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>name</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> a string describing the char encoding.</TD
></TR
><TR
@ -1059,89 +1072,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21030"
></A
><H3
><A
NAME="XMLFINDCHARENCODINGHANDLER"
></A
>xmlFindCharEncodingHandler ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
><A
HREF="libxml-encoding.html#XMLCHARENCODINGHANDLERPTR"
>xmlCharEncodingHandlerPtr</A
> xmlFindCharEncodingHandler
(const char *name);</PRE
></TD
></TR
></TABLE
><P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21036"
></A
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>name</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><I
CLASS="EMPHASIS"
>Returns</I
> :</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21049"
NAME="AEN21845"
></A
><H3
><A
@ -1180,7 +1111,7 @@ will be overwritten.</P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21057"
NAME="AEN21853"
></A
><P
></P
@ -1250,7 +1181,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21074"
NAME="AEN21870"
></A
><H3
><A
@ -1282,7 +1213,7 @@ CLASS="PARAMETER"
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21081"
NAME="AEN21877"
></A
><P
></P
@ -1335,7 +1266,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21094"
NAME="AEN21890"
></A
><H3
><A
@ -1362,7 +1293,7 @@ CLASS="PROGRAMLISTING"
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21100"
NAME="AEN21896"
></A
><P
></P
@ -1415,7 +1346,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21113"
NAME="AEN21909"
></A
><H3
><A
@ -1443,7 +1374,7 @@ CLASS="PROGRAMLISTING"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21119"
NAME="AEN21915"
></A
><H3
><A
@ -1475,7 +1406,7 @@ that the comparison is case insensitive accordingly to the section
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21126"
NAME="AEN21922"
></A
><P
></P
@ -1529,7 +1460,7 @@ if not recognized.</TD
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21139"
NAME="AEN21935"
></A
><H3
><A
@ -1564,7 +1495,7 @@ Section 4.3.3 Character Encoding in Entities</P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21147"
NAME="AEN21943"
></A
><P
></P
@ -1617,7 +1548,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21160"
NAME="AEN21956"
></A
><H3
><A
@ -1649,7 +1580,7 @@ accordingly of the non-normative appendix F of the XML-1.0 recommendation.</P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21167"
NAME="AEN21963"
></A
><P
></P
@ -1720,7 +1651,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21184"
NAME="AEN21980"
></A
><H3
><A
@ -1768,7 +1699,7 @@ the content will be automatically remapped to a CharRef sequence.</P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21194"
NAME="AEN21990"
></A
><P
></P
@ -1858,7 +1789,7 @@ the result of transformation can't fit into the encoding we want), or</TD
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21215"
NAME="AEN22011"
></A
><H3
><A
@ -1896,7 +1827,7 @@ HREF="libxml-tree.html#XMLBUFFERPTR"
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21224"
NAME="AEN22020"
></A
><P
></P
@ -1986,7 +1917,7 @@ the result of transformation can't fit into the encoding we want), or</TD
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21245"
NAME="AEN22041"
></A
><H3
><A
@ -2025,7 +1956,7 @@ the very first line, i.e. limit itself to 45 chars.</P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21254"
NAME="AEN22050"
></A
><P
></P
@ -2115,7 +2046,7 @@ the result of transformation can't fit into the encoding we want), or</TD
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21275"
NAME="AEN22071"
></A
><H3
><A
@ -2145,7 +2076,7 @@ HREF="libxml-encoding.html#XMLCHARENCODINGHANDLER"
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21282"
NAME="AEN22078"
></A
><P
></P
@ -2198,7 +2129,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21295"
NAME="AEN22091"
></A
><H3
><A
@ -2229,7 +2160,7 @@ block of chars out.</P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21301"
NAME="AEN22097"
></A
><P
></P
@ -2356,7 +2287,7 @@ CLASS="PARAMETER"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21330"
NAME="AEN22126"
></A
><H3
><A
@ -2387,7 +2318,7 @@ block of chars out.</P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21336"
NAME="AEN22132"
></A
><P
></P
@ -2514,7 +2445,7 @@ CLASS="PARAMETER"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21365"
NAME="AEN22161"
></A
><H3
><A
@ -2556,7 +2487,7 @@ routine checks for the 4-byte maxiumum size, but does not check for
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21373"
NAME="AEN22169"
></A
><P
></P
@ -2614,7 +2545,7 @@ CLASS="PARAMETER"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21387"
NAME="AEN22183"
></A
><H3
><A
@ -2645,7 +2576,7 @@ HREF="libxml-tree.html#XMLCHAR"
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21394"
NAME="AEN22190"
></A
><P
></P
@ -2716,7 +2647,7 @@ the first 'len' characters of ARRAY&#13;</TD
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21411"
NAME="AEN22207"
></A
><H3
><A
@ -2750,7 +2681,7 @@ HREF="libxml-tree.html#XMLCHAR"
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21419"
NAME="AEN22215"
></A
><P
></P
@ -2825,7 +2756,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21437"
NAME="AEN22233"
></A
><H3
><A
@ -2860,7 +2791,7 @@ character from a string array</P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21445"
NAME="AEN22241"
></A
><P
></P
@ -2930,7 +2861,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21462"
NAME="AEN22258"
></A
><H3
><A
@ -2964,7 +2895,7 @@ HREF="libxml-tree.html#XMLCHAR"
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21470"
NAME="AEN22266"
></A
><P
></P
@ -3035,7 +2966,7 @@ or -1 if not found</TD
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21487"
NAME="AEN22283"
></A
><H3
><A
@ -3064,26 +2995,13 @@ HREF="libxml-tree.html#XMLCHAR"
></TR
></TABLE
><P
><TT
CLASS="PARAMETER"
><I
>start</I
></TT
>: relative pos of first char
<TT
CLASS="PARAMETER"
><I
>len</I
></TT
>: total number to copy</P
><P
>Note: positions are given in units of UTF-8 chars</P
><P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21498"
NAME="AEN22291"
></A
><P
></P
@ -3127,7 +3045,7 @@ CLASS="PARAMETER"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
> relative pos of first char</TD
></TR
><TR
><TD
@ -3144,7 +3062,7 @@ CLASS="PARAMETER"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
> total number to copy</TD
></TR
><TR
><TD
@ -3171,7 +3089,7 @@ or NULL if any problem</TD
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN21519"
NAME="AEN22312"
></A
><H3
><A
@ -3202,7 +3120,7 @@ checking of the content of the string.</P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN21526"
NAME="AEN22319"
></A
><P
></P