svn: /phpdoc/en/trunk/reference/mbstring/functions/ mb-convert-case.xml mb-strtolower.xml mb-strtoupper.xml

From: Date: Wed, 19 May 2010 09:44:27 +0000
Subject: svn: /phpdoc/en/trunk/reference/mbstring/functions/ mb-convert-case.xml mb-strtolower.xml mb-strtoupper.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6686@lists.php.net to get a copy of this message
aharvey Wed, 19 May 2010 09:44:27 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=299482 Log: Fix doc bug #51858 (mb_convert_case example is not the best) by adding some examples to the manual pages for mb_convert_case, mb_strtoupper and mb_strtolower that use multi-byte characters (specifically Greek). Bug: http://bugs.php.net/51858 (Assigned) mb_convert_case example is not the best Changed paths: U phpdoc/en/trunk/reference/mbstring/functions/mb-convert-case.xml U phpdoc/en/trunk/reference/mbstring/functions/mb-strtolower.xml U phpdoc/en/trunk/reference/mbstring/functions/mb-strtoupper.xml Modified: phpdoc/en/trunk/reference/mbstring/functions/mb-convert-case.xml =================================================================== --- phpdoc/en/trunk/reference/mbstring/functions/mb-convert-case.xml 2010-05-19 07:27:39 UTC (rev 299481) +++ phpdoc/en/trunk/reference/mbstring/functions/mb-convert-case.xml 2010-05-19 09:44:27 UTC (rev 299482) @@ -95,6 +95,23 @@ </programlisting> </example> </para> + + <para> + <example> + <title><function>mb_convert_case</function> example with non-Latin UTF-8 text</title> + <programlisting role="php"> +<![CDATA[ +<?php +$str = "Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός"; +$str = mb_convert_case($str, MB_CASE_UPPER, "UTF-8"); +echo $str; // Prints ΤΆΧΙΣΤΗ ΑΛΏΠΗΞ ΒΑΦΉΣ ΨΗΜΈΝΗ ΓΗ, ΔΡΑΣΚΕΛΊΖΕΙ ΥΠΈΡ ΝΩΘΡΟΎ ΚΥΝΌΣ +$str = mb_convert_case($str, MB_CASE_TITLE, "UTF-8"); +echo $str; // Prints Τάχιστη Αλώπηξ Βαφήσ Ψημένη Γη, Δρασκελίζει Υπέρ Νωθρού Κυνόσ +?> +]]> + </programlisting> + </example> + </para> </refsect1> <refsect1 role="seealso"> Modified: phpdoc/en/trunk/reference/mbstring/functions/mb-strtolower.xml =================================================================== --- phpdoc/en/trunk/reference/mbstring/functions/mb-strtolower.xml 2010-05-19 07:27:39 UTC (rev 299481) +++ phpdoc/en/trunk/reference/mbstring/functions/mb-strtolower.xml 2010-05-19 09:44:27 UTC (rev 299482) @@ -78,6 +78,21 @@ </programlisting> </example> </para> + + <para> + <example> + <title><function>mb_strtolower</function> example with non-Latin UTF-8 text</title> + <programlisting role="php"> +<![CDATA[ +<?php +$str = "Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός"; +$str = mb_strtolower($str, 'UTF-8'); +echo $str; // Prints τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός +?> +]]> + </programlisting> + </example> + </para> </refsect1> <refsect1 role="seealso"> Modified: phpdoc/en/trunk/reference/mbstring/functions/mb-strtoupper.xml =================================================================== --- phpdoc/en/trunk/reference/mbstring/functions/mb-strtoupper.xml 2010-05-19 07:27:39 UTC (rev 299481) +++ phpdoc/en/trunk/reference/mbstring/functions/mb-strtoupper.xml 2010-05-19 09:44:27 UTC (rev 299482) @@ -78,6 +78,21 @@ </programlisting> </example> </para> + + <para> + <example> + <title><function>mb_strtoupper</function> example with non-Latin UTF-8 text</title> + <programlisting role="php"> +<![CDATA[ +<?php +$str = "Τάχιστη αλώπηξ βαφής ψημένη γη, δρασκελίζει υπέρ νωθρού κυνός"; +$str = mb_strtoupper($str, 'UTF-8'); +echo $str; // Prints ΤΆΧΙΣΤΗ ΑΛΏΠΗΞ ΒΑΦΉΣ ΨΗΜΈΝΗ ΓΗ, ΔΡΑΣΚΕΛΊΖΕΙ ΥΠΈΡ ΝΩΘΡΟΎ ΚΥΝΌΣ +?> +]]> + </programlisting> + </example> + </para> </refsect1> <refsect1 role="seealso">

« previous php.doc.cvs (#6686) next »