didou           Sat Feb  3 05:35:04 2007 UTC

  Modified files:              
    /phpdoc/en/reference/iconv/functions        iconv-get-encoding.xml 
                                                iconv-mime-decode-headers.xml 
                                                iconv-mime-decode.xml 
                                                iconv-mime-encode.xml 
                                                iconv-set-encoding.xml 
                                                iconv-strlen.xml 
                                                iconv-strpos.xml 
                                                iconv-strrpos.xml 
                                                iconv-substr.xml iconv.xml 
                                                ob-iconv-handler.xml 
  Log:
  ref.iconv: switch to new doc style
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/iconv/functions/iconv-get-encoding.xml?r1=1.9&r2=1.10&diff_format=u
Index: phpdoc/en/reference/iconv/functions/iconv-get-encoding.xml
diff -u phpdoc/en/reference/iconv/functions/iconv-get-encoding.xml:1.9 
phpdoc/en/reference/iconv/functions/iconv-get-encoding.xml:1.10
--- phpdoc/en/reference/iconv/functions/iconv-get-encoding.xml:1.9      Sat Feb 
 3 05:34:30 2007
+++ phpdoc/en/reference/iconv/functions/iconv-get-encoding.xml  Sat Feb  3 
05:35:03 2007
@@ -1,37 +1,59 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
 <refentry id="function.iconv-get-encoding">
  <refnamediv>
   <refname>iconv_get_encoding</refname>
   <refpurpose>Retrieve internal configuration variables of iconv 
extension</refpurpose>
  </refnamediv>
- <refsect1>
-  <title>Description</title>
+ 
+ <refsect1 role="description">
+  &reftitle.description;
   <methodsynopsis>
    <type>mixed</type><methodname>iconv_get_encoding</methodname>
    <methodparam 
choice="opt"><type>string</type><parameter>type</parameter></methodparam>
   </methodsynopsis>
   <para>
-   <function>iconv_get_encoding</function> returns the current value
-   of the internal configuration variable if successful,
-   or &false; on failure.
+   Retrieve internal configuration variables of iconv extension.
   </para>
+ </refsect1>
 
+ <refsect1 role="parameters">
+  &reftitle.parameters;
   <para>
-   The value of the optional <parameter>type</parameter> can be:
-   <simplelist>
-    <member>all</member>
-    <member>input_encoding</member>
-    <member>output_encoding</member>
-    <member>internal_encoding</member>
-   </simplelist>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>type</parameter></term>
+     <listitem>
+      <para>
+       The value of the optional <parameter>type</parameter> can be:
+       <simplelist>
+        <member>all</member>
+        <member>input_encoding</member>
+        <member>output_encoding</member>
+        <member>internal_encoding</member>
+       </simplelist>
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
   </para>
+ </refsect1>
 
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Returns the current value of the internal configuration variable if
+   successful, or &false; on failure.
+  </para>
   <para>
    If <parameter>type</parameter> is omitted or set to "all",
    <function>iconv_get_encoding</function> returns an array that
    stores all these variables.
   </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
   <para>
    <example>
     <title><function>iconv_get_encoding</function> example</title>
@@ -46,9 +68,7 @@
 </pre>
 ]]>
     </programlisting>
-    <para>
-     The printout of the above program will be:
-    </para>
+    &example.outputs;
     <screen>
 <![CDATA[
 Array
@@ -62,11 +82,18 @@
     </screen>
    </example>
   </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
   <para>
-   See also <function>iconv_set_encoding</function> and
-   <function>ob_iconv_handler</function>.
+   <simplelist>
+    <member><function>iconv_set_encoding</function></member>
+    <member><function>ob_iconv_handler</function></member>
+   </simplelist>
   </para>
  </refsect1>
+
 </refentry>
 
 <!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/iconv/functions/iconv-mime-decode-headers.xml?r1=1.12&r2=1.13&diff_format=u
Index: phpdoc/en/reference/iconv/functions/iconv-mime-decode-headers.xml
diff -u phpdoc/en/reference/iconv/functions/iconv-mime-decode-headers.xml:1.12 
phpdoc/en/reference/iconv/functions/iconv-mime-decode-headers.xml:1.13
--- phpdoc/en/reference/iconv/functions/iconv-mime-decode-headers.xml:1.12      
Sat Feb  3 05:34:30 2007
+++ phpdoc/en/reference/iconv/functions/iconv-mime-decode-headers.xml   Sat Feb 
 3 05:35:03 2007
@@ -1,26 +1,25 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
 <refentry id="function.iconv-mime-decode-headers">
  <refnamediv>
   <refname>iconv_mime_decode_headers</refname>
   <refpurpose>Decodes multiple <literal>MIME</literal> header fields at 
once</refpurpose>
  </refnamediv>
- <refsect1>
-  <title>Description</title>
+ 
+ <refsect1 role="description">
+  &reftitle.description;
   <methodsynopsis>
    <type>array</type><methodname>iconv_mime_decode_headers</methodname>
    
<methodparam><type>string</type><parameter>encoded_headers</parameter></methodparam>
    <methodparam 
choice="opt"><type>int</type><parameter>mode</parameter></methodparam>
    <methodparam 
choice="opt"><type>string</type><parameter>charset</parameter></methodparam>
   </methodsynopsis>
-
   <para>
    Returns an associative array that holds a whole set of
    <literal>MIME</literal> header fields specified by
    <parameter>encoded_headers</parameter> on success, or &false;
    if an error occurs during the decoding.
   </para>
-
   <para>
    Each key of the return value represents an individual
    field name and the corresponding element represents a field value.
@@ -28,58 +27,86 @@
    <function>iconv_mime_decode_headers</function> automatically incorporates
    them into a numerically indexed array in the order of occurrence.
   </para>
+ </refsect1>
 
+ <refsect1 role="parameters">
+  &reftitle.parameters;
   <para>
-   <parameter>mode</parameter> determines the behaviour in the event
-   <function>iconv_mime_decode_headers</function> encounters a malformed
-   <literal>MIME</literal> header field. You can specify any combination
-   of the following bitmasks.
-   <table>
-    <title>Bitmasks acceptable to 
<function>iconv_mime_decode_headers</function></title>
-    <tgroup cols="3">
-     <thead>
-      <row>
-       <entry>Value</entry>
-       <entry>Constant</entry>
-       <entry>Description</entry>
-      </row>
-     </thead>
-     <tbody>
-      <row>
-       <entry>1</entry>
-       <entry>ICONV_MIME_DECODE_STRICT</entry>
-       <entry>
-        If set, the given header is decoded in full conformance with the
-        standards defined in <ulink url="&url.rfc;2047">RFC2047</ulink>.
-        This option is disabled by default because there are a lot of
-        broken mail user agents that don't follow the specification and don't
-        produce correct <literal>MIME</literal> headers.
-       </entry>
-      </row>
-      <row>
-       <entry>2</entry>
-       <entry>ICONV_MIME_DECODE_CONTINUE_ON_ERROR</entry>
-       <entry>
-        If set, <function>iconv_mime_decode_headers</function>
-        attempts to ignore any grammatical errors and continue to process
-        a given header.
-       </entry>
-      </row>
-     </tbody>
-    </tgroup>
-   </table>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>encoded_headers</parameter></term>
+     <listitem>
+      <para>
+       The encoded headers, as a string.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>mode</parameter></term>
+     <listitem>
+      <para>
+       <parameter>mode</parameter> determines the behaviour in the event
+       <function>iconv_mime_decode_headers</function> encounters a malformed
+       <literal>MIME</literal> header field. You can specify any combination
+       of the following bitmasks.
+       <table>
+        <title>Bitmasks acceptable to 
<function>iconv_mime_decode_headers</function></title>
+        <tgroup cols="3">
+         <thead>
+          <row>
+           <entry>Value</entry>
+           <entry>Constant</entry>
+           <entry>Description</entry>
+          </row>
+         </thead>
+         <tbody>
+          <row>
+           <entry>1</entry>
+           <entry>ICONV_MIME_DECODE_STRICT</entry>
+           <entry>
+            If set, the given header is decoded in full conformance with the
+            standards defined in <ulink url="&url.rfc;2047">RFC2047</ulink>.
+            This option is disabled by default because there are a lot of
+            broken mail user agents that don't follow the specification and 
don't
+            produce correct <literal>MIME</literal> headers.
+           </entry>
+          </row>
+          <row>
+           <entry>2</entry>
+           <entry>ICONV_MIME_DECODE_CONTINUE_ON_ERROR</entry>
+           <entry>
+            If set, <function>iconv_mime_decode_headers</function>
+            attempts to ignore any grammatical errors and continue to process
+            a given header.
+           </entry>
+          </row>
+         </tbody>
+        </tgroup>
+       </table>
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>charset</parameter></term>
+     <listitem>
+      <para>
+       The optional <parameter>charset</parameter> parameter specifies the
+       character set to represent the result by. If omitted,
+       <link linkend="iconv.configuration">iconv.internal_charset</link>
+       will be used.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
   </para>
+ </refsect1>
 
+ <refsect1 role="examples">
+  &reftitle.examples;
   <para>
-   The optional <parameter>charset</parameter> parameter specifies the
-   character set to represent the result by. If omitted,
-   <link linkend="iconv.configuration">iconv.internal_charset</link>
-   will be used.
-  </para>
-
-  <example>
-   <title><function>iconv_mime_decode_headers</function> example</title>
-   <programlisting role="php">
+   <example>
+    <title><function>iconv_mime_decode_headers</function> example</title>
+    <programlisting role="php">
 <![CDATA[
 <?php
 $headers_string = <<<EOF
@@ -99,9 +126,9 @@
 print_r($headers);
 ?>
 ]]>
-    </programlisting>
-    &example.outputs;
-    <screen>
+     </programlisting>
+     &example.outputs;
+     <screen>
 <![CDATA[
 Array
 (
@@ -117,17 +144,24 @@
 
 )
 ]]>
-   </screen>
-  </example>
+    </screen>
+   </example>
+  </para>
+ </refsect1>
 
+ <refsect1 role="seealso">
+  &reftitle.seealso;
   <para>
-   See also <function>iconv_mime_decode</function>,
-   <function>mb_decode_mimeheader</function>,
-   <function>imap_mime_header_decode</function>,
-   <function>imap_base64</function>
-   and <function>imap_qprint</function>.
+   <simplelist>
+    <member><function>iconv_mime_decode</function></member>
+    <member><function>mb_decode_mimeheader</function></member>
+    <member><function>imap_mime_header_decode</function></member>
+    <member><function>imap_base64</function></member>
+    <member><function>imap_qprint</function></member>
+   </simplelist>
   </para>
  </refsect1>
+
 </refentry>
 
 <!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/iconv/functions/iconv-mime-decode.xml?r1=1.8&r2=1.9&diff_format=u
Index: phpdoc/en/reference/iconv/functions/iconv-mime-decode.xml
diff -u phpdoc/en/reference/iconv/functions/iconv-mime-decode.xml:1.8 
phpdoc/en/reference/iconv/functions/iconv-mime-decode.xml:1.9
--- phpdoc/en/reference/iconv/functions/iconv-mime-decode.xml:1.8       Sat Feb 
 3 05:34:30 2007
+++ phpdoc/en/reference/iconv/functions/iconv-mime-decode.xml   Sat Feb  3 
05:35:03 2007
@@ -1,70 +1,106 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <refentry id="function.iconv-mime-decode">
  <refnamediv>
   <refname>iconv_mime_decode</refname>
   <refpurpose>Decodes a <literal>MIME</literal> header field</refpurpose>
  </refnamediv>
- <refsect1>
-  <title>Description</title>
+ 
+ <refsect1 role="description">
+  &reftitle.description;
   <methodsynopsis>
    <type>string</type><methodname>iconv_mime_decode</methodname>
    
<methodparam><type>string</type><parameter>encoded_header</parameter></methodparam>
    <methodparam 
choice="opt"><type>int</type><parameter>mode</parameter></methodparam>
    <methodparam 
choice="opt"><type>string</type><parameter>charset</parameter></methodparam>
   </methodsynopsis>
-
   <para>
-   Returns a decoded <literal>MIME</literal> field on success,
-   or &false; if an error occurs during the decoding.
+   Decodes a <literal>MIME</literal> header field.
   </para>
+ </refsect1>
 
+ <refsect1 role="parameters">
+  &reftitle.parameters;
   <para>
-   <parameter>mode</parameter> determines the behaviour in the event
-   <function>iconv_mime_decode</function> encounters a malformed
-   <literal>MIME</literal> header field. You can specify any combination
-   of the following bitmasks.
-   <table>
-    <title>Bitmasks acceptable to 
<function>iconv_mime_decode</function></title>
-    <tgroup cols="3">
-     <thead>
-      <row>
-       <entry>Value</entry>
-       <entry>Constant</entry>
-       <entry>Description</entry>
-      </row>
-     </thead>
-     <tbody>
-      <row>
-       <entry>1</entry>
-       <entry>ICONV_MIME_DECODE_STRICT</entry>
-       <entry>
-        If set, the given header is decoded in full conformance with the
-        standards defined in <ulink url="&url.rfc;2047">RFC2047</ulink>.
-        This option is disabled by default because there are a lot of
-        broken mail user agents that don't follow the specification and don't
-        produce correct <literal>MIME</literal> headers.
-       </entry>
-      </row>
-      <row>
-       <entry>2</entry>
-       <entry>ICONV_MIME_DECODE_CONTINUE_ON_ERROR</entry>
-       <entry>
-        If set, <function>iconv_mime_decode</function> attempts to continue
-        to process the given header even though an error occurs.
-       </entry>
-      </row>
-     </tbody>
-    </tgroup>
-   </table>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>encoded_header</parameter></term>
+     <listitem>
+      <para>
+       The encoded header, as a string.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>mode</parameter></term>
+     <listitem>
+      <para>
+       <parameter>mode</parameter> determines the behaviour in the event
+       <function>iconv_mime_decode</function> encounters a malformed
+       <literal>MIME</literal> header field. You can specify any combination
+       of the following bitmasks.
+       <table>
+        <title>Bitmasks acceptable to 
<function>iconv_mime_decode</function></title>
+        <tgroup cols="3">
+         <thead>
+          <row>
+           <entry>Value</entry>
+           <entry>Constant</entry>
+           <entry>Description</entry>
+          </row>
+         </thead>
+         <tbody>
+          <row>
+           <entry>1</entry>
+           <entry>ICONV_MIME_DECODE_STRICT</entry>
+           <entry>
+            If set, the given header is decoded in full conformance with the
+            standards defined in <ulink url="&url.rfc;2047">RFC2047</ulink>.
+            This option is disabled by default because there are a lot of
+            broken mail user agents that don't follow the specification and 
don't
+            produce correct <literal>MIME</literal> headers.
+           </entry>
+          </row>
+          <row>
+           <entry>2</entry>
+           <entry>ICONV_MIME_DECODE_CONTINUE_ON_ERROR</entry>
+           <entry>
+            If set, <function>iconv_mime_decode_headers</function>
+            attempts to ignore any grammatical errors and continue to process
+            a given header.
+           </entry>
+          </row>
+         </tbody>
+        </tgroup>
+       </table>
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>charset</parameter></term>
+     <listitem>
+      <para>
+       The optional <parameter>charset</parameter> parameter specifies the
+       character set to represent the result by. If omitted,
+       <link linkend="iconv.configuration">iconv.internal_charset</link>
+       will be used.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
   </para>
+ </refsect1>
 
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
   <para>
-   The optional <parameter>charset</parameter> parameter specifies the
-   character set to represent the result by. If omitted,
-   <link linkend="iconv.configuration">iconv.internal_charset</link>
-   will be used.
+   Returns a decoded <literal>MIME</literal> field on success,
+   or &false; if an error occurs during the decoding.
   </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
   <para>
    <example>
     <title><function>iconv_mime_decode</function> example</title>
@@ -79,14 +115,21 @@
     </programlisting>
    </example>
   </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
   <para>
-   See also <function>iconv_mime_decode_headers</function>,
-   <function>mb_decode_mimeheader</function>,
-   <function>imap_mime_header_decode</function>,
-   <function>imap_base64</function>
-   and <function>imap_qprint</function>.
+   <simplelist>
+    <member><function>iconv_mime_decode_headers</function></member>
+    <member><function>mb_decode_mimeheader</function></member>
+    <member><function>imap_mime_header_decode</function></member>
+    <member><function>imap_base64</function></member>
+    <member><function>imap_qprint</function></member>
+   </simplelist>
   </para>
  </refsect1>
+
 </refentry>
 
 <!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/iconv/functions/iconv-mime-encode.xml?r1=1.11&r2=1.12&diff_format=u
Index: phpdoc/en/reference/iconv/functions/iconv-mime-encode.xml
diff -u phpdoc/en/reference/iconv/functions/iconv-mime-encode.xml:1.11 
phpdoc/en/reference/iconv/functions/iconv-mime-encode.xml:1.12
--- phpdoc/en/reference/iconv/functions/iconv-mime-encode.xml:1.11      Sat Feb 
 3 05:34:30 2007
+++ phpdoc/en/reference/iconv/functions/iconv-mime-encode.xml   Sat Feb  3 
05:35:03 2007
@@ -1,12 +1,13 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
 <refentry id="function.iconv-mime-encode">
  <refnamediv>
   <refname>iconv_mime_encode</refname>
   <refpurpose>Composes a <literal>MIME</literal> header field</refpurpose>
  </refnamediv>
- <refsect1>
-  <title>Description</title>
+ 
+ <refsect1 role="description">
+  &reftitle.description;
   <methodsynopsis>
    <type>string</type><methodname>iconv_mime_encode</methodname>
    
<methodparam><type>string</type><parameter>field_name</parameter></methodparam>
@@ -24,99 +25,140 @@
    In the above example, "Subject" is the field name and the portion that
    begins with "=?ISO-8859-1?..." is the field value.
   </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
   <para>
-   You can control the behaviour of <function>iconv_mime_encode</function>
-   by specifying an associative array that contains configuration items
-   to the optional third parameter <parameter>preferences</parameter>.
-   The items supported by <function>iconv_mime_encode</function> are
-   listed below. Note that item names are treated case-sensitive.
-   <table>
-    <title>Configuration items supported by 
<function>iconv_mime_encode</function></title>
-    <tgroup cols="5">
-     <thead>
-      <row>
-       <entry>Item</entry>
-       <entry>Type</entry>
-       <entry>Description</entry>
-       <entry>Default value</entry>
-       <entry>Example</entry>
-      </row>
-     </thead>
-     <tbody>
-      <row>
-       <entry>scheme</entry>
-       <entry><type>boolean</type></entry>
-       <entry>
-        Specifies the method to encode a field value by. The value of
-        this item may be either "B" or "Q", where "B" stands for
-        <literal>base64</literal> encoding scheme and "Q" stands for
-        <literal>quoted-printable</literal> encoding scheme.
-       </entry>
-       <entry>B</entry>
-       <entry>B</entry>
-      </row>
-      <row>
-       <entry>input-charset</entry>
-       <entry><type>string</type></entry>
-       <entry>
-        Specifies the character set in which the first parameter
-        <parameter>field_name</parameter> and the second parameter
-        <parameter>field_value</parameter> are presented. If not given,
-        <function>iconv_mime_encode</function> assumes those parameters
-        are presented to it in the
-        <link linkend="iconv.configuration">iconv.internal_charset</link>
-        ini setting.
-       </entry>
-       <entry>
-        <link linkend="iconv.configuration">iconv.internal_charset</link>
-       </entry>
-       <entry>ISO-8859-1</entry>
-      </row>
-      <row>
-       <entry>output-charset</entry>
-       <entry><type>string</type></entry>
-       <entry>
-        Specifies the character set to use to compose the
-        <literal>MIME</literal> header. If not given, the same value as
-        <literal>input-charset</literal> will be used.
-       </entry>
-       <entry>
-        <link linkend="iconv.configuration">iconv.internal_charset</link>
-       </entry>
-       <entry>UTF-8</entry>
-      </row>
-      <row>
-       <entry>line-length</entry>
-       <entry><type>integer</type></entry>
-       <entry>
-        Specifies the maximum length of the header lines. The resulting
-        header is "folded" to a set of multiple lines in case
-        the resulting header field would be longer than the value of this
-        parameter, according to
-        <ulink url="&url.rfc;2822">RFC2822 - Internet Message Format</ulink>.
-        If not given, the length will be limited to 76 characters.
-       </entry>
-       <entry>76</entry>
-       <entry>996</entry>
-      </row>
-      <row>
-       <entry>line-break-chars</entry>
-       <entry><type>string</type></entry>
-       <entry>
-        Specifies the sequence of characters to append to each line
-        as an end-of-line sign when "folding" is performed on a long header
-        field. If not given, this defaults to "\r\n"
-        (<literal>CR</literal> <literal>LF</literal>). Note that
-        this parameter is always treated as an ASCII string regardless
-        of the value of <literal>input-charset</literal>.
-       </entry>
-       <entry>\r\n</entry>
-       <entry>\n</entry>
-      </row>
-     </tbody>
-    </tgroup>
-   </table>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>field_name</parameter></term>
+     <listitem>
+      <para>
+       The field name.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>field_value</parameter></term>
+     <listitem>
+      <para>
+       The field value.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>preferences</parameter></term>
+     <listitem>
+      <para>
+       You can control the behaviour of <function>iconv_mime_encode</function>
+       by specifying an associative array that contains configuration items
+       to the optional third parameter <parameter>preferences</parameter>.
+       The items supported by <function>iconv_mime_encode</function> are
+       listed below. Note that item names are treated case-sensitive.
+       <table>
+        <title>Configuration items supported by 
<function>iconv_mime_encode</function></title>
+        <tgroup cols="5">
+         <thead>
+          <row>
+           <entry>Item</entry>
+           <entry>Type</entry>
+           <entry>Description</entry>
+           <entry>Default value</entry>
+           <entry>Example</entry>
+          </row>
+         </thead>
+         <tbody>
+          <row>
+           <entry>scheme</entry>
+           <entry><type>boolean</type></entry>
+           <entry>
+            Specifies the method to encode a field value by. The value of
+            this item may be either "B" or "Q", where "B" stands for
+            <literal>base64</literal> encoding scheme and "Q" stands for
+            <literal>quoted-printable</literal> encoding scheme.
+           </entry>
+           <entry>B</entry>
+           <entry>B</entry>
+          </row>
+          <row>
+           <entry>input-charset</entry>
+           <entry><type>string</type></entry>
+           <entry>
+            Specifies the character set in which the first parameter
+            <parameter>field_name</parameter> and the second parameter
+            <parameter>field_value</parameter> are presented. If not given,
+            <function>iconv_mime_encode</function> assumes those parameters
+            are presented to it in the
+            <link linkend="iconv.configuration">iconv.internal_charset</link>
+            ini setting.
+           </entry>
+           <entry>
+            <link linkend="iconv.configuration">iconv.internal_charset</link>
+           </entry>
+           <entry>ISO-8859-1</entry>
+          </row>
+          <row>
+           <entry>output-charset</entry>
+           <entry><type>string</type></entry>
+           <entry>
+            Specifies the character set to use to compose the
+            <literal>MIME</literal> header. If not given, the same value as
+            <literal>input-charset</literal> will be used.
+           </entry>
+           <entry>
+            <link linkend="iconv.configuration">iconv.internal_charset</link>
+           </entry>
+           <entry>UTF-8</entry>
+          </row>
+          <row>
+           <entry>line-length</entry>
+           <entry><type>integer</type></entry>
+           <entry>
+            Specifies the maximum length of the header lines. The resulting
+            header is "folded" to a set of multiple lines in case
+            the resulting header field would be longer than the value of this
+            parameter, according to
+            <ulink url="&url.rfc;2822">RFC2822 - Internet Message 
Format</ulink>.
+            If not given, the length will be limited to 76 characters.
+           </entry>
+           <entry>76</entry>
+           <entry>996</entry>
+          </row>
+          <row>
+           <entry>line-break-chars</entry>
+           <entry><type>string</type></entry>
+           <entry>
+            Specifies the sequence of characters to append to each line
+            as an end-of-line sign when "folding" is performed on a long header
+            field. If not given, this defaults to "\r\n"
+            (<literal>CR</literal> <literal>LF</literal>). Note that
+            this parameter is always treated as an ASCII string regardless
+            of the value of <literal>input-charset</literal>.
+           </entry>
+           <entry>\r\n</entry>
+           <entry>\n</entry>
+          </row>
+         </tbody>
+        </tgroup>
+       </table>
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
   </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Returns an encoded <literal>MIME</literal> field on success,
+   or &false; if an error occurs during the encoding.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
   <para>
    <example>
     <title><function>iconv_mime_encode</function> example</title>
@@ -141,12 +183,19 @@
     </programlisting>
    </example>
   </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
   <para>
-   See also <function>imap_binary</function>,
-   <function>mb_encode_mimeheader</function>
-   and <function>imap_8bit</function>.
+   <simplelist>
+    <member><function>imap_binary</function></member>
+    <member><function>mb_encode_mimeheader</function></member>
+    <member><function>imap_8bit</function></member>
+   </simplelist>
   </para>
  </refsect1>
+
 </refentry>
 
 <!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/iconv/functions/iconv-set-encoding.xml?r1=1.8&r2=1.9&diff_format=u
Index: phpdoc/en/reference/iconv/functions/iconv-set-encoding.xml
diff -u phpdoc/en/reference/iconv/functions/iconv-set-encoding.xml:1.8 
phpdoc/en/reference/iconv/functions/iconv-set-encoding.xml:1.9
--- phpdoc/en/reference/iconv/functions/iconv-set-encoding.xml:1.8      Sat Feb 
 3 05:34:30 2007
+++ phpdoc/en/reference/iconv/functions/iconv-set-encoding.xml  Sat Feb  3 
05:35:03 2007
@@ -1,33 +1,65 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <refentry id="function.iconv-set-encoding">
  <refnamediv>
   <refname>iconv_set_encoding</refname>
   <refpurpose>Set current setting for character encoding 
conversion</refpurpose>
  </refnamediv>
- <refsect1>
-  <title>Description</title>
+ 
+ <refsect1 role="description">
+  &reftitle.description;
   <methodsynopsis>
    <type>bool</type><methodname>iconv_set_encoding</methodname>
    <methodparam><type>string</type><parameter>type</parameter></methodparam>
    <methodparam><type>string</type><parameter>charset</parameter></methodparam>
   </methodsynopsis>
   <para>
-   <function>iconv_set_encoding</function> changes the value of the internal
-   configuration variable specified by <parameter>type</parameter> to
-   <parameter>charset</parameter>. &return.success;
+   Changes the value of the internal configuration variable specified by
+   <parameter>type</parameter> to <parameter>charset</parameter>.
   </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
   <para>
-   The value of <parameter>type</parameter> can be any one of those:
-   <simplelist>
-    <member>input_encoding</member>
-    <member>output_encoding</member>
-    <member>internal_encoding</member>
-   </simplelist>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>type</parameter></term>
+     <listitem>
+      <para>
+       The value of <parameter>type</parameter> can be any one of those:
+       <simplelist>
+        <member>input_encoding</member>
+        <member>output_encoding</member>
+        <member>internal_encoding</member>
+       </simplelist>
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>charset</parameter></term>
+     <listitem>
+      <para>
+       The character set.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
   </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   &return.success;
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
   <para>
    <example>
-    <title><function>iconv_set_encoding</function> example:</title>
+    <title><function>iconv_set_encoding</function> example</title>
     <programlisting role="php">
 <![CDATA[
 <?php
@@ -38,11 +70,18 @@
     </programlisting>
    </example>
   </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
   <para>
-   See also <function>iconv_get_encoding</function> and
-   <function>ob_iconv_handler</function>.
+   <simplelist>
+    <member><function>iconv_get_encoding</function></member>
+    <member><function>ob_iconv_handler</function></member>
+   </simplelist>
   </para>
  </refsect1>
+
 </refentry>
 
 <!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/iconv/functions/iconv-strlen.xml?r1=1.6&r2=1.7&diff_format=u
Index: phpdoc/en/reference/iconv/functions/iconv-strlen.xml
diff -u phpdoc/en/reference/iconv/functions/iconv-strlen.xml:1.6 
phpdoc/en/reference/iconv/functions/iconv-strlen.xml:1.7
--- phpdoc/en/reference/iconv/functions/iconv-strlen.xml:1.6    Sat Feb  3 
05:34:30 2007
+++ phpdoc/en/reference/iconv/functions/iconv-strlen.xml        Sat Feb  3 
05:35:03 2007
@@ -1,37 +1,70 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <refentry id="function.iconv-strlen">
  <refnamediv>
   <refname>iconv_strlen</refname>
   <refpurpose>Returns the character count of string</refpurpose>
  </refnamediv>
- <refsect1>
-  <title>Description</title>
+ 
+ <refsect1 role="description">
+  &reftitle.description;
   <methodsynopsis>
    <type>int</type><methodname>iconv_strlen</methodname>
    <methodparam><type>string</type><parameter>str</parameter></methodparam>
    <methodparam 
choice="opt"><type>string</type><parameter>charset</parameter></methodparam>
   </methodsynopsis>
   <para>
-   Returns the character count of <parameter>str</parameter>.
-  </para>
-  <para>
    In contrast to <function>strlen</function>,
    <function>iconv_strlen</function> counts the occurrences of characters
    in the given byte sequence <parameter>str</parameter> on the basis of
    the specified character set, the result of which is not necessarily
    identical to the length of the string in byte.
   </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  <para>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>str</parameter></term>
+     <listitem>
+      <para>
+       The string.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>charset</parameter></term>
+     <listitem>
+      <para>
+       If <parameter>charset</parameter> parameter is omitted,
+       <parameter>str</parameter> is assumed to be encoded in
+       <link linkend="iconv.configuration">iconv.internal_charset</link>.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
   <para>
-   If <parameter>charset</parameter> parameter is omitted,
-   <parameter>str</parameter> is assumed to be encoded in
-   <link linkend="iconv.configuration">iconv.internal_charset</link>.
+   Returns the character count of <parameter>str</parameter>, as an integer.
   </para>
+ </refsect1>
 
+ <refsect1 role="seealso">
+  &reftitle.seealso;
   <para>
-   See also <function>strlen</function> and <function>mb_strlen</function>.
+   <simplelist>
+    <member><function>strlen</function></member>
+    <member><function>mb_strlen</function></member>
+   </simplelist>
   </para>
  </refsect1>
+
 </refentry>
 
 <!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/iconv/functions/iconv-strpos.xml?r1=1.8&r2=1.9&diff_format=u
Index: phpdoc/en/reference/iconv/functions/iconv-strpos.xml
diff -u phpdoc/en/reference/iconv/functions/iconv-strpos.xml:1.8 
phpdoc/en/reference/iconv/functions/iconv-strpos.xml:1.9
--- phpdoc/en/reference/iconv/functions/iconv-strpos.xml:1.8    Sat Feb  3 
05:34:30 2007
+++ phpdoc/en/reference/iconv/functions/iconv-strpos.xml        Sat Feb  3 
05:35:03 2007
@@ -1,12 +1,13 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <refentry id="function.iconv-strpos">
  <refnamediv>
   <refname>iconv_strpos</refname>
   <refpurpose>Finds position of first occurrence of a needle within a 
haystack</refpurpose>
  </refnamediv>
- <refsect1>
-  <title>Description</title>
+ 
+ <refsect1 role="description">
+  &reftitle.description;
   <methodsynopsis>
    <type>int</type><methodname>iconv_strpos</methodname>
    
<methodparam><type>string</type><parameter>haystack</parameter></methodparam>
@@ -15,45 +16,89 @@
    <methodparam 
choice="opt"><type>string</type><parameter>charset</parameter></methodparam>
   </methodsynopsis>
   <para>
-   Returns the numeric position of the first occurrence of
-   <parameter>needle</parameter> in <parameter>haystack</parameter>.
+   Finds position of first occurrence of a needle within a haystack.
   </para>
   <para>
-   The optional <parameter>offset</parameter> parameter specifies
-   the position from which the search should be performed.
+   In contrast to <function>strpos</function>, the return value of
+   <function>iconv_strpos</function> is the number of characters that
+   appear before the needle, rather than the offset in bytes to the
+   position where the needle has been found. The characters are counted
+   on the basis of the specified character set <parameter>charset</parameter>.
   </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
   <para>
-   If <parameter>needle</parameter> is not found,
-   <function>iconv_strpos</function> will return &false;.
+   <variablelist>
+    <varlistentry>
+     <term><parameter>haystack</parameter></term>
+     <listitem>
+      <para>
+       The entire string.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>needle</parameter></term>
+     <listitem>
+      <para>
+       The searched substring.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>offset</parameter></term>
+     <listitem>
+      <para>
+       The optional <parameter>offset</parameter> parameter specifies
+       the position from which the search should be performed.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>charset</parameter></term>
+     <listitem>
+      <para>
+       If <parameter>charset</parameter> parameter is omitted,
+       <parameter>string</parameter> are assumed to be encoded in
+       <link linkend="iconv.configuration">iconv.internal_charset</link>.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
   </para>
-
-  &return.falseproblem;
-
   <para>
    If <parameter>haystack</parameter> or <parameter>needle</parameter> is
    not a string, it is converted to a string and applied as the ordinal
    value of a character.
   </para>
+ </refsect1>
 
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
   <para>
-   In contrast to <function>strpos</function>, the return value of
-   <function>iconv_strpos</function> is the number of characters that
-   appear before the needle, rather than the offset in bytes to the
-   position where the needle has been found. The characters are counted
-   on the basis of the specified character set <parameter>charset</parameter>.
+   Returns the numeric position of the first occurrence of
+   <parameter>needle</parameter> in <parameter>haystack</parameter>.
   </para>
-
   <para>
-   If <parameter>charset</parameter> parameter is omitted,
-   <parameter>string</parameter> are assumed to be encoded in
-   <link linkend="iconv.configuration">iconv.internal_charset</link>.
+   If <parameter>needle</parameter> is not found,
+   <function>iconv_strpos</function> will return &false;.
   </para>
+  &return.falseproblem;
+ </refsect1>
 
+ <refsect1 role="seealso">
+  &reftitle.seealso;
   <para>
-   See also <function>strpos</function>, <function>iconv_strrpos</function>
-   and <function>mb_strpos</function>.
+   <simplelist>
+    <member><function>strpos</function></member>
+    <member><function>iconv_strrpos</function></member>
+    <member><function>mb_strpos</function></member>
+   </simplelist>
   </para>
  </refsect1>
+
 </refentry>
 
 <!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/iconv/functions/iconv-strrpos.xml?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc/en/reference/iconv/functions/iconv-strrpos.xml
diff -u phpdoc/en/reference/iconv/functions/iconv-strrpos.xml:1.7 
phpdoc/en/reference/iconv/functions/iconv-strrpos.xml:1.8
--- phpdoc/en/reference/iconv/functions/iconv-strrpos.xml:1.7   Sat Feb  3 
05:34:30 2007
+++ phpdoc/en/reference/iconv/functions/iconv-strrpos.xml       Sat Feb  3 
05:35:03 2007
@@ -1,12 +1,13 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
 <refentry id="function.iconv-strrpos">
  <refnamediv>
   <refname>iconv_strrpos</refname>
   <refpurpose>Finds the last occurrence of a needle within a 
haystack</refpurpose>
  </refnamediv>
- <refsect1>
-  <title>Description</title>
+ 
+ <refsect1 role="description">
+  &reftitle.description;
   <methodsynopsis>
    <type>int</type><methodname>iconv_strrpos</methodname>
    
<methodparam><type>string</type><parameter>haystack</parameter></methodparam>
@@ -14,36 +15,78 @@
    <methodparam 
choice="opt"><type>string</type><parameter>charset</parameter></methodparam>
   </methodsynopsis>
   <para>
-   Returns the numeric position of the last occurrence of
-   <parameter>needle</parameter> in <parameter>haystack</parameter>.
+   In contrast to <function>strpos</function>, the return value of
+   <function>iconv_strrpos</function> is the number of characters that
+   appear before the needle, rather than the offset in bytes to the
+   position where the needle has been found. 
   </para>
+ </refsect1>
 
+ <refsect1 role="parameters">
+  &reftitle.parameters;
   <para>
-   If <parameter>needle</parameter> is not found,
-   <function>iconv_strrpos</function> will return &false;.
+   <variablelist>
+    <varlistentry>
+     <term><parameter>haystack</parameter></term>
+     <listitem>
+      <para>
+       The entire string.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>needle</parameter></term>
+     <listitem>
+      <para>
+       The searched substring.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>charset</parameter></term>
+     <listitem>
+      <para>
+       If <parameter>charset</parameter> parameter is omitted,
+       <parameter>string</parameter> are assumed to be encoded in
+       <link linkend="iconv.configuration">iconv.internal_charset</link>.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
   </para>
-
-  &return.falseproblem;
-
   <para>
    If <parameter>haystack</parameter> or <parameter>needle</parameter> is
    not a string, it is converted to a string and applied as the ordinal
    value of a character.
   </para>
+ </refsect1>
 
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
   <para>
-   In contrast to <function>strpos</function>, the return value of
-   <function>iconv_strrpos</function> is the number of characters that
-   appear before the needle, rather than the offset in bytes to the
-   position where the needle has been found. The characters are counted
+   Returns the numeric position of the last occurrence of
+   <parameter>needle</parameter> in <parameter>haystack</parameter>.
+   The characters are counted
    on the basis of the specified character set <parameter>charset</parameter>.
   </para>
+  <para>
+   If <parameter>needle</parameter> is not found,
+   <function>iconv_strrpos</function> will return &false;.
+  </para>
+  &return.falseproblem;
+ </refsect1>
 
+ <refsect1 role="seealso">
+  &reftitle.seealso;
   <para>
-   See also <function>strrpos</function>, <function>iconv_strpos</function>
-   and <function>mb_strrpos</function>.
+   <simplelist>
+    <member><function>strrpos</function></member>
+    <member><function>iconv_strpos</function></member>
+    <member><function>mb_strrpos</function></member>
+   </simplelist>
   </para>
  </refsect1>
+
 </refentry>
 
 <!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/iconv/functions/iconv-substr.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc/en/reference/iconv/functions/iconv-substr.xml
diff -u phpdoc/en/reference/iconv/functions/iconv-substr.xml:1.5 
phpdoc/en/reference/iconv/functions/iconv-substr.xml:1.6
--- phpdoc/en/reference/iconv/functions/iconv-substr.xml:1.5    Sat Feb  3 
05:34:30 2007
+++ phpdoc/en/reference/iconv/functions/iconv-substr.xml        Sat Feb  3 
05:35:03 2007
@@ -1,12 +1,13 @@
 <?xml version='1.0' encoding='iso-8859-1'?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <refentry id="function.iconv-substr">
  <refnamediv>
   <refname>iconv_substr</refname>
   <refpurpose>Cut out part of a string</refpurpose>
  </refnamediv>
- <refsect1>
-  <title>Description</title>
+ 
+ <refsect1 role="description">
+  &reftitle.description;
   <methodsynopsis>
    <type>string</type><methodname>iconv_substr</methodname>
    <methodparam><type>string</type><parameter>str</parameter></methodparam>
@@ -14,62 +15,105 @@
    <methodparam 
choice="opt"><type>int</type><parameter>length</parameter></methodparam>
    <methodparam 
choice="opt"><type>string</type><parameter>charset</parameter></methodparam>
   </methodsynopsis>
-
   <para>
-   Returns the portion of <parameter>str</parameter> specified by
-   the <parameter>start</parameter> and <parameter>length</parameter>
-   parameters.
+   Cuts a portion of <parameter>str</parameter> specified by the 
+   <parameter>offset</parameter> and <parameter>length</parameter> parameters.
   </para>
+ </refsect1>
 
+ <refsect1 role="parameters">
+  &reftitle.parameters;
   <para>
-   If <parameter>start</parameter> is non-negative,
-   <function>iconv_substr</function> cuts the portion out of
-   <parameter>str</parameter> beginning at <parameter>start</parameter>'th
-   character, counting from zero.
+   <variablelist>
+    <varlistentry>
+     <term><parameter>str</parameter></term>
+     <listitem>
+      <para>
+       The original string.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>offset</parameter></term>
+     <listitem>
+      <para>
+       If <parameter>offset</parameter> is non-negative,
+       <function>iconv_substr</function> cuts the portion out of
+       <parameter>str</parameter> beginning at <parameter>offset</parameter>'th
+       character, counting from zero.
+      </para>
+      <para>
+       If <parameter>offset</parameter> is negative,
+       <function>iconv_substr</function> cuts out the portion beginning
+       at the position, <parameter>offset</parameter> characters
+       away from the end of <parameter>str</parameter>.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>length</parameter></term>
+     <listitem>
+      <para>
+       If <parameter>length</parameter> is given and is positive, the return
+       value will contain at most <parameter>length</parameter> characters
+       of the portion that begins at <parameter>offset</parameter>
+       (depending on the length of <parameter>string</parameter>).
+      </para>
+      <para>
+       If negative <parameter>length</parameter> is passed,
+       <function>iconv_substr</function> cuts the portion out of
+       <parameter>str</parameter> from the <parameter>offset</parameter>'th
+       character up to the character that is
+       <parameter>length</parameter> characters away from the end of the 
string.
+       In case <parameter>offset</parameter> is also negative, the start 
position
+       is calculated beforehand according to the rule explained above.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>charset</parameter></term>
+     <listitem>
+      <para>
+       If <parameter>charset</parameter> parameter is omitted,
+       <parameter>string</parameter> are assumed to be encoded in
+       <link linkend="iconv.configuration">iconv.internal_charset</link>.
+      </para>
+      <para>
+       Note that <parameter>offset</parameter> and 
<parameter>length</parameter>
+       parameters are always deemed to represent offsets that are
+       calculated on the basis of the character set determined by
+       <parameter>charset</parameter>, whilst the counterpart
+       <function>substr</function> always takes these for byte offsets.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
   </para>
+ </refsect1>
 
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
   <para>
-   If <parameter>start</parameter> is negative,
-   <function>iconv_substr</function> cuts out the portion beginning
-   at the position, <parameter>start</parameter> characters
-   away from the end of <parameter>str</parameter>.
+   Returns the portion of <parameter>str</parameter> specified by the
+   <parameter>offset</parameter> and <parameter>length</parameter> parameters.
   </para>
-
   <para>
-   If <parameter>length</parameter> is given and is positive, the return
-   value will contain at most <parameter>length</parameter> characters
-   of the portion that begins at <parameter>start</parameter>
-   (depending on the length of <parameter>string</parameter>).
-   If <parameter>str</parameter> is shorter than <parameter>start</parameter>
+   If <parameter>str</parameter> is shorter than <parameter>offset</parameter>
    characters long, &false; will be returned.
   </para>
+ </refsect1>
 
+ <refsect1 role="seealso">
+  &reftitle.seealso;
   <para>
-   If negative <parameter>length</parameter> is passed,
-   <function>iconv_substr</function> cuts the portion out of
-   <parameter>str</parameter> from the <parameter>start</parameter>'th
-   character up to the character that is
-   <parameter>length</parameter> characters away from the end of the string.
-   In case <parameter>start</parameter> is also negative, the start position
-   is calculated beforehand according to the rule explained above.
-  </para>
-
-  <para>
-   Note that <parameter>offset</parameter> and <parameter>length</parameter>
-   parameters are always deemed to represent offsets that are
-   calculated on the basis of the character set determined by
-   <parameter>charset</parameter>, whilst the counterpart
-   <function>substr</function> always takes these for byte offsets.
-   If <parameter>charset</parameter> is not given, the character set
-   is determined by the <link 
linkend="iconv.configuration">iconv.internal_encoding</link>
-   ini setting.
-  </para>
-
-  <para>
-   See also <function>substr</function>, <function>mb_substr</function>
-   and <function>mb_strcut</function>.
+   <simplelist>
+    <member><function>substr</function></member>
+    <member><function>mb_substr</function></member>
+    <member><function>mb_strcut</function></member>
+   </simplelist>
   </para>
  </refsect1>
+
 </refentry>
 
 <!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/iconv/functions/iconv.xml?r1=1.11&r2=1.12&diff_format=u
Index: phpdoc/en/reference/iconv/functions/iconv.xml
diff -u phpdoc/en/reference/iconv/functions/iconv.xml:1.11 
phpdoc/en/reference/iconv/functions/iconv.xml:1.12
--- phpdoc/en/reference/iconv/functions/iconv.xml:1.11  Sat Feb  3 05:34:30 2007
+++ phpdoc/en/reference/iconv/functions/iconv.xml       Sat Feb  3 05:35:03 2007
@@ -1,12 +1,13 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
 <refentry id="function.iconv">
  <refnamediv>
   <refname>iconv</refname>
   <refpurpose>Convert string to requested character encoding</refpurpose>
  </refnamediv>
- <refsect1>
-  <title>Description</title>
+ 
+ <refsect1 role="description">
+  &reftitle.description;
   <methodsynopsis>
    <type>string</type><methodname>iconv</methodname>
    
<methodparam><type>string</type><parameter>in_charset</parameter></methodparam>
@@ -16,21 +17,64 @@
   <para>
    Performs a character set conversion on the string
    <parameter>str</parameter> from <parameter>in_charset</parameter>
-   to <parameter>out_charset</parameter>. Returns the converted
-   string or &false; on failure.
+   to <parameter>out_charset</parameter>.
   </para>
-  <para>If you append the string <literal>//TRANSLIT</literal> to
-   <parameter>out_charset</parameter> transliteration is activated. This
-   means that when a character can't be represented in the target charset,
-   it can be approximated through one or several similarly looking
-   characters. If you append the string <literal>//IGNORE</literal>,
-   characters that cannot be represented in the target charset are silently
-   discarded. Otherwise, <parameter>str</parameter> is cut from the first
-   illegal character.
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  <para>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>in_charset</parameter></term>
+     <listitem>
+      <para>
+       The input charset.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>out_charset</parameter></term>
+     <listitem>
+      <para>
+       The output charset.
+      </para>
+      <para>
+       If you append the string <literal>//TRANSLIT</literal> to
+       <parameter>out_charset</parameter> transliteration is activated. This
+       means that when a character can't be represented in the target charset,
+       it can be approximated through one or several similarly looking
+       characters. If you append the string <literal>//IGNORE</literal>,
+       characters that cannot be represented in the target charset are silently
+       discarded. Otherwise, <parameter>str</parameter> is cut from the first
+       illegal character.
+      </para>
+     </listitem>
+    </varlistentry>
+    <varlistentry>
+     <term><parameter>str</parameter></term>
+     <listitem>
+      <para>
+       The string to be converted.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   Returns the converted string or &false; on failure.
   </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
   <para>
    <example>
-    <title><function>iconv</function> example:</title>
+    <title><function>iconv</function> example</title>
     <programlisting role="php">
 <![CDATA[
 <?php
@@ -41,6 +85,7 @@
    </example>
   </para>
  </refsect1>
+
 </refentry>
 
 <!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/iconv/functions/ob-iconv-handler.xml?r1=1.6&r2=1.7&diff_format=u
Index: phpdoc/en/reference/iconv/functions/ob-iconv-handler.xml
diff -u phpdoc/en/reference/iconv/functions/ob-iconv-handler.xml:1.6 
phpdoc/en/reference/iconv/functions/ob-iconv-handler.xml:1.7
--- phpdoc/en/reference/iconv/functions/ob-iconv-handler.xml:1.6        Sat Feb 
 3 05:34:30 2007
+++ phpdoc/en/reference/iconv/functions/ob-iconv-handler.xml    Sat Feb  3 
05:35:03 2007
@@ -1,46 +1,74 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <refentry id="function.ob-iconv-handler">
  <refnamediv>
   <refname>ob_iconv_handler</refname>
   <refpurpose>Convert character encoding as output buffer handler</refpurpose>
  </refnamediv>
- <refsect1>
-  <title>Description</title>
+ 
+ <refsect1 role="description">
+  &reftitle.description;
   <methodsynopsis>
    <type>string</type><methodname>ob_iconv_handler</methodname>
    
<methodparam><type>string</type><parameter>contents</parameter></methodparam>
    <methodparam><type>int</type><parameter>status</parameter></methodparam>
   </methodsynopsis>
   <para>
-   It converts the string encoded in
-   <parameter>internal_encoding</parameter> to
+   Converts the string encoded in <parameter>internal_encoding</parameter> to
    <parameter>output_encoding</parameter>.
   </para>
   <para>
-   <parameter>internal_encoding</parameter> and
-   <parameter>output_encoding</parameter> should be defined
-   by <function>iconv_set_encoding</function> or in the
-   configuration file &php.ini;.
+   <parameter>internal_encoding</parameter> and 
+   <parameter>output_encoding</parameter> should be defined in the &php.ini;
+   file or in <function>iconv_set_encoding</function>.
   </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  <para>
+   See <function>ob_start</function> for information about this handler
+   parameters.
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   See <function>ob_start</function> for information about this handler
+   return values.
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
   <para>
    <example>
     <title><function>ob_iconv_handler</function> example:</title>
     <programlisting role="php">
 <![CDATA[
 <?php
+iconv_set_encoding("internal_encoding", "UTF-8");
+iconv_set_encoding("output_encoding", "ISO-8859-1");
 ob_start("ob_iconv_handler"); // start output buffering
 ?>
 ]]>
     </programlisting>
    </example>
   </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
   <para>
-   See also <function>iconv_get_encoding</function>,
-   <function>iconv_set_encoding</function> and
-   <link linkend="ref.outcontrol">output-control functions</link>.
+   <simplelist>
+    <member><function>iconv_get_encoding</function></member>
+    <member><function>iconv_set_encoding</function></member>
+    <member><link linkend="ref.outcontrol">output-control 
functions</link></member>
+   </simplelist>
   </para>
  </refsect1>
+
 </refentry>
 
 <!-- Keep this comment at the end of the file

Reply via email to