cvs: phpdoc /en/reference/mbstring/functions mb-convert-case.xml mb-convert-encoding.xml mb-convert-kana.xml mb-convert-variables.xml
mb-decode-numericentity.xml mb-detect-encoding.xml mb-detect-order.xml mb-encode-mimeheader.xml mb-encode-numericentity.xml mb-internal-encoding.xml
mb-output-handler.xml mb-preferred-mime-name.xml mb-strimwidth.xml mb-strtolower.xml mb-strtoupper.xml mb-substitute-character.xml
| From: | Mehdi Achour | Date: | Wed, 16 Jul 2003 17:16:02 +0000 |
| Subject: | cvs: phpdoc /en/reference/mbstring/functions mb-convert-case.xml mb-convert-encoding.xml mb-convert-kana.xml mb-convert-variables.xml mb-decode-numericentity.xml mb-detect-encoding.xml mb-detect-order.xml mb-encode-mimeheader.xml mb-encode-numericentity.xml mb-internal-encoding.xml mb-output-handler.xml mb-preferred-mime-name.xml mb-strimwidth.xml mb-strtolower.xml mb-strtoupper.xml mb-substitute-character.xml |
||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969355296@lists.php.net to get a copy of this message | ||
didou Wed Jul 16 13:16:02 2003 EDT
Modified files:
/phpdoc/en/reference/mbstring/functions mb-convert-case.xml
mb-convert-encoding.xml
mb-convert-kana.xml
mb-convert-variables.xml
mb-decode-numericentity.xml
mb-detect-encoding.xml
mb-detect-order.xml
mb-encode-mimeheader.xml
mb-encode-numericentity.xml
mb-internal-encoding.xml
mb-output-handler.xml
mb-preferred-mime-name.xml
mb-strimwidth.xml
mb-strtolower.xml
mb-strtoupper.xml
mb-substitute-character.xml
Log:
adding PHP tags in the examples
Index: phpdoc/en/reference/mbstring/functions/mb-convert-case.xml diff -u phpdoc/en/reference/mbstring/functions/mb-convert-case.xml:1.3 phpdoc/en/reference/mbstring/functions/mb-convert-case.xml:1.4 --- phpdoc/en/reference/mbstring/functions/mb-convert-case.xml:1.3 Tue Dec 10 07:34:58 2002 +++ phpdoc/en/reference/mbstring/functions/mb-convert-case.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.mb-convert-case"> <refnamediv> <refname>mb_convert_case</refname> @@ -42,21 +42,26 @@ For more information about the Unicode properties, please see <ulink url="&url.unicode.reports;">&url.unicode.reports;</ulink>. </para> - <example> - <title><function>mb_convert_case</function> example</title> - <programlisting role="php"> + <para> + <example> + <title><function>mb_convert_case</function> example</title> + <programlisting role="php"> <![CDATA[ +<?php $str = "mary had a Little lamb and she loved it so"; $str = mb_convert_case($str, MB_CASE_UPPER, "UTF-8"); print $str; # Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO $str = mb_convert_case($str, MB_CASE_TITLE, "UTF-8"); print $str; # Prints Mary Had A Little Lamb And She Loved It So +?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> See also <function>mb_strtolower</function>, - <function>mb_strtoupper</function>, <function>strtolower</function>, + <function>mb_strtoupper</function>, + <function>strtolower</function> and <function>strtoupper</function>. </para> </refsect1> Index: phpdoc/en/reference/mbstring/functions/mb-convert-encoding.xml diff -u phpdoc/en/reference/mbstring/functions/mb-convert-encoding.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-convert-encoding.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-convert-encoding.xml:1.2 Wed Apr 17 02:39:56 2002 +++ phpdoc/en/reference/mbstring/functions/mb-convert-encoding.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-convert-encoding"> <refnamediv> @@ -34,6 +34,7 @@ <title><function>mb_convert_encoding</function> example</title> <programlisting role="php"> <![CDATA[ +<?php /* Convert internal character encoding to SJIS */ $str = mb_convert_encoding($str, "SJIS"); @@ -45,12 +46,13 @@ /* "auto" is expanded to "ASCII,JIS,UTF-8,EUC-JP,SJIS" */ $str = mb_convert_encoding($str, "EUC-JP", "auto"); +?> ]]> </programlisting> </example> </para> <para> - See also: <function>mb_detect_order</function>. + See also <function>mb_detect_order</function>. </para> </refsect1> </refentry> Index: phpdoc/en/reference/mbstring/functions/mb-convert-kana.xml diff -u phpdoc/en/reference/mbstring/functions/mb-convert-kana.xml:1.3 phpdoc/en/reference/mbstring/functions/mb-convert-kana.xml:1.4 --- phpdoc/en/reference/mbstring/functions/mb-convert-kana.xml:1.3 Fri Dec 20 10:58:49 2002 +++ phpdoc/en/reference/mbstring/functions/mb-convert-kana.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-convert-kana"> <refnamediv> @@ -63,12 +63,14 @@ <title><function>mb_convert_kana</function> example</title> <programlisting role="php"> <![CDATA[ +<?php /* Convert all "kana" to "zen-kaku" "kata-kana" */ $str = mb_convert_kana($str, "KVC"); /* Convert "han-kaku" "kata-kana" to "zen-kaku" "kata-kana" and "zen-kaku" alpha-numeric to "han-kaku" */ $str = mb_convert_kana($str, "KVa"); +?> ]]> </programlisting> </example> Index: phpdoc/en/reference/mbstring/functions/mb-convert-variables.xml diff -u phpdoc/en/reference/mbstring/functions/mb-convert-variables.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-convert-variables.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-convert-variables.xml:1.2 Wed Apr 17 02:39:56 2002 +++ phpdoc/en/reference/mbstring/functions/mb-convert-variables.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-convert-variables"> <refnamediv> @@ -45,9 +45,11 @@ <title><function>mb_convert_variables</function> example</title> <programlisting role="php"> <![CDATA[ +<?php /* Convert variables $post1, $post2 to internal encoding */ $interenc = mb_internal_encoding(); $inputenc = mb_convert_variables($interenc, "ASCII,UTF-8,SJIS-win", $post1, $post2); +?> ]]> </programlisting> </example> Index: phpdoc/en/reference/mbstring/functions/mb-decode-numericentity.xml diff -u phpdoc/en/reference/mbstring/functions/mb-decode-numericentity.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-decode-numericentity.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-decode-numericentity.xml:1.2 Wed Apr 17 02:39:56 2002 +++ phpdoc/en/reference/mbstring/functions/mb-decode-numericentity.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-decode-numericentity"> <refnamediv> @@ -47,7 +47,7 @@ </example> </para> <para> - See also: <function>mb_encode_numericentity</function>. + See also <function>mb_encode_numericentity</function>. </para> </refsect1> </refentry> Index: phpdoc/en/reference/mbstring/functions/mb-detect-encoding.xml diff -u phpdoc/en/reference/mbstring/functions/mb-detect-encoding.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-detect-encoding.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-detect-encoding.xml:1.2 Wed Apr 17 02:39:56 2002 +++ phpdoc/en/reference/mbstring/functions/mb-detect-encoding.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-detect-encoding"> <refnamediv> @@ -32,6 +32,7 @@ <title><function>mb_detect_encoding</function> example</title> <programlisting role="php"> <![CDATA[ +<?php /* Detect character encoding with current detect_order */ echo mb_detect_encoding($str); @@ -46,12 +47,13 @@ $ary[] = "JIS"; $ary[] = "EUC-JP"; echo mb_detect_encoding($str, $ary); +?> ]]> </programlisting> </example> </para> <para> - See also: <function>mb_detect_order</function>. + See also <function>mb_detect_order</function>. </para> </refsect1> </refentry> Index: phpdoc/en/reference/mbstring/functions/mb-detect-order.xml diff -u phpdoc/en/reference/mbstring/functions/mb-detect-order.xml:1.3 phpdoc/en/reference/mbstring/functions/mb-detect-order.xml:1.4 --- phpdoc/en/reference/mbstring/functions/mb-detect-order.xml:1.3 Sun Jun 15 06:17:40 2003 +++ phpdoc/en/reference/mbstring/functions/mb-detect-order.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-detect-order"> <refnamediv> @@ -76,6 +76,7 @@ <title><function>mb_detect_order</function> examples</title> <programlisting role="php"> <![CDATA[ +<?php /* Set detection order by enumerated list */ mb_detect_order("eucjp-win,sjis-win,UTF-8"); @@ -87,6 +88,7 @@ /* Display current detection order */ echo implode(", ", mb_detect_order()); +?> ]]> </programlisting> </example> @@ -94,7 +96,7 @@ <para> See also <function>mb_internal_encoding</function>, <function>mb_http_input</function>, - <function>mb_http_output</function> + <function>mb_http_output</function> and <function>mb_send_mail</function>. </para> </refsect1> Index: phpdoc/en/reference/mbstring/functions/mb-encode-mimeheader.xml diff -u phpdoc/en/reference/mbstring/functions/mb-encode-mimeheader.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-encode-mimeheader.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-encode-mimeheader.xml:1.2 Wed Apr 17 02:39:57 2002 +++ phpdoc/en/reference/mbstring/functions/mb-encode-mimeheader.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-encode-mimeheader"> <refnamediv> @@ -39,11 +39,13 @@ <title><function>mb_convert_kana</function> example</title> <programlisting role="php"> <![CDATA[ +<?php $name = ""; // kanji $mbox = "kru"; $doma = "gtinn.mon"; $addr = mb_encode_mimeheader($name, "UTF-7", "Q") . " <" . $mbox . "@" . $doma . ">"; echo $addr; +?> ]]> </programlisting> </example> Index: phpdoc/en/reference/mbstring/functions/mb-encode-numericentity.xml diff -u phpdoc/en/reference/mbstring/functions/mb-encode-numericentity.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-encode-numericentity.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-encode-numericentity.xml:1.2 Wed Apr 17 02:39:57 2002 +++ phpdoc/en/reference/mbstring/functions/mb-encode-numericentity.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-encode-numericentity"> <refnamediv> @@ -53,6 +53,7 @@ </title> <programlisting role="php"> <![CDATA[ +<?php /* Convert Left side of ISO-8859-1 to HTML numeric character reference */ $convmap = array(0x80, 0xff, 0, 0xff); $str = mb_encode_numericentity($str, $convmap, "ISO-8859-1"); @@ -71,12 +72,13 @@ 0xe2f0, 0xe32e, 0x1150, 0xffff, 0xe32f, 0xe3ab, 0x1151, 0xffff ); $str = mb_encode_numericentity($str, $convmap, "sjis-win"); +?> ]]> </programlisting> </example> </para> <para> - See also: <function>mb_decode_numericentity</function>. + See also <function>mb_decode_numericentity</function>. </para> </refsect1> </refentry> Index: phpdoc/en/reference/mbstring/functions/mb-internal-encoding.xml diff -u phpdoc/en/reference/mbstring/functions/mb-internal-encoding.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-internal-encoding.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-internal-encoding.xml:1.2 Wed Apr 17 02:39:59 2002 +++ phpdoc/en/reference/mbstring/functions/mb-internal-encoding.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-internal-encoding"> <refnamediv> @@ -40,18 +40,20 @@ <title><function>mb_internal_encoding</function> example</title> <programlisting role="php"> <![CDATA[ +<?php /* Set internal character encoding to UTF-8 */ mb_internal_encoding("UTF-8"); /* Display current internal character encoding */ echo mb_internal_encoding(); +?> ]]> </programlisting> </example> </para> <para> See also <function>mb_http_input</function>, - <function>mb_http_output</function>, + <function>mb_http_output</function> and <function>mb_detect_order</function>. </para> </refsect1> Index: phpdoc/en/reference/mbstring/functions/mb-output-handler.xml diff -u phpdoc/en/reference/mbstring/functions/mb-output-handler.xml:1.3 phpdoc/en/reference/mbstring/functions/mb-output-handler.xml:1.4 --- phpdoc/en/reference/mbstring/functions/mb-output-handler.xml:1.3 Sun Nov 3 07:31:01 2002 +++ phpdoc/en/reference/mbstring/functions/mb-output-handler.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-output-handler"> <refnamediv> @@ -21,7 +21,7 @@ function. <function>mb_output_handler</function> converts characters in output buffer from internal character encoding to HTTP output character encoding. - </para> + </para> <para> 4.1.0 or later version, this hanlder adds charset HTTP header when following conditions are met: @@ -56,33 +56,35 @@ <title><function>mb_output_handler</function> example</title> <programlisting role="php"> <![CDATA[ +<?php mb_http_output("UTF-8"); ob_start("mb_output_handler"); +?> ]]> </programlisting> </example> </para> <note> - <para> - If you want to output some binary data such as image from PHP - script with PHP 4.3.0 or later, Content-Type: header must be send - using <function>header</function> before any binary data was send - to client (e.g. header("Content-Type: image/png")). - If Content-Type: header was send, output character encoding - conversion will not be performed. - </para> - <para> - Note that if 'Content-Type: text/*' was send using - <function>header</function>, the sending data is regarded as text, - encoding conversion will be performed using character encoding - settings. - </para> - <para> - If you want to output some binary data such as image from PHP - script with PHP 4.2.x or earlier, you must set output encoding to - "pass" using <function>mb_http_output</function>. - </para> - </note> + <para> + If you want to output some binary data such as image from PHP + script with PHP 4.3.0 or later, Content-Type: header must be send + using <function>header</function> before any binary data was send + to client (e.g. header("Content-Type: image/png")). + If Content-Type: header was send, output character encoding + conversion will not be performed. + </para> + <para> + Note that if 'Content-Type: text/*' was send using + <function>header</function>, the sending data is regarded as text, + encoding conversion will be performed using character encoding + settings. + </para> + <para> + If you want to output some binary data such as image from PHP + script with PHP 4.2.x or earlier, you must set output encoding to + "pass" using <function>mb_http_output</function>. + </para> + </note> <para> See also <function>ob_start</function>. </para> Index: phpdoc/en/reference/mbstring/functions/mb-preferred-mime-name.xml diff -u phpdoc/en/reference/mbstring/functions/mb-preferred-mime-name.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-preferred-mime-name.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-preferred-mime-name.xml:1.2 Wed Apr 17 02:39:59 2002 +++ phpdoc/en/reference/mbstring/functions/mb-preferred-mime-name.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-preferred-mime-name"> <refnamediv> @@ -23,10 +23,12 @@ <title><function>mb_preferred_mime_string</function> example</title> <programlisting role="php"> <![CDATA[ +<?php $outputenc = "sjis-win"; mb_http_output($outputenc); ob_start("mb_output_handler"); header("Content-Type: text/html; charset=" . mb_preferred_mime_name($outputenc)); +?> ]]> </programlisting> </example> Index: phpdoc/en/reference/mbstring/functions/mb-strimwidth.xml diff -u phpdoc/en/reference/mbstring/functions/mb-strimwidth.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-strimwidth.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-strimwidth.xml:1.2 Wed Apr 17 02:40:00 2002 +++ phpdoc/en/reference/mbstring/functions/mb-strimwidth.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-strimwidth"> <refnamediv> @@ -42,13 +42,15 @@ <title><function>mb_strimwidth</function> example</title> <programlisting role="php"> <![CDATA[ +<?php $str = mb_strimwidth($str, 0, 40, "..>"); +?> ]]> </programlisting> </example> </para> <para> - See also: <function>mb_strwidth</function>, + See also <function>mb_strwidth</function> and <function>mb_internal_encoding</function>. </para> </refsect1> Index: phpdoc/en/reference/mbstring/functions/mb-strtolower.xml diff -u phpdoc/en/reference/mbstring/functions/mb-strtolower.xml:1.3 phpdoc/en/reference/mbstring/functions/mb-strtolower.xml:1.4 --- phpdoc/en/reference/mbstring/functions/mb-strtolower.xml:1.3 Tue Dec 10 07:34:58 2002 +++ phpdoc/en/reference/mbstring/functions/mb-strtolower.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.mb-strtolower"> <refnamediv> <refname>mb_strtolower</refname> @@ -31,19 +31,24 @@ of this function is not affected by locale settings and it can convert any characters that have 'alphabetic' property, such as A-umlaut (Ä). </para> - <example> - <title><function>mb_strtolower</function> example</title> - <programlisting role="php"> + <para> + <example> + <title><function>mb_strtolower</function> example</title> + <programlisting role="php"> <![CDATA[ +<?php $str = "Mary Had A Little Lamb and She LOVED It So"; $str = mb_strtolower($str); print $str; # Prints mary had a little lamb and she loved it so +?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> See also <function>strtolower</function>, - <function>mb_strtoupper</function>, <function>mb_convert_case</function>. + <function>mb_strtoupper</function> and + <function>mb_convert_case</function>. </para> </refsect1> </refentry> Index: phpdoc/en/reference/mbstring/functions/mb-strtoupper.xml diff -u phpdoc/en/reference/mbstring/functions/mb-strtoupper.xml:1.3 phpdoc/en/reference/mbstring/functions/mb-strtoupper.xml:1.4 --- phpdoc/en/reference/mbstring/functions/mb-strtoupper.xml:1.3 Tue Dec 10 07:34:58 2002 +++ phpdoc/en/reference/mbstring/functions/mb-strtoupper.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.mb-strtoupper"> <refnamediv> <refname>mb_strtoupper</refname> @@ -31,19 +31,24 @@ For more information about the Unicode properties, please see <ulink url="&url.unicode.reports;">&url.unicode.reports;</ulink>. </para> - <example> - <title><function>mb_strtoupper</function> example</title> - <programlisting role="php"> + <para> + <example> + <title><function>mb_strtoupper</function> example</title> + <programlisting role="php"> <![CDATA[ +<?php $str = "Mary Had A Little Lamb and She LOVED It So"; $str = mb_strtoupper($str); print $str; # Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO +?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> See also <function>strtoupper</function>, - <function>mb_strtolower</function>, <function>mb_convert_case</function>. + <function>mb_strtolower</function> and + <function>mb_convert_case</function>. </para> </refsect1> </refentry> Index: phpdoc/en/reference/mbstring/functions/mb-substitute-character.xml diff -u phpdoc/en/reference/mbstring/functions/mb-substitute-character.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-substitute-character.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-substitute-character.xml:1.2 Wed Apr 17 02:40:00 2002 +++ phpdoc/en/reference/mbstring/functions/mb-substitute-character.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-substitute-character"> <refnamediv> @@ -52,6 +52,7 @@ <title><function>mb_substitute_character</function> example</title> <programlisting role="php"> <![CDATA[ +<?php /* Set with Unicode U+3013 (GETA MARK) */ mb_substitute_character(0x3013); @@ -60,6 +61,7 @@ /* Display current setting */ echo mb_substitute_character(); +?> ]]> </programlisting> </example>
Index: phpdoc/en/reference/mbstring/functions/mb-convert-case.xml diff -u phpdoc/en/reference/mbstring/functions/mb-convert-case.xml:1.3 phpdoc/en/reference/mbstring/functions/mb-convert-case.xml:1.4 --- phpdoc/en/reference/mbstring/functions/mb-convert-case.xml:1.3 Tue Dec 10 07:34:58 2002 +++ phpdoc/en/reference/mbstring/functions/mb-convert-case.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.mb-convert-case"> <refnamediv> <refname>mb_convert_case</refname> @@ -42,21 +42,26 @@ For more information about the Unicode properties, please see <ulink url="&url.unicode.reports;">&url.unicode.reports;</ulink>. </para> - <example> - <title><function>mb_convert_case</function> example</title> - <programlisting role="php"> + <para> + <example> + <title><function>mb_convert_case</function> example</title> + <programlisting role="php"> <![CDATA[ +<?php $str = "mary had a Little lamb and she loved it so"; $str = mb_convert_case($str, MB_CASE_UPPER, "UTF-8"); print $str; # Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO $str = mb_convert_case($str, MB_CASE_TITLE, "UTF-8"); print $str; # Prints Mary Had A Little Lamb And She Loved It So +?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> See also <function>mb_strtolower</function>, - <function>mb_strtoupper</function>, <function>strtolower</function>, + <function>mb_strtoupper</function>, + <function>strtolower</function> and <function>strtoupper</function>. </para> </refsect1> Index: phpdoc/en/reference/mbstring/functions/mb-convert-encoding.xml diff -u phpdoc/en/reference/mbstring/functions/mb-convert-encoding.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-convert-encoding.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-convert-encoding.xml:1.2 Wed Apr 17 02:39:56 2002 +++ phpdoc/en/reference/mbstring/functions/mb-convert-encoding.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-convert-encoding"> <refnamediv> @@ -34,6 +34,7 @@ <title><function>mb_convert_encoding</function> example</title> <programlisting role="php"> <![CDATA[ +<?php /* Convert internal character encoding to SJIS */ $str = mb_convert_encoding($str, "SJIS"); @@ -45,12 +46,13 @@ /* "auto" is expanded to "ASCII,JIS,UTF-8,EUC-JP,SJIS" */ $str = mb_convert_encoding($str, "EUC-JP", "auto"); +?> ]]> </programlisting> </example> </para> <para> - See also: <function>mb_detect_order</function>. + See also <function>mb_detect_order</function>. </para> </refsect1> </refentry> Index: phpdoc/en/reference/mbstring/functions/mb-convert-kana.xml diff -u phpdoc/en/reference/mbstring/functions/mb-convert-kana.xml:1.3 phpdoc/en/reference/mbstring/functions/mb-convert-kana.xml:1.4 --- phpdoc/en/reference/mbstring/functions/mb-convert-kana.xml:1.3 Fri Dec 20 10:58:49 2002 +++ phpdoc/en/reference/mbstring/functions/mb-convert-kana.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-convert-kana"> <refnamediv> @@ -63,12 +63,14 @@ <title><function>mb_convert_kana</function> example</title> <programlisting role="php"> <![CDATA[ +<?php /* Convert all "kana" to "zen-kaku" "kata-kana" */ $str = mb_convert_kana($str, "KVC"); /* Convert "han-kaku" "kata-kana" to "zen-kaku" "kata-kana" and "zen-kaku" alpha-numeric to "han-kaku" */ $str = mb_convert_kana($str, "KVa"); +?> ]]> </programlisting> </example> Index: phpdoc/en/reference/mbstring/functions/mb-convert-variables.xml diff -u phpdoc/en/reference/mbstring/functions/mb-convert-variables.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-convert-variables.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-convert-variables.xml:1.2 Wed Apr 17 02:39:56 2002 +++ phpdoc/en/reference/mbstring/functions/mb-convert-variables.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-convert-variables"> <refnamediv> @@ -45,9 +45,11 @@ <title><function>mb_convert_variables</function> example</title> <programlisting role="php"> <![CDATA[ +<?php /* Convert variables $post1, $post2 to internal encoding */ $interenc = mb_internal_encoding(); $inputenc = mb_convert_variables($interenc, "ASCII,UTF-8,SJIS-win", $post1, $post2); +?> ]]> </programlisting> </example> Index: phpdoc/en/reference/mbstring/functions/mb-decode-numericentity.xml diff -u phpdoc/en/reference/mbstring/functions/mb-decode-numericentity.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-decode-numericentity.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-decode-numericentity.xml:1.2 Wed Apr 17 02:39:56 2002 +++ phpdoc/en/reference/mbstring/functions/mb-decode-numericentity.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-decode-numericentity"> <refnamediv> @@ -47,7 +47,7 @@ </example> </para> <para> - See also: <function>mb_encode_numericentity</function>. + See also <function>mb_encode_numericentity</function>. </para> </refsect1> </refentry> Index: phpdoc/en/reference/mbstring/functions/mb-detect-encoding.xml diff -u phpdoc/en/reference/mbstring/functions/mb-detect-encoding.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-detect-encoding.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-detect-encoding.xml:1.2 Wed Apr 17 02:39:56 2002 +++ phpdoc/en/reference/mbstring/functions/mb-detect-encoding.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-detect-encoding"> <refnamediv> @@ -32,6 +32,7 @@ <title><function>mb_detect_encoding</function> example</title> <programlisting role="php"> <![CDATA[ +<?php /* Detect character encoding with current detect_order */ echo mb_detect_encoding($str); @@ -46,12 +47,13 @@ $ary[] = "JIS"; $ary[] = "EUC-JP"; echo mb_detect_encoding($str, $ary); +?> ]]> </programlisting> </example> </para> <para> - See also: <function>mb_detect_order</function>. + See also <function>mb_detect_order</function>. </para> </refsect1> </refentry> Index: phpdoc/en/reference/mbstring/functions/mb-detect-order.xml diff -u phpdoc/en/reference/mbstring/functions/mb-detect-order.xml:1.3 phpdoc/en/reference/mbstring/functions/mb-detect-order.xml:1.4 --- phpdoc/en/reference/mbstring/functions/mb-detect-order.xml:1.3 Sun Jun 15 06:17:40 2003 +++ phpdoc/en/reference/mbstring/functions/mb-detect-order.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-detect-order"> <refnamediv> @@ -76,6 +76,7 @@ <title><function>mb_detect_order</function> examples</title> <programlisting role="php"> <![CDATA[ +<?php /* Set detection order by enumerated list */ mb_detect_order("eucjp-win,sjis-win,UTF-8"); @@ -87,6 +88,7 @@ /* Display current detection order */ echo implode(", ", mb_detect_order()); +?> ]]> </programlisting> </example> @@ -94,7 +96,7 @@ <para> See also <function>mb_internal_encoding</function>, <function>mb_http_input</function>, - <function>mb_http_output</function> + <function>mb_http_output</function> and <function>mb_send_mail</function>. </para> </refsect1> Index: phpdoc/en/reference/mbstring/functions/mb-encode-mimeheader.xml diff -u phpdoc/en/reference/mbstring/functions/mb-encode-mimeheader.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-encode-mimeheader.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-encode-mimeheader.xml:1.2 Wed Apr 17 02:39:57 2002 +++ phpdoc/en/reference/mbstring/functions/mb-encode-mimeheader.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-encode-mimeheader"> <refnamediv> @@ -39,11 +39,13 @@ <title><function>mb_convert_kana</function> example</title> <programlisting role="php"> <![CDATA[ +<?php $name = ""; // kanji $mbox = "kru"; $doma = "gtinn.mon"; $addr = mb_encode_mimeheader($name, "UTF-7", "Q") . " <" . $mbox . "@" . $doma . ">"; echo $addr; +?> ]]> </programlisting> </example> Index: phpdoc/en/reference/mbstring/functions/mb-encode-numericentity.xml diff -u phpdoc/en/reference/mbstring/functions/mb-encode-numericentity.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-encode-numericentity.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-encode-numericentity.xml:1.2 Wed Apr 17 02:39:57 2002 +++ phpdoc/en/reference/mbstring/functions/mb-encode-numericentity.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-encode-numericentity"> <refnamediv> @@ -53,6 +53,7 @@ </title> <programlisting role="php"> <![CDATA[ +<?php /* Convert Left side of ISO-8859-1 to HTML numeric character reference */ $convmap = array(0x80, 0xff, 0, 0xff); $str = mb_encode_numericentity($str, $convmap, "ISO-8859-1"); @@ -71,12 +72,13 @@ 0xe2f0, 0xe32e, 0x1150, 0xffff, 0xe32f, 0xe3ab, 0x1151, 0xffff ); $str = mb_encode_numericentity($str, $convmap, "sjis-win"); +?> ]]> </programlisting> </example> </para> <para> - See also: <function>mb_decode_numericentity</function>. + See also <function>mb_decode_numericentity</function>. </para> </refsect1> </refentry> Index: phpdoc/en/reference/mbstring/functions/mb-internal-encoding.xml diff -u phpdoc/en/reference/mbstring/functions/mb-internal-encoding.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-internal-encoding.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-internal-encoding.xml:1.2 Wed Apr 17 02:39:59 2002 +++ phpdoc/en/reference/mbstring/functions/mb-internal-encoding.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-internal-encoding"> <refnamediv> @@ -40,18 +40,20 @@ <title><function>mb_internal_encoding</function> example</title> <programlisting role="php"> <![CDATA[ +<?php /* Set internal character encoding to UTF-8 */ mb_internal_encoding("UTF-8"); /* Display current internal character encoding */ echo mb_internal_encoding(); +?> ]]> </programlisting> </example> </para> <para> See also <function>mb_http_input</function>, - <function>mb_http_output</function>, + <function>mb_http_output</function> and <function>mb_detect_order</function>. </para> </refsect1> Index: phpdoc/en/reference/mbstring/functions/mb-output-handler.xml diff -u phpdoc/en/reference/mbstring/functions/mb-output-handler.xml:1.3 phpdoc/en/reference/mbstring/functions/mb-output-handler.xml:1.4 --- phpdoc/en/reference/mbstring/functions/mb-output-handler.xml:1.3 Sun Nov 3 07:31:01 2002 +++ phpdoc/en/reference/mbstring/functions/mb-output-handler.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-output-handler"> <refnamediv> @@ -21,7 +21,7 @@ function. <function>mb_output_handler</function> converts characters in output buffer from internal character encoding to HTTP output character encoding. - </para> + </para> <para> 4.1.0 or later version, this hanlder adds charset HTTP header when following conditions are met: @@ -56,33 +56,35 @@ <title><function>mb_output_handler</function> example</title> <programlisting role="php"> <![CDATA[ +<?php mb_http_output("UTF-8"); ob_start("mb_output_handler"); +?> ]]> </programlisting> </example> </para> <note> - <para> - If you want to output some binary data such as image from PHP - script with PHP 4.3.0 or later, Content-Type: header must be send - using <function>header</function> before any binary data was send - to client (e.g. header("Content-Type: image/png")). - If Content-Type: header was send, output character encoding - conversion will not be performed. - </para> - <para> - Note that if 'Content-Type: text/*' was send using - <function>header</function>, the sending data is regarded as text, - encoding conversion will be performed using character encoding - settings. - </para> - <para> - If you want to output some binary data such as image from PHP - script with PHP 4.2.x or earlier, you must set output encoding to - "pass" using <function>mb_http_output</function>. - </para> - </note> + <para> + If you want to output some binary data such as image from PHP + script with PHP 4.3.0 or later, Content-Type: header must be send + using <function>header</function> before any binary data was send + to client (e.g. header("Content-Type: image/png")). + If Content-Type: header was send, output character encoding + conversion will not be performed. + </para> + <para> + Note that if 'Content-Type: text/*' was send using + <function>header</function>, the sending data is regarded as text, + encoding conversion will be performed using character encoding + settings. + </para> + <para> + If you want to output some binary data such as image from PHP + script with PHP 4.2.x or earlier, you must set output encoding to + "pass" using <function>mb_http_output</function>. + </para> + </note> <para> See also <function>ob_start</function>. </para> Index: phpdoc/en/reference/mbstring/functions/mb-preferred-mime-name.xml diff -u phpdoc/en/reference/mbstring/functions/mb-preferred-mime-name.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-preferred-mime-name.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-preferred-mime-name.xml:1.2 Wed Apr 17 02:39:59 2002 +++ phpdoc/en/reference/mbstring/functions/mb-preferred-mime-name.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-preferred-mime-name"> <refnamediv> @@ -23,10 +23,12 @@ <title><function>mb_preferred_mime_string</function> example</title> <programlisting role="php"> <![CDATA[ +<?php $outputenc = "sjis-win"; mb_http_output($outputenc); ob_start("mb_output_handler"); header("Content-Type: text/html; charset=" . mb_preferred_mime_name($outputenc)); +?> ]]> </programlisting> </example> Index: phpdoc/en/reference/mbstring/functions/mb-strimwidth.xml diff -u phpdoc/en/reference/mbstring/functions/mb-strimwidth.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-strimwidth.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-strimwidth.xml:1.2 Wed Apr 17 02:40:00 2002 +++ phpdoc/en/reference/mbstring/functions/mb-strimwidth.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-strimwidth"> <refnamediv> @@ -42,13 +42,15 @@ <title><function>mb_strimwidth</function> example</title> <programlisting role="php"> <![CDATA[ +<?php $str = mb_strimwidth($str, 0, 40, "..>"); +?> ]]> </programlisting> </example> </para> <para> - See also: <function>mb_strwidth</function>, + See also <function>mb_strwidth</function> and <function>mb_internal_encoding</function>. </para> </refsect1> Index: phpdoc/en/reference/mbstring/functions/mb-strtolower.xml diff -u phpdoc/en/reference/mbstring/functions/mb-strtolower.xml:1.3 phpdoc/en/reference/mbstring/functions/mb-strtolower.xml:1.4 --- phpdoc/en/reference/mbstring/functions/mb-strtolower.xml:1.3 Tue Dec 10 07:34:58 2002 +++ phpdoc/en/reference/mbstring/functions/mb-strtolower.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.mb-strtolower"> <refnamediv> <refname>mb_strtolower</refname> @@ -31,19 +31,24 @@ of this function is not affected by locale settings and it can convert any characters that have 'alphabetic' property, such as A-umlaut (Ä). </para> - <example> - <title><function>mb_strtolower</function> example</title> - <programlisting role="php"> + <para> + <example> + <title><function>mb_strtolower</function> example</title> + <programlisting role="php"> <![CDATA[ +<?php $str = "Mary Had A Little Lamb and She LOVED It So"; $str = mb_strtolower($str); print $str; # Prints mary had a little lamb and she loved it so +?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> See also <function>strtolower</function>, - <function>mb_strtoupper</function>, <function>mb_convert_case</function>. + <function>mb_strtoupper</function> and + <function>mb_convert_case</function>. </para> </refsect1> </refentry> Index: phpdoc/en/reference/mbstring/functions/mb-strtoupper.xml diff -u phpdoc/en/reference/mbstring/functions/mb-strtoupper.xml:1.3 phpdoc/en/reference/mbstring/functions/mb-strtoupper.xml:1.4 --- phpdoc/en/reference/mbstring/functions/mb-strtoupper.xml:1.3 Tue Dec 10 07:34:58 2002 +++ phpdoc/en/reference/mbstring/functions/mb-strtoupper.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="function.mb-strtoupper"> <refnamediv> <refname>mb_strtoupper</refname> @@ -31,19 +31,24 @@ For more information about the Unicode properties, please see <ulink url="&url.unicode.reports;">&url.unicode.reports;</ulink>. </para> - <example> - <title><function>mb_strtoupper</function> example</title> - <programlisting role="php"> + <para> + <example> + <title><function>mb_strtoupper</function> example</title> + <programlisting role="php"> <![CDATA[ +<?php $str = "Mary Had A Little Lamb and She LOVED It So"; $str = mb_strtoupper($str); print $str; # Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO +?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> See also <function>strtoupper</function>, - <function>mb_strtolower</function>, <function>mb_convert_case</function>. + <function>mb_strtolower</function> and + <function>mb_convert_case</function>. </para> </refsect1> </refentry> Index: phpdoc/en/reference/mbstring/functions/mb-substitute-character.xml diff -u phpdoc/en/reference/mbstring/functions/mb-substitute-character.xml:1.2 phpdoc/en/reference/mbstring/functions/mb-substitute-character.xml:1.3 --- phpdoc/en/reference/mbstring/functions/mb-substitute-character.xml:1.2 Wed Apr 17 02:40:00 2002 +++ phpdoc/en/reference/mbstring/functions/mb-substitute-character.xml Wed Jul 16 13:16:02 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- splitted from ./en/functions/mbstring.xml, last change in rev 1.1 --> <refentry id="function.mb-substitute-character"> <refnamediv> @@ -52,6 +52,7 @@ <title><function>mb_substitute_character</function> example</title> <programlisting role="php"> <![CDATA[ +<?php /* Set with Unicode U+3013 (GETA MARK) */ mb_substitute_character(0x3013); @@ -60,6 +61,7 @@ /* Display current setting */ echo mb_substitute_character(); +?> ]]> </programlisting> </example>