cvs: phpdoc(REF_STRUCT_DEV) /en/reference/intl book.xml collator-constants.xml collator.xml configure.xml constants.xml locale-constants.xml
messageformatter.xml normalizer-constants.xml normalizer.xml numberformatter-constants.xml numberformatter.xml reference.xml
/en/reference/intl/collator collator-asort.xml collator-compare.xml collator-construct.xml collator-create.xml collator-get-attribute.xml
collator-get-error-code.xml collator-get-error-message.xml collator-get-locale.xml collator-get-strength.xml collator-set-attribute.xml
collator-set-strength.xml collator-sort-with-sort-keys.xml collator-sort.xml /en/reference/intl/functions intl-error-name.xml intl-get-error-code.xml
intl-get-error-message.xml intl-is-failure.xml /en/reference/intl/locale locale-compose-locale.xml locale-filter-matches.xml
locale-get-all-variants.xml locale-get-default.xml locale-get-display-language.xml locale-get-display-name.xml locale-get-display-region.xml
locale-get-display-sc! ript.xml locale-get-display-variant.xml locale-get-keywords.xml locale-get-primary-language.xml locale-get-region.xml
locale-get-script.xml locale-lookup.xml locale-parse-locale.xml locale-set-default.xml /en/reference/intl/messageformatter msgfmt-create.xml
msgfmt-format-message.xml msgfmt-format.xml msgfmt-get-error-code.xml msgfmt-get-error-message.xml msgfmt-get-locale.xml msgfmt-get-pattern.xml
msgfmt-parse-message.xml msgfmt-parse.xml msgfmt-set-pattern.xml /en/reference/intl/normalizer normalizer-is-normalized.xml normalizer-normalize.xml
/en/reference/intl/numberformatter numfmt-create.xml numfmt-format-currency.xml numfmt-format.xml numfmt-get-attribute.xml numfmt-get-error-code.xml
numfmt-get-error-message.xml numfmt-get-locale.xml numfmt-get-pattern.xml numfmt-get-symbol.xml numfmt-get-text-attribute.xml
numfmt-parse-currency.xml numfmt-parse.xml numfmt-set-attribute.xml numfmt-set-pattern.xml numfmt-set-symbol.xml numfmt-set-text-attribute.xml

From: Date: Thu, 06 Dec 2007 21:08:04 +0000
Subject: cvs: phpdoc(REF_STRUCT_DEV) /en/reference/intl book.xml collator-constants.xml collator.xml configure.xml constants.xml locale-constants.xml
messageformatter.xml normalizer-constants.xml normalizer.xml numberformatter-constants.xml numberformatter.xml reference.xml
/en/reference/intl/collator collator-asort.xml collator-compare.xml collator-construct.xml collator-create.xml collator-get-attribute.xml
collator-get-error-code.xml collator-get-error-message.xml collator-get-locale.xml collator-get-strength.xml collator-set-attribute.xml
collator-set-strength.xml collator-sort-with-sort-keys.xml collator-sort.xml /en/reference/intl/functions intl-error-name.xml intl-get-error-code.xml
intl-get-error-message.xml intl-is-failure.xml /en/reference/intl/locale locale-compose-locale.xml locale-filter-matches.xml
locale-get-all-variants.xml locale-get-default.xml locale-get-display-language.xml locale-get-display-name.xml locale-get-display-region.xml
locale-get-display-sc! ript.xml locale-get-display-variant.xml locale-get-keywords.xml locale-get-primary-language.xml locale-get-region.xml
locale-get-script.xml locale-lookup.xml locale-parse-locale.xml locale-set-default.xml /en/reference/intl/messageformatter msgfmt-create.xml
msgfmt-format-message.xml msgfmt-format.xml msgfmt-get-error-code.xml msgfmt-get-error-message.xml msgfmt-get-locale.xml msgfmt-get-pattern.xml
msgfmt-parse-message.xml msgfmt-parse.xml msgfmt-set-pattern.xml /en/reference/intl/normalizer normalizer-is-normalized.xml normalizer-normalize.xml
/en/reference/intl/numberformatter numfmt-create.xml numfmt-format-currency.xml numfmt-format.xml numfmt-get-attribute.xml numfmt-get-error-code.xml
numfmt-get-error-message.xml numfmt-get-locale.xml numfmt-get-pattern.xml numfmt-get-symbol.xml numfmt-get-text-attribute.xml
numfmt-parse-currency.xml numfmt-parse.xml numfmt-set-attribute.xml numfmt-set-pattern.xml numfmt-set-symbol.xml numfmt-set-text-attribute.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-538@lists.php.net to get a copy of this message
philip Thu Dec 6 21:08:04 2007 UTC Modified files: (Branch: REF_STRUCT_DEV) /phpdoc/en/reference/intl book.xml collator-constants.xml collator.xml configure.xml constants.xml locale-constants.xml messageformatter.xml normalizer-constants.xml normalizer.xml numberformatter-constants.xml numberformatter.xml reference.xml /phpdoc/en/reference/intl/collator collator-asort.xml collator-compare.xml collator-construct.xml collator-create.xml collator-get-attribute.xml collator-get-error-code.xml collator-get-error-message.xml collator-get-locale.xml collator-get-strength.xml collator-set-attribute.xml collator-set-strength.xml collator-sort-with-sort-keys.xml collator-sort.xml /phpdoc/en/reference/intl/functions intl-error-name.xml intl-get-error-code.xml intl-get-error-message.xml intl-is-failure.xml /phpdoc/en/reference/intl/locale locale-compose-locale.xml locale-filter-matches.xml locale-get-all-variants.xml locale-get-default.xml locale-get-display-language.xml locale-get-display-name.xml locale-get-display-region.xml locale-get-display-script.xml locale-get-display-variant.xml locale-get-keywords.xml locale-get-primary-language.xml locale-get-region.xml locale-get-script.xml locale-lookup.xml locale-parse-locale.xml locale-set-default.xml /phpdoc/en/reference/intl/messageformatter msgfmt-create.xml msgfmt-format-message.xml msgfmt-format.xml msgfmt-get-error-code.xml msgfmt-get-error-message.xml msgfmt-get-locale.xml msgfmt-get-pattern.xml msgfmt-parse-message.xml msgfmt-parse.xml msgfmt-set-pattern.xml /phpdoc/en/reference/intl/normalizer normalizer-is-normalized.xml normalizer-normalize.xml /phpdoc/en/reference/intl/numberformatter numfmt-create.xml numfmt-format-currency.xml numfmt-format.xml numfmt-get-attribute.xml numfmt-get-error-code.xml numfmt-get-error-message.xml numfmt-get-locale.xml numfmt-get-pattern.xml numfmt-get-symbol.xml numfmt-get-text-attribute.xml numfmt-parse-currency.xml numfmt-parse.xml numfmt-set-attribute.xml numfmt-set-pattern.xml numfmt-set-symbol.xml numfmt-set-text-attribute.xml Log: Updated whitespace, markup, a few typos, and such.

http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/book.xml?r1=1.1.2.3&r2=1.1.2.4&diff_format=u Index: phpdoc/en/reference/intl/book.xml diff -u phpdoc/en/reference/intl/book.xml:1.1.2.3 phpdoc/en/reference/intl/book.xml:1.1.2.4 --- phpdoc/en/reference/intl/book.xml:1.1.2.3 Thu Dec 6 20:12:16 2007 +++ phpdoc/en/reference/intl/book.xml Thu Dec 6 21:08:03 2007 @@ -1,8 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.3 $ --> +<!-- $Revision: 1.1.2.4 $ --> -<book xml:id="book.intl" xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<book xml:id="book.intl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Internationalization Functions</title> <titleabbrev>intl</titleabbrev> @@ -66,7 +65,7 @@ <para><link xlink:href="&url.icu.docs;">Miscellaneous ICU docs</link></para> </listitem> <listitem> - <para><link xlink:href="&url.icu.userguide;">ICU Userguide</link></para> + <para><link xlink:href="&url.icu.userguide;">ICU User Guide</link></para> </listitem> <listitem> <para><link xlink:href="&url.icu.uca;">Unicode Collation Algorithm</link></para> @@ -104,7 +103,7 @@ <para> Run: <screen> - <![CDATA[ +<![CDATA[ $ make install ]]> </screen> @@ -112,9 +111,9 @@ <para> Then enable the extension by adding the following line to [PHP] section of - your php.ini: + your &php.ini;: <screen> - <![CDATA[ +<![CDATA[ extension=intl.so ]]> </screen> @@ -128,13 +127,14 @@ <para> Run: <screen> - <![CDATA[ +<![CDATA[ $ make test ]]> </screen> </para> - <para>Note that the tests may fail if:</para> - + <para> + Note that the tests may fail if: + </para> <itemizedlist> <listitem> <para> @@ -187,9 +187,9 @@ <example> <title>Example of using the procedural API</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php -$coll = collator_create('en_US'); +$coll = collator_create('en_US'); $result = collator_compare($coll, "string#1", "string#2"); ?> ]]> @@ -199,10 +199,10 @@ <example> <title>Example of using the object-oriented API</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $coll = new Collator('en_US'); -$al = $coll->getLocaleByType(Locale::ACTUAL_LOCALE); +$al = $coll->getLocaleByType(Locale::ACTUAL_LOCALE); echo "Actual locale: $al\n"; $formatter = new NumberFormatter('en_US', NumberFormatter::DECIMAL); http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator-constants.xml?r1=1.1.2.3&r2=1.1.2.4&diff_format=u Index: phpdoc/en/reference/intl/collator-constants.xml diff -u phpdoc/en/reference/intl/collator-constants.xml:1.1.2.3 phpdoc/en/reference/intl/collator-constants.xml:1.1.2.4 --- phpdoc/en/reference/intl/collator-constants.xml:1.1.2.3 Thu Dec 6 20:12:48 2007 +++ phpdoc/en/reference/intl/collator-constants.xml Thu Dec 6 21:08:03 2007 @@ -1,8 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.1.2.3 $ --> -<section xml:id="intl.collator-constants" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<section xml:id="intl.collator-constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.4 $ --> &reftitle.constants; <para> <variablelist> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/collator.xml diff -u phpdoc/en/reference/intl/collator.xml:1.1.2.1 phpdoc/en/reference/intl/collator.xml:1.1.2.2 --- phpdoc/en/reference/intl/collator.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/collator.xml Thu Dec 6 21:08:03 2007 @@ -1,9 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> +<!-- $Revision: 1.1.2.2 $ --> -<reference xml:id="class.collator" xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:xi="http://www.w3.org/2001/XInclude"> +<reference xml:id="class.collator" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>The Collator class</title> <titleabbrev>Collator</titleabbrev> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/configure.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/configure.xml diff -u phpdoc/en/reference/intl/configure.xml:1.1.2.1 phpdoc/en/reference/intl/configure.xml:1.1.2.2 --- phpdoc/en/reference/intl/configure.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/configure.xml Thu Dec 6 21:08:03 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> +<!-- $Revision: 1.1.2.2 $ --> <section xml:id="intl.building" xmlns="http://docbook.org/ns/docbook"> <title>Building</title> @@ -10,7 +10,7 @@ <emphasis>/opt/icu/</emphasis>. Run the following commands: </para> <screen> - <![CDATA[ +<![CDATA[ $ /opt/php5/bin/phpize $ ./configure --with-php-config=/opt/php5/bin/php-config --with-icu-dir=/opt/icu $ make http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/constants.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/constants.xml diff -u phpdoc/en/reference/intl/constants.xml:1.1.2.1 phpdoc/en/reference/intl/constants.xml:1.1.2.2 --- phpdoc/en/reference/intl/constants.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/constants.xml Thu Dec 6 21:08:03 2007 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<appendix xml:id="intl.constants" xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<appendix xml:id="intl.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; &no.constants; </appendix> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale-constants.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale-constants.xml diff -u phpdoc/en/reference/intl/locale-constants.xml:1.1.2.1 phpdoc/en/reference/intl/locale-constants.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale-constants.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale-constants.xml Thu Dec 6 21:08:03 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> +<!-- $Revision: 1.1.2.2 $ --> <section xml:id="intl.locale-constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; @@ -46,7 +46,7 @@ These constants define how the Locales are parsed or composed. They should be used as keys in the argument array to <function>locale_compose</function> and are returned from <function>locale_parse</function> - as keys of the returned asoociative array. + as keys of the returned associative <type>array</type>. <variablelist> <varlistentry> <term> @@ -103,7 +103,7 @@ (<type>string</type>) </term> <listitem> - <simpara>Grandfatherd Language subtag</simpara> + <simpara>Grandfathered Language subtag</simpara> </listitem> </varlistentry> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/messageformatter.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/messageformatter.xml diff -u phpdoc/en/reference/intl/messageformatter.xml:1.1.2.1 phpdoc/en/reference/intl/messageformatter.xml:1.1.2.2 --- phpdoc/en/reference/intl/messageformatter.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/messageformatter.xml Thu Dec 6 21:08:03 2007 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<reference xml:id="class.messageformatter" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:xi="http://www.w3.org/2001/XInclude"> +<!-- $Revision: 1.1.2.2 $ --> +<reference xml:id="class.messageformatter" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>The MessageFormatter class</title> <titleabbrev>MessageFormatter</titleabbrev> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/normalizer-constants.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/normalizer-constants.xml diff -u phpdoc/en/reference/intl/normalizer-constants.xml:1.1.2.1 phpdoc/en/reference/intl/normalizer-constants.xml:1.1.2.2 --- phpdoc/en/reference/intl/normalizer-constants.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/normalizer-constants.xml Thu Dec 6 21:08:03 2007 @@ -1,8 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<section xml:id="intl.normalizer-constants" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<section xml:id="intl.normalizer-constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; <para> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/normalizer.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/normalizer.xml diff -u phpdoc/en/reference/intl/normalizer.xml:1.1.2.1 phpdoc/en/reference/intl/normalizer.xml:1.1.2.2 --- phpdoc/en/reference/intl/normalizer.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/normalizer.xml Thu Dec 6 21:08:03 2007 @@ -1,8 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<reference xml:id="class.normalizer" xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:xi="http://www.w3.org/2001/XInclude"> +<!-- $Revision: 1.1.2.2 $ --> +<reference xml:id="class.normalizer" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>The Normalizer class</title> <titleabbrev>Normalizer</titleabbrev> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter-constants.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter-constants.xml diff -u phpdoc/en/reference/intl/numberformatter-constants.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter-constants.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter-constants.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/numberformatter-constants.xml Thu Dec 6 21:08:03 2007 @@ -1,8 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<section xml:id="intl.numberformatter-constants" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<section xml:id="intl.numberformatter-constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; <section xml:id="intl.numberformatter-constants.UNumberFormatStyle"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter.xml diff -u phpdoc/en/reference/intl/numberformatter.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/numberformatter.xml Thu Dec 6 21:08:03 2007 @@ -1,9 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<reference xml:id="class.numberformatter" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:xi="http://www.w3.org/2001/XInclude"> +<!-- $Revision: 1.1.2.2 $ --> +<reference xml:id="class.numberformatter" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>The NumberFormatter class</title> <titleabbrev>NumberFormatter</titleabbrev> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/reference.xml?r1=1.1.2.2&r2=1.1.2.3&diff_format=u Index: phpdoc/en/reference/intl/reference.xml diff -u phpdoc/en/reference/intl/reference.xml:1.1.2.2 phpdoc/en/reference/intl/reference.xml:1.1.2.3 --- phpdoc/en/reference/intl/reference.xml:1.1.2.2 Sun Dec 2 14:03:39 2007 +++ phpdoc/en/reference/intl/reference.xml Thu Dec 6 21:08:03 2007 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.2 $ --> -<reference xml:id="ref.intl" xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.3 $ --> +<reference xml:id="ref.intl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>intl &Functions;</title> &reference.intl.functions.entities; </reference> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator/collator-asort.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/collator/collator-asort.xml diff -u phpdoc/en/reference/intl/collator/collator-asort.xml:1.1.2.1 phpdoc/en/reference/intl/collator/collator-asort.xml:1.1.2.2 --- phpdoc/en/reference/intl/collator/collator-asort.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/collator/collator-asort.xml Thu Dec 6 21:08:03 2007 @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> +<!-- $Revision: 1.1.2.2 $ --> <refentry xml:id="collator.asort" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>Collator::asort</refname> <refname>collator_asort</refname> <refpurpose>Sort array maintaining index association</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; <para>Object oriented style</para> @@ -15,8 +16,9 @@ <methodparam><type>array</type><parameter>arr</parameter></methodparam> <methodparam choice="opt"><type>integer</type><parameter>sort_flag</parameter></methodparam> </methodsynopsis> - - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>bool</type> <methodname>collator_asort</methodname> @@ -24,7 +26,6 @@ <methodparam><type>array</type><parameter>arr</parameter></methodparam> <methodparam choice="opt"><type>integer</type><parameter>sort_flag</parameter></methodparam> </methodsynopsis> - <para> This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used @@ -105,12 +106,9 @@ &reftitle.examples; <para> <example> - <title> - <function>collator_asort</function> - example - </title> + <title><function>collator_asort</function>example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $coll = collator_create( 'en_US' ); $arr = array( @@ -128,7 +126,7 @@ </programlisting> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ array ( 'c' => '7', 'b' => '50', @@ -148,12 +146,7 @@ &reftitle.seealso; <para> <simplelist> - <member> - <link linkend="intl.collator-constants"> - <classname>Collator</classname> - constants - </link> - </member> + <member><link linkend="intl.collator-constants"><classname>Collator</classname>constants</link></member> <member><function>collator_sort</function></member> <member><function>collator_sort_with_sort_keys</function></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator/collator-compare.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/collator/collator-compare.xml diff -u phpdoc/en/reference/intl/collator/collator-compare.xml:1.1.2.1 phpdoc/en/reference/intl/collator/collator-compare.xml:1.1.2.2 --- phpdoc/en/reference/intl/collator/collator-compare.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/collator/collator-compare.xml Thu Dec 6 21:08:03 2007 @@ -1,14 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> +<!-- $Revision: 1.1.2.2 $ --> <refentry xml:id="collator.compare" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>Collator::compare</refname> <refname>collator_compare</refname> <refpurpose>Compare two Unicode strings</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Collator</classname> @@ -20,7 +23,9 @@ <methodparam><type>string</type><parameter>str2</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>integer</type> <methodname>collator_compare</methodname> @@ -28,7 +33,9 @@ <methodparam><type>string</type><parameter>str1</parameter></methodparam> <methodparam><type>string</type><parameter>str2</parameter></methodparam> </methodsynopsis> - <para>Compare two Unicode strings according to collation rules.</para> + <para> + Compare two Unicode strings according to collation rules. + </para> </refsect1> <refsect1 role="parameters"> @@ -46,13 +53,17 @@ <varlistentry> <term><parameter>str1</parameter></term> <listitem> - <para>The first string to compare.</para> + <para> + The first string to compare. + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>str2</parameter></term> <listitem> - <para>The second string to compare.</para> + <para> + The second string to compare. + </para> </listitem> </varlistentry> </variablelist> @@ -95,12 +106,9 @@ &reftitle.examples; <para> <example> - <title> - <function>collator_compare</function> - example - </title> + <title><function>collator_compare</function>example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $s1 = 'Hello'; $s2 = 'hello'; @@ -108,19 +116,21 @@ $coll = collator_create( 'en_US' ); $res = collator_compare( $coll, $s1, $s2 ); -if( $res === false ) +if ($res === false) { echo collator_get_error_message( $coll ); -else if( $res > 0 ) +} else if( $res > 0 ) { echo "s1 is greater than s2\n"; -else if( $res < 0 ) +} else if( $res < 0 ) { echo "s1 is less than s2\n"; -else +} else { echo "s1 is equal to s2\n"; ?> ]]> </programlisting> &example.outputs; - <screen>s1 is greater than s2</screen> + <screen> + s1 is greater than s2 + </screen> </example> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator/collator-construct.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/collator/collator-construct.xml diff -u phpdoc/en/reference/intl/collator/collator-construct.xml:1.1.2.1 phpdoc/en/reference/intl/collator/collator-construct.xml:1.1.2.2 --- phpdoc/en/reference/intl/collator/collator-construct.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/collator/collator-construct.xml Thu Dec 6 21:08:03 2007 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="collator.construct" xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="collator.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Collator::__construct</refname> <refpurpose>Create a collator</refpurpose> @@ -12,7 +11,9 @@ <methodname>Collator::__construct</methodname> <methodparam><type>string</type><parameter>locale</parameter></methodparam> </constructorsynopsis> - <para>Creates a new instance of Collator.</para> + <para> + Creates a new instance of Collator. + </para> </refsect1> <refsect1 role="parameters"> @@ -66,7 +67,9 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>Returns Collator instance.</para> + <para> + Returns Collator instance. + </para> </refsect1> <refsect1 role="errors"> @@ -84,14 +87,11 @@ &reftitle.examples; <para> <example> - <title> - <function>Collator::__construct</function> - example - </title> + <title><function>Collator::__construct</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php - $coll = new Collator( 'en_CA' ); +$coll = new Collator( 'en_CA' ); ?> ]]> </programlisting> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator/collator-create.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/collator/collator-create.xml diff -u phpdoc/en/reference/intl/collator/collator-create.xml:1.1.2.1 phpdoc/en/reference/intl/collator/collator-create.xml:1.1.2.2 --- phpdoc/en/reference/intl/collator/collator-create.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/collator/collator-create.xml Thu Dec 6 21:08:03 2007 @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> +<!-- $Revision: 1.1.2.2 $ --> <refentry xml:id="collator.create" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>Collator::create</refname> <refname>collator_create</refname> <refpurpose>Create a collator</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; <para>Object oriented style</para> @@ -15,14 +16,14 @@ <methodname>Collator::create</methodname> <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> - - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>Collator</type> <methodname>collator_create</methodname> <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> - <para> The strings will be compared using the options already specified. </para> @@ -60,16 +61,13 @@ &reftitle.examples; <para> <example> - <title> - <function>collator_create</function> example - </title> + <title><function>collator_create</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $coll = collator_create( 'en_US' ); -if( !isset( $coll ) ) -{ +if( !isset( $coll ) ) { printf( "Collator creation failed: %s\n", intl_get_error_message() ); exit( 1 ); } http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator/collator-get-attribute.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/collator/collator-get-attribute.xml diff -u phpdoc/en/reference/intl/collator/collator-get-attribute.xml:1.1.2.1 phpdoc/en/reference/intl/collator/collator-get-attribute.xml:1.1.2.2 --- phpdoc/en/reference/intl/collator/collator-get-attribute.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/collator/collator-get-attribute.xml Thu Dec 6 21:08:03 2007 @@ -1,29 +1,34 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="collator.getattribute" - xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="collator.getattribute" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>Collator::getAttribute</refname> <refname>collator_get_attribute</refname> <refpurpose>Get collation attribute value</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <methodsynopsis> <type>integer</type> <methodname>Collator::getAttribute</methodname> <methodparam><type>integer</type><parameter>attr</parameter></methodparam> </methodsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>integer</type> <methodname>collator_get_attribute</methodname> <methodparam><type>Collator</type><parameter>coll</parameter></methodparam> <methodparam><type>integer</type><parameter>attr</parameter></methodparam> </methodsynopsis> - - <para>Get a value of an integer collator attribute.</para> + <para> + Get a value of an integer collator attribute. + </para> </refsect1> <refsect1 role="parameters"> @@ -41,7 +46,9 @@ <varlistentry> <term><parameter>attr</parameter></term> <listitem> - <para>Attribute to get value for.</para> + <para> + Attribute to get value for. + </para> </listitem> </varlistentry> </variablelist> @@ -60,11 +67,9 @@ &reftitle.examples; <para> <example> - <title> - <function>collator_get_attribute</function> example - </title> + <title><function>collator_get_attribute</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $coll = collator_create( 'en_CA' ); $val = collator_get_attribute( $coll, Collator::NUMERIC_COLLATION ); @@ -83,11 +88,7 @@ &reftitle.seealso; <para> <simplelist> - <member> - <link linkend="intl.collator-constants"> - <classname>Collator</classname> constants - </link> - </member> + <member><link linkend="intl.collator-constants"><classname>Collator</classname> constants</link></member> <member><function>collator_set_attribute</function></member> <member><function>collator_get_strength</function></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator/collator-get-error-code.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/collator/collator-get-error-code.xml diff -u phpdoc/en/reference/intl/collator/collator-get-error-code.xml:1.1.2.1 phpdoc/en/reference/intl/collator/collator-get-error-code.xml:1.1.2.2 --- phpdoc/en/reference/intl/collator/collator-get-error-code.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/collator/collator-get-error-code.xml Thu Dec 6 21:08:03 2007 @@ -1,28 +1,32 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="collator.geterrorcode" - xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="collator.geterrorcode" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>Collator::getErrorCode</refname> <refname>collator_get_error_code</refname> <refpurpose>Get collator's last error code</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <methodsynopsis> <type>integer</type> <methodname>Collator::getErrorCode</methodname> <void /> </methodsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>integer</type> <methodname>collator_get_error_code</methodname> <methodparam><type>Collator</type><parameter>coll</parameter></methodparam> </methodsynopsis> <para> - <!-- desctiption goes here --> + <!-- description goes here --> </para> </refsect1> @@ -45,18 +49,18 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>Error code returned by the last Collator API function call.</para> + <para> + Error code returned by the last Collator <acronym>API</acronym> function call. + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> - <title> - <function>collator_get_error_code</function> example - </title> + <title><function>collator_get_error_code</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $coll = collator_create( 'en_US' ); if( collator_get_attribute( $coll, Collator::FRENCH_COLLATION ) === false ) http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator/collator-get-error-message.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/collator/collator-get-error-message.xml diff -u phpdoc/en/reference/intl/collator/collator-get-error-message.xml:1.1.2.1 phpdoc/en/reference/intl/collator/collator-get-error-message.xml:1.1.2.2 --- phpdoc/en/reference/intl/collator/collator-get-error-message.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/collator/collator-get-error-message.xml Thu Dec 6 21:08:03 2007 @@ -1,27 +1,33 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="collator.geterrormessage" - xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="collator.geterrormessage" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>Collator::getErrorMessage</refname> <refname>collator_get_error_message</refname> <refpurpose>Get text for collator's last error code</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <methodsynopsis> <type>string</type> <methodname>Collator::getErrorMessage</methodname> <void /> </methodsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>collator_get_error_message</methodname> <methodparam><type>Collator</type><parameter>coll</parameter></methodparam> </methodsynopsis> - <para>Retrieves the message for the last error.</para> + <para> + Retrieves the message for the last error. + </para> </refsect1> <refsect1 role="parameters"> @@ -44,7 +50,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Description of an error occured in the last Collator API function call. + Description of an error occurred in the last Collator <acronym>API</acronym> function call. </para> </refsect1> @@ -52,15 +58,12 @@ &reftitle.examples; <para> <example> - <title> - <function>collator_get_error_message</function> example - </title> + <title><function>collator_get_error_message</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $coll = collator_create( 'lt' ); -if( collator_compare( $coll, 'y', 'k' ) === false ) -{ +if( collator_compare( $coll, 'y', 'k' ) === false ) { echo collator_get_error_message( $coll ); } ?> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator/collator-get-locale.xml?r1=1.1.2.2&r2=1.1.2.3&diff_format=u Index: phpdoc/en/reference/intl/collator/collator-get-locale.xml diff -u phpdoc/en/reference/intl/collator/collator-get-locale.xml:1.1.2.2 phpdoc/en/reference/intl/collator/collator-get-locale.xml:1.1.2.3 --- phpdoc/en/reference/intl/collator/collator-get-locale.xml:1.1.2.2 Thu Dec 6 20:12:25 2007 +++ phpdoc/en/reference/intl/collator/collator-get-locale.xml Thu Dec 6 21:08:03 2007 @@ -1,14 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.2 $ --> +<!-- $Revision: 1.1.2.3 $ --> <refentry xml:id="collator.getlocale" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>Collator::getLocale</refname> <refname>collator_get_locale</refname> <refpurpose>Get the locale name of the collator</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Collator</classname> </ooclass> @@ -18,21 +21,24 @@ <methodparam choice="opt"><type>integer</type><parameter>type</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>collator_get_locale</methodname> <methodparam><type>Collator</type><parameter>coll</parameter></methodparam> <methodparam><type>integer</type><parameter>type</parameter></methodparam> </methodsynopsis> - <para>Get collector locale name.</para> + <para> + Get collector locale name. + </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> - <varlistentry> <term><parameter>coll</parameter></term> <listitem> @@ -61,7 +67,7 @@ &reftitle.returnvalues; <para> Real locale name from which the collation data comes. If the collator was - instantiated from rules or an error occured, returns + instantiated from rules or an error occurred, returns <type>boolean</type> &false;. </para> </refsect1> @@ -72,9 +78,9 @@ <example> <title><function>collator_get_locale</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php -$coll = collator_create( 'en_US_California' ); +$coll = collator_create( 'en_US_California' ); $res_val = collator_get_locale( $coll, Locale::VALID_LOCALE ); $res_act = collator_get_locale( $coll, Locale::ACTUAL_LOCALE ); printf( "Valid locale name: %s\nActual locale name: %s\n", @@ -84,7 +90,7 @@ </programlisting> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ Requested locale name: en_US_California Valid locale name: en_US Actual locale name: en http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator/collator-get-strength.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/collator/collator-get-strength.xml diff -u phpdoc/en/reference/intl/collator/collator-get-strength.xml:1.1.2.1 phpdoc/en/reference/intl/collator/collator-get-strength.xml:1.1.2.2 --- phpdoc/en/reference/intl/collator/collator-get-strength.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/collator/collator-get-strength.xml Thu Dec 6 21:08:03 2007 @@ -1,21 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="collator.getstrength" - xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="collator.getstrength" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>Collator::getStrength</refname> <refname>collator_get_strength</refname> <refpurpose>Get current collation strength</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <methodsynopsis> <type>integer</type> <methodname>Collator::getStrength</methodname> <void /> </methodsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>integer</type> <methodname>collator_get_strength</methodname> @@ -54,20 +58,18 @@ &reftitle.examples; <para> <example> - <title> - <function>collator_get_strength</function> example - </title> + <title><function>collator_get_strength</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php -$coll = collator_create( 'en_US' ); +$coll = collator_create( 'en_US' ); $strength = collator_get_strength( $coll ); ?> ]]> </programlisting> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ // TODO ]]> </screen> @@ -79,11 +81,7 @@ &reftitle.seealso; <para> <simplelist> - <member> - <link linkend="intl.collator-constants"> - <classname>Collator</classname> constants - </link> - </member> + <member><link linkend="intl.collator-constants"><classname>Collator</classname> constants</link></member> <member><function>collator_set_strength</function></member> <member><function>collator_get_attribute</function></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator/collator-set-attribute.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/collator/collator-set-attribute.xml diff -u phpdoc/en/reference/intl/collator/collator-set-attribute.xml:1.1.2.1 phpdoc/en/reference/intl/collator/collator-set-attribute.xml:1.1.2.2 --- phpdoc/en/reference/intl/collator/collator-set-attribute.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/collator/collator-set-attribute.xml Thu Dec 6 21:08:03 2007 @@ -1,22 +1,26 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="collator.setattribute" - xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="collator.setattribute" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>Collator::setAttribute</refname> <refname>collator_set_attribute</refname> <refpurpose>Set collation attribute</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <methodsynopsis> <type>bool</type> <methodname>Collator::setAttribute</methodname> <methodparam><type>integer</type><parameter>attr</parameter></methodparam> <methodparam><type>integer</type><parameter>val</parameter></methodparam> </methodsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>bool</type> <methodname>collator_set_attribute</methodname> @@ -25,7 +29,7 @@ <methodparam><type>integer</type><parameter>val</parameter></methodparam> </methodsynopsis> <para> - <!-- desctiption goes here --> + <!-- description goes here --> </para> </refsect1> @@ -37,7 +41,7 @@ <term><parameter>coll</parameter></term> <listitem> <para> - <classname>Collator</classname> object. + <classname>Collator</classname> <type>object</type>. </para> </listitem> </varlistentry> @@ -50,7 +54,9 @@ <varlistentry> <term><parameter>val</parameter></term> <listitem> - <para>Attribute value.</para> + <para> + Attribute value. + </para> </listitem> </varlistentry> </variablelist> @@ -68,18 +74,17 @@ &reftitle.examples; <para> <example> - <title> - <function>collator_set_attribute</function> example - </title> + <title><function>collator_set_attribute</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $coll = collator_create( 'en_CA' ); -$val = collator_get_attribute( $coll, Collator::NUMERIC_COLLATION ); -if( $val === false ) +$val = collator_get_attribute( $coll, Collator::NUMERIC_COLLATION ); +if ($val === false) { // Handle error. -elseif( $val === Collator::ON ) +} elseif ($val === Collator::ON) { // Do something useful. +} ?> ]]> </programlisting> @@ -91,11 +96,7 @@ &reftitle.seealso; <para> <simplelist> - <member> - <link linkend="intl.collator-constants"> - <classname>Collator</classname> constants - </link> - </member> + <member><link linkend="intl.collator-constants"><classname>Collator</classname> constants</link></member> <member><function>collator_get_attribute</function></member> <member><function>collator_set_strength</function></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator/collator-set-strength.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/collator/collator-set-strength.xml diff -u phpdoc/en/reference/intl/collator/collator-set-strength.xml:1.1.2.1 phpdoc/en/reference/intl/collator/collator-set-strength.xml:1.1.2.2 --- phpdoc/en/reference/intl/collator/collator-set-strength.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/collator/collator-set-strength.xml Thu Dec 6 21:08:03 2007 @@ -1,21 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="collator.setstrength" xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="collator.setstrength" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Collator::setStrength</refname> <refname>collator_set_strength</refname> <refpurpose>Set collation strength</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <methodsynopsis> <type>bool</type> <methodname>Collator::setStrength</methodname> <methodparam><type>integer</type><parameter>strength</parameter></methodparam> </methodsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>bool</type> <methodname>collator_set_strength</methodname> @@ -34,7 +38,8 @@ <para> <orderedlist> <listitem> - <para> <emphasis> Primary Level</emphasis>: + <para> + <emphasis> Primary Level</emphasis>: Typically, this is used to denote differences between base characters (for example, "a" &lt; "b"). It is the strongest difference. For example, dictionaries are divided into different sections by base @@ -42,7 +47,8 @@ </para> </listitem> <listitem> - <para> <emphasis> Secondary Level</emphasis>: + <para> + <emphasis> Secondary Level</emphasis>: Accents in the characters are considered secondary differences (for example, "as" &lt; "às" &lt; "at"). Other differences between letters can also be considered secondary differences, depending on the language. @@ -59,7 +65,8 @@ </para> </listitem> <listitem> - <para> <emphasis> Tertiary Level</emphasis>: + <para> + <emphasis> Tertiary Level</emphasis>: Upper and lower case differences in characters are distinguished at the tertiary level (for example, "ao" &lt; "Ao" &lt; "aò"). In addition, a variant of a letter differs from the base form on the tertiary level @@ -70,7 +77,8 @@ </para> </listitem> <listitem> - <para> <emphasis> Quaternary Level</emphasis>: + <para> + <emphasis> Quaternary Level</emphasis>: When punctuation is ignored (see Ignoring Punctuations ) at level 13, an additional level can be used to distinguish words with and without punctuation (for example, "ab" &lt; "a-b" &lt; "aB"). This difference is @@ -81,7 +89,8 @@ </para> </listitem> <listitem> - <para> <emphasis> Identical Level</emphasis>: + <para> + <emphasis> Identical Level</emphasis>: When all other levels are equal, the identical level is used as a tiebreaker. The Unicode code point values of the NFD form of each string are compared at this level, just in case there is no difference at @@ -178,11 +187,9 @@ &reftitle.examples; <para> <example> - <title> - <function>collator_set_strength</function> example - </title> + <title><function>collator_set_strength</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $arr = array( 'aò', 'Ao', 'ao' ); $coll = collator_create( 'en_US' ); @@ -200,7 +207,7 @@ </programlisting> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ array ( 0 => 'ao', 1 => 'Ao', @@ -221,11 +228,7 @@ &reftitle.seealso; <para> <simplelist> - <member> - <link linkend="intl.collator-constants"> - <classname>Collator</classname> constants - </link> - </member> + <member><link linkend="intl.collator-constants"><classname>Collator</classname> constants</link></member> <member><function>collator_get_strength</function></member> </simplelist> </para> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator/collator-sort-with-sort-keys.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/collator/collator-sort-with-sort-keys.xml diff -u phpdoc/en/reference/intl/collator/collator-sort-with-sort-keys.xml:1.1.2.1 phpdoc/en/reference/intl/collator/collator-sort-with-sort-keys.xml:1.1.2.2 --- phpdoc/en/reference/intl/collator/collator-sort-with-sort-keys.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/collator/collator-sort-with-sort-keys.xml Thu Dec 6 21:08:03 2007 @@ -1,21 +1,25 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="collator.sortwithsortkeys" - xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="collator.sortwithsortkeys" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>Collator::sortWithSortKeys</refname> <refname>collator_sort_with_sort_keys</refname> <refpurpose>Sort array using specified collator and sort keys</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <methodsynopsis> <type>bool</type> <methodname>Collator::sortWithSortKeys</methodname> <methodparam><type>array</type><parameter>arr</parameter></methodparam> </methodsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>bool</type> <methodname>collator_sort_with_sort_keys</methodname> @@ -62,22 +66,21 @@ &reftitle.examples; <para> <example> - <title> - <function>collator_sort_with_sort_keys</function> example - </title> + <title><function>collator_sort_with_sort_keys</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php - $arr = array( 'Köpfe', 'Kypper', 'Kopfe' ); - $coll = collator_create( 'sv' ); - collator_sort_with_sort_keys( $coll, $arr ); - var_export( $arr ); +$arr = array( 'Köpfe', 'Kypper', 'Kopfe' ); +$coll = collator_create( 'sv' ); + +collator_sort_with_sort_keys( $coll, $arr ); +var_export( $arr ); ?> ]]> </programlisting> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ array ( 0 => 'Kopfe', 1 => 'Kypper', @@ -93,11 +96,7 @@ &reftitle.seealso; <para> <simplelist> - <member> - <link linkend="intl.collator-constants"> - <classname>Collator</classname> constants - </link> - </member> + <member><link linkend="intl.collator-constants"><classname>Collator</classname> constants</link></member> <member><function>collator_sort</function></member> <member><function>collator_asort</function></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/collator/collator-sort.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/collator/collator-sort.xml diff -u phpdoc/en/reference/intl/collator/collator-sort.xml:1.1.2.1 phpdoc/en/reference/intl/collator/collator-sort.xml:1.1.2.2 --- phpdoc/en/reference/intl/collator/collator-sort.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/collator/collator-sort.xml Thu Dec 6 21:08:03 2007 @@ -1,21 +1,26 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> +<!-- $Revision: 1.1.2.2 $ --> <refentry xml:id="collator.sort" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>Collator::sort</refname> <refname>collator_sort</refname> <refpurpose>Sort array using specified collator</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <methodsynopsis> <type>bool</type> <methodname>Collator::sort</methodname> <methodparam><type>array</type><parameter>arr</parameter></methodparam> <methodparam choice="opt"><type>integer</type><parameter>sort_flag</parameter></methodparam> </methodsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>bool</type> <methodname>collator_sort</methodname> @@ -37,19 +42,25 @@ <varlistentry> <term><parameter>coll</parameter></term> <listitem> - <para><classname>Collator</classname> object.</para> + <para> + <classname>Collator</classname> object. + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>arr</parameter></term> <listitem> - <para>Array of strings to sort.</para> + <para> + Array of strings to sort. + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>sort_flag</parameter></term> <listitem> - <para>Optional sorting type, one of the following:</para> + <para> + Optional sorting type, one of the following: + </para> <para> <itemizedlist> <listitem> @@ -91,14 +102,13 @@ &reftitle.examples; <para> <example> - <title> - <function>collator_sort</function> example - </title> + <title><function>collator_sort</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $coll = collator_create( 'en_US' ); -$arr = array( 'at', 'às', 'as' ); +$arr = array( 'at', 'às', 'as' ); + var_export( $arr ); collator_sort( $coll, $arr ); var_export( $arr ); @@ -107,7 +117,7 @@ </programlisting> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ array ( 0 => 'at', 1 => 'às', @@ -127,11 +137,7 @@ &reftitle.seealso; <para> <simplelist> - <member> - <link linkend="intl.collator-constants"> - <classname>Collator</classname> constants - </link> - </member> + <member><link linkend="intl.collator-constants"><classname>Collator</classname> constants</link></member> <member><function>collator_asort</function></member> <member><function>collator_sort_with_sort_keys</function></member> </simplelist> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/intl-error-name.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/functions/intl-error-name.xml diff -u phpdoc/en/reference/intl/functions/intl-error-name.xml:1.1.2.1 phpdoc/en/reference/intl/functions/intl-error-name.xml:1.1.2.2 --- phpdoc/en/reference/intl/functions/intl-error-name.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/functions/intl-error-name.xml Thu Dec 6 21:08:03 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> +<!-- $Revision: 1.1.2.2 $ --> <refentry xml:id="function.intl-error-name"> <refnamediv> <refname>intl_error_name</refname> @@ -13,7 +13,9 @@ <methodname>intl_error_name</methodname> <methodparam><type>integer</type><parameter>error_code</parameter></methodparam> </methodsynopsis> - <para>Return ICU error code name.</para> + <para> + Return ICU error code name. + </para> </refsect1> <refsect1 role="parameters"> @@ -23,7 +25,9 @@ <varlistentry> <term><parameter>error_code</parameter></term> <listitem> - <para>ICU error code.</para> + <para> + ICU error code. + </para> </listitem> </varlistentry> </variablelist> @@ -42,21 +46,20 @@ &reftitle.examples; <para> <example> - <title> - <function>intl_error_name</function> example - </title> + <title><function>intl_error_name</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php -$coll = collator_create( 'en_RU' ); +$coll = collator_create( 'en_RU' ); $err_code = collator_get_error_code( $coll ); + printf( "Symbolic name for %d is %s\n.", $err_code, intl_error_name( $err_code ) ); ?> ]]> </programlisting> &example.outputs.similar; <screen> - <![CDATA[ +<![CDATA[ Symbolic name for -128 is U_USING_FALLBACK_WARNING. ]]> </screen> @@ -64,7 +67,8 @@ </para> </refsect1> - <refsect1 role="seealso">&reftitle.seealso; + <refsect1 role="seealso"> + &reftitle.seealso; <para> <simplelist> <member><function>intl_is_failure</function></member> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/intl-get-error-code.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/functions/intl-get-error-code.xml diff -u phpdoc/en/reference/intl/functions/intl-get-error-code.xml:1.1.2.1 phpdoc/en/reference/intl/functions/intl-get-error-code.xml:1.1.2.2 --- phpdoc/en/reference/intl/functions/intl-get-error-code.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/functions/intl-get-error-code.xml Thu Dec 6 21:08:03 2007 @@ -1,10 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.1.2.1 $ --> +<!-- $Revision: 1.1.2.2 $ --> <refentry xml:id="function.intl-get-error-code"> <refnamediv> <refname>intl_get_error_code</refname> <refpurpose>Get the last error code</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -20,22 +21,23 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>Error code returned by the last API function call.</para> + <para> + Error code returned by the last API function call. + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> - <title> - <function>intl_get_error_code</function> example - </title> + <title><function>intl_get_error_code</function> example</title> <programlisting role="php"> <![CDATA[ <?php $coll = collator_create( '<bad_param>' ); -if( !$coll ) +if( !$coll ) { handle_error( intl_get_error_code() ); +} ?> ]]> </programlisting> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/intl-get-error-message.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/functions/intl-get-error-message.xml diff -u phpdoc/en/reference/intl/functions/intl-get-error-message.xml:1.1.2.1 phpdoc/en/reference/intl/functions/intl-get-error-message.xml:1.1.2.2 --- phpdoc/en/reference/intl/functions/intl-get-error-message.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/functions/intl-get-error-message.xml Thu Dec 6 21:08:03 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.1.2.1 $ --> +<!-- $Revision: 1.1.2.2 $ --> <refentry xml:id="function.intl-get-error-message"> <refnamediv> <refname>intl_get_error_message</refname> @@ -19,21 +19,22 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>Description of an error occured in the last API function call.</para> + <para> + Description of an error occurred in the last API function call. + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> - <title> - <function>intl_get_error_message</function> example - </title> + <title><function>intl_get_error_message</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php -if( Collator::getAvailableLocales() === false ) +if( Collator::getAvailableLocales() === false ) { show_error( intl_get_error_message() ); +} ?> ]]> </programlisting> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/functions/intl-is-failure.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/functions/intl-is-failure.xml diff -u phpdoc/en/reference/intl/functions/intl-is-failure.xml:1.1.2.1 phpdoc/en/reference/intl/functions/intl-is-failure.xml:1.1.2.2 --- phpdoc/en/reference/intl/functions/intl-is-failure.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/functions/intl-is-failure.xml Thu Dec 6 21:08:03 2007 @@ -1,12 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.1.2.1 $ --> +<!-- $Revision: 1.1.2.2 $ --> <refentry xml:id="function.intl-is-failure"> <refnamediv> <refname>intl_is_failure</refname> - <refpurpose> - Check whether the given error code indicates failure - </refpurpose> + <refpurpose>Check whether the given error code indicates failure</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -15,7 +14,7 @@ <methodparam><type>integer</type><parameter>error_code</parameter></methodparam> </methodsynopsis> <para> - <!-- desctiption goes here --> + <!-- description goes here --> </para> </refsect1> @@ -49,11 +48,9 @@ &reftitle.examples; <para> <example> - <title> - <function>intl_is_failure</function> example - </title> + <title><function>intl_is_failure</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php function check( $err_code ) { @@ -69,7 +66,7 @@ </programlisting> &example.outputs.similar; <screen> - <![CDATA[ +<![CDATA[ false false true http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-compose-locale.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-compose-locale.xml diff -u phpdoc/en/reference/intl/locale/locale-compose-locale.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-compose-locale.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-compose-locale.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-compose-locale.xml Thu Dec 6 21:08:03 2007 @@ -1,18 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="locale.composelocale" xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="locale.composelocale" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>Locale::composeLocale</refname> <refname>locale_compose_locale</refname> <refpurpose>Returns a correctly ordered and delimited locale ID</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> - <classname>Locale</classname> </ooclass> + <classname>Locale</classname> + </ooclass> <methodsynopsis> <modifier>static</modifier> <type>string</type> @@ -20,7 +23,9 @@ <methodparam><type>array</type><parameter>subtags</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>locale_compose_locale</methodname> @@ -64,26 +69,26 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>the corresponding locale identifier.</para> + <para> + The corresponding locale identifier. + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_compose_locale</function> example - </title> + <title><function>locale_compose_locale</function> example</title> <programlisting role="php"> <![CDATA[ <?php $arr = array( - 'language'=>'en' , - 'script'=>'Hans' , - 'region'=>'CN', - 'variant2'=>'rozaj' , - 'variant1'=>'nedis' , - 'private1'=>'prv1' , - 'private2'=>'prv2' + 'language'=>'en' , + 'script' =>'Hans' , + 'region' =>'CN', + 'variant2'=>'rozaj' , + 'variant1'=>'nedis' , + 'private1'=>'prv1' , + 'private2'=>'prv2' ); echo locale_compose( $arr ); ?> @@ -93,16 +98,16 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $arr = array( - 'language'=>'en' , - 'script'=>'Hans' , - 'region'=>'CN', - 'variant2'=>'rozaj' , - 'variant1'=>'nedis' , - 'private1'=>'prv1' , - 'private2'=>'prv2' + 'language'=>'en' , + 'script' =>'Hans' , + 'region' =>'CN', + 'variant2'=>'rozaj' , + 'variant1'=>'nedis' , + 'private1'=>'prv1' , + 'private2'=>'prv2' ); echo Locale::composeLocale( $arr ); ?> @@ -111,9 +116,9 @@ </example> &example.outputs; <screen> - <![CDATA[ - Locale: en_Hans_CN_nedis_rozaj_x_prv1_prv2 - ]]> +<![CDATA[ +Locale: en_Hans_CN_nedis_rozaj_x_prv1_prv2 +]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-filter-matches.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-filter-matches.xml diff -u phpdoc/en/reference/intl/locale/locale-filter-matches.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-filter-matches.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-filter-matches.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-filter-matches.xml Thu Dec 6 21:08:03 2007 @@ -1,17 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.filtermatches"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.filtermatches"> <refnamediv> <refname>Locale::filterMatches</refname> <refname>locale_filter_matches</refname> - <refpurpose> - Checks if a $langtag filter matches with $locale according to - </refpurpose> + <refpurpose>Checks if a $langtag filter matches with $locale according to</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -24,7 +24,9 @@ <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>boolean</type> <methodname>locale_filter_matches</methodname> @@ -44,13 +46,17 @@ <varlistentry> <term><parameter>langtag</parameter></term> <listitem> - <para>the language tag to check</para> + <para> + The language tag to check + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the language range to check against</para> + <para> + The language range to check against + </para> </listitem> </varlistentry> </variablelist> @@ -60,17 +66,17 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>&true; if $locale matches $langtag &false; otherwise</para> + <para> + &true; if $locale matches $langtag &false; otherwise. + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_filter_matches</function> example - </title> + <title><function>locale_filter_matches</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo (locale_filter_matches('de-DEVA','de-DE', false)) ? "Matches" : "Does not match"; echo '; '; @@ -82,7 +88,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo (Locale::filter_matches('de-DEVA','de-DE', false)) ? "Matches" : "Does not match"; echo '; '; @@ -93,9 +99,9 @@ </example> &example.outputs; <screen> - <![CDATA[ - Does not match; Matches - ]]> +<![CDATA[ +Does not match; Matches +]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-get-all-variants.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-get-all-variants.xml diff -u phpdoc/en/reference/intl/locale/locale-get-all-variants.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-get-all-variants.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-get-all-variants.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-get-all-variants.xml Thu Dec 6 21:08:03 2007 @@ -1,15 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getallvariants"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getallvariants"> <refnamediv> <refname>Locale::getAllVariants</refname> <refname>locale_get_all_variants</refname> <refpurpose>Gets the variants for the input locale</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -21,13 +23,17 @@ <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>array</type> <methodname>locale_get_all_variants</methodname> <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> - <para>Gets the variants for the input locale</para> + <para> + Gets the variants for the input locale + </para> </refsect1> <refsect1 role="parameters"> @@ -37,7 +43,9 @@ <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the locale to extract the variants from</para> + <para> + The locale to extract the variants from + </para> </listitem> </varlistentry> </variablelist> @@ -48,22 +56,20 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - the array containing the list of all variants subtag for the locale or &null; - if not present + The <type>array</type> containing the list of all variants subtag for the locale + or &null; if not present </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_get_all_variants</function> example - </title> + <title><function>locale_get_all_variants</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php - $arr = locale_get_all_variants('sl_IT_NEDIS_ROJAZ_1901'); - var_export( $arr ); +$arr = locale_get_all_variants('sl_IT_NEDIS_ROJAZ_1901'); +var_export( $arr ); ?> ]]> </programlisting> @@ -71,7 +77,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $arr = Locale::getAllVariants('sl_IT_NEDIS_ROJAZ_1901'); var_export( $arr ); @@ -81,13 +87,13 @@ </example> &example.outputs; <screen> - <![CDATA[ - array ( - 0 => 'NEDIS', - 1 => 'ROJAZ', - 2 => '1901', - ) - ]]> +<![CDATA[ +array ( + 0 => 'NEDIS', + 1 => 'ROJAZ', + 2 => '1901', +) +]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-get-default.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-get-default.xml diff -u phpdoc/en/reference/intl/locale/locale-get-default.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-get-default.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-get-default.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-get-default.xml Thu Dec 6 21:08:03 2007 @@ -1,17 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getdefault"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getdefault"> <refnamediv> <refname>Locale::getDefault</refname> <refname>locale_get_default</refname> - <refpurpose> - Gets the default locale value from the INTL global 'default_locale' - </refpurpose> + <refpurpose>Gets the default locale value from the INTL global 'default_locale'</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -23,40 +23,41 @@ <void /> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>locale_get_default</methodname> <void /> </methodsynopsis> <para> - Gets the default locale value. At the PHP initilaization this value is set - to 'intl.default_locale' value from php.ini if that value exists or + Gets the default locale value. At the PHP initialization this value is set + to 'intl.default_locale' value from &php.ini; if that value exists or from ICU's function uloc_getDefault(). </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; - <para /> - - + <para> + </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>the current runtime locale</para> + <para> + The current runtime locale + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_get_default</function> example - </title> + <title><function>locale_get_default</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php ini_set('intl.default_locale', 'de-DE'); echo locale_get_default(); @@ -70,7 +71,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php ini_set('intl.default_locale', 'de-DE'); echo Locale::getDefault(); @@ -83,9 +84,9 @@ </example> &example.outputs; <screen> - <![CDATA[ - de-DE; fr - ]]> +<![CDATA[ +de-DE; fr +]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-get-display-language.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-get-display-language.xml diff -u phpdoc/en/reference/intl/locale/locale-get-display-language.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-get-display-language.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-get-display-language.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-get-display-language.xml Thu Dec 6 21:08:03 2007 @@ -1,19 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="locale.getdisplaylanguage"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getdisplaylanguage"> <refnamediv> <refname>Locale::getDisplayLanguage</refname> <refname>locale_get_display_language</refname> - <refpurpose> - Returns an appropriately localized display name for language of the input - locale - </refpurpose> + <refpurpose>Returns an appropriately localized display name for language of the inputlocale</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -26,7 +24,9 @@ <methodparam choice="opt"><type>string</type><parameter>in_locale</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>locale_get_display_language</methodname> @@ -46,13 +46,17 @@ <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the locale to return a display language for</para> + <para> + The locale to return a display language for + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>in_locale</parameter></term> <listitem> - <para>optional format locale to use to display the language name</para> + <para> + Optional format locale to use to display the language name + </para> </listitem> </varlistentry> </variablelist> @@ -63,7 +67,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - display name of the language for the $locale in the formatappropriate for + display name of the language for the $locale in the format appropriate for $in_locale. </para> </refsect1> @@ -71,11 +75,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_get_display_language</function> example - </title> + <title><function>locale_get_display_language</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo locale_get_display_language('sl-Latn-IT-nedis', 'en'); echo ';\n'; @@ -89,7 +91,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo Locale::getDisplayLanguage('sl-Latn-IT-nedis', 'en'); echo ';\n'; @@ -102,11 +104,11 @@ </example> &example.outputs; <screen> - <![CDATA[ - Slovenian; - slov\xc3\xa8ne; - Slowenisch - ]]> +<![CDATA[ +Slovenian; +slov\xc3\xa8ne; +Slowenisch +]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-get-display-name.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-get-display-name.xml diff -u phpdoc/en/reference/intl/locale/locale-get-display-name.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-get-display-name.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-get-display-name.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-get-display-name.xml Thu Dec 6 21:08:03 2007 @@ -1,17 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getdisplayname"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getdisplayname"> <refnamediv> <refname>Locale::getDisplayName</refname> <refname>locale_get_display_name</refname> - <refpurpose> - Returns an appropriately localized display name for the input locale - </refpurpose> + <refpurpose>Returns an appropriately localized display name for the input locale</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -24,7 +24,9 @@ <methodparam choice="opt"><type>string</type><parameter>in_locale</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>locale_get_display_name</methodname> @@ -44,7 +46,9 @@ <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the locale to return a displayname for</para> + <para> + The locale to return a display name for. + </para> </listitem> </varlistentry> <varlistentry> @@ -61,18 +65,16 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - display name of the locale in the formatappropriate for $in_locale. + Display name of the locale in the format appropriate for $in_locale. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_get_display_name</function> example - </title> + <title><function>locale_get_display_name</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo locale_get_display_name('sl-Latn-IT-nedis', 'en'); echo ';\n'; @@ -86,7 +88,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo Locale::getDisplayName('sl-Latn-IT-nedis', 'en'); echo ';\n'; @@ -99,7 +101,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ Slovenian (Latin, Italy, Natisone dialect); slov\xc3\xa8ne (latin, Italie, dialecte de Natisone; Slowenisch (Lateinisch, Italien, NEDIS) http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-get-display-region.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-get-display-region.xml diff -u phpdoc/en/reference/intl/locale/locale-get-display-region.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-get-display-region.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-get-display-region.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-get-display-region.xml Thu Dec 6 21:08:03 2007 @@ -1,19 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="locale.getdisplayregion"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getdisplayregion"> <refnamediv> <refname>Locale::getDisplayRegion</refname> <refname>locale_get_display_region</refname> - <refpurpose> - Returns an appropriately localized display name for region of the input - locale - </refpurpose> + <refpurpose>Returns an appropriately localized display name for region of the input locale</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -26,7 +24,9 @@ <methodparam choice="opt"><type>string</type><parameter>in_locale</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>locale_get_display_region</methodname> @@ -46,13 +46,17 @@ <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the locale to return a display region for</para> + <para> + The locale to return a display region for. + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>in_locale</parameter></term> <listitem> - <para>optional format locale to use to display the region name</para> + <para> + Optional format locale to use to display the region name + </para> </listitem> </varlistentry> </variablelist> @@ -63,7 +67,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - display name of the region for the $locale in the formatappropriate for + display name of the region for the $locale in the format appropriate for $in_locale. </para> </refsect1> @@ -71,11 +75,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_get_display_region</function> example - </title> + <title><function>locale_get_display_region</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo locale_get_display_region('sl-Latn-IT-nedis', 'en'); echo ';\n'; @@ -89,7 +91,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo Locale::getDisplayRegion('sl-Latn-IT-nedis', 'en'); echo ';\n'; @@ -102,11 +104,11 @@ </example> &example.outputs; <screen> - <![CDATA[ - Italy; - Italie; - Italien - ]]> +<![CDATA[ +Italy; +Italie; +Italien +]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-get-display-script.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-get-display-script.xml diff -u phpdoc/en/reference/intl/locale/locale-get-display-script.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-get-display-script.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-get-display-script.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-get-display-script.xml Thu Dec 6 21:08:03 2007 @@ -1,19 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="locale.getdisplayscript"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getdisplayscript"> <refnamediv> <refname>Locale::getDisplayScript</refname> <refname>locale_get_display_script</refname> - <refpurpose> - Returns an appropriately localized display name for script of the input - locale - </refpurpose> + <refpurpose>Returns an appropriately localized display name for script of the input locale</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -26,7 +24,9 @@ <methodparam choice="opt"><type>string</type><parameter>in_locale</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>locale_get_display_script</methodname> @@ -46,13 +46,17 @@ <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the locale to return a display script for</para> + <para> + The locale to return a display script for + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>in_locale</parameter></term> <listitem> - <para>optional format locale to use to display the script name</para> + <para> + Optional format locale to use to display the script name + </para> </listitem> </varlistentry> </variablelist> @@ -63,7 +67,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - display name of the script for the $locale in the formatappropriate for + Display name of the script for the $locale in the format appropriate for $in_locale. </para> </refsect1> @@ -71,11 +75,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_get_display_script</function> example - </title> + <title><function>locale_get_display_script</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo locale_get_display_script('sl-Latn-IT-nedis', 'en'); echo ';\n'; @@ -89,7 +91,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo Locale::getDisplayScript('sl-Latn-IT-nedis', 'en'); echo ';\n'; @@ -102,11 +104,11 @@ </example> &example.outputs; <screen> - <![CDATA[ - Latin; - latin; - Lateinisch - ]]> +<![CDATA[ +Latin; +latin; +Lateinisch +]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-get-display-variant.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-get-display-variant.xml diff -u phpdoc/en/reference/intl/locale/locale-get-display-variant.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-get-display-variant.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-get-display-variant.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-get-display-variant.xml Thu Dec 6 21:08:03 2007 @@ -1,19 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="locale.getdisplayvariant"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getdisplayvariant"> <refnamediv> <refname>Locale::getDisplayVariant</refname> <refname>locale_get_display_variant</refname> - <refpurpose> - Returns an appropriately localized display name for variants of the input - locale - </refpurpose> + <refpurpose>Returns an appropriately localized display name for variants of the input locale</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -26,7 +24,9 @@ <methodparam choice="opt"><type>string</type><parameter>in_locale</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>locale_get_display_variant</methodname> @@ -46,13 +46,17 @@ <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the locale to return a display variant for</para> + <para> + The locale to return a display variant for + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>in_locale</parameter></term> <listitem> - <para>optional format locale to use to display the variant name</para> + <para> + Optional format locale to use to display the variant name + </para> </listitem> </varlistentry> </variablelist> @@ -63,7 +67,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - display name of the variant for the $locale in the formatappropriate for + Display name of the variant for the $locale in the format appropriate for $in_locale. </para> </refsect1> @@ -71,9 +75,7 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_get_display_variant</function> example - </title> + <title><function>locale_get_display_variant</function> example</title> <programlisting role="php"> <![CDATA[ <?php @@ -89,7 +91,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo Locale::getDisplayVariant('sl-Latn-IT-nedis', 'en'); echo ';\n'; @@ -102,10 +104,10 @@ </example> &example.outputs; <screen> - <![CDATA[ - Natisone dialect; - dialecte de Natisone; - NEDIS +<![CDATA[ +Natisone dialect; +dialecte de Natisone; +NEDIS ]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-get-keywords.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-get-keywords.xml diff -u phpdoc/en/reference/intl/locale/locale-get-keywords.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-get-keywords.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-get-keywords.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-get-keywords.xml Thu Dec 6 21:08:03 2007 @@ -1,15 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getkeywords"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getkeywords"> <refnamediv> <refname>Locale::getKeywords</refname> <refname>locale_get_keywords</refname> <refpurpose>Gets the keywords for the input locale</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -21,13 +23,17 @@ <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>array</type> <methodname>locale_get_keywords</methodname> <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> - <para>Gets the keywords for the input locale</para> + <para> + Gets the keywords for the input locale. + </para> </refsect1> <refsect1 role="parameters"> @@ -37,7 +43,9 @@ <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the locale to extract the keywords from</para> + <para> + The locale to extract the keywords from + </para> </listitem> </varlistentry> </variablelist> @@ -48,25 +56,23 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - associative array containing the keyword-value pairs for this locale + Associative <type>array</type> containing the keyword-value pairs for this locale </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_get_keywords</function> example - </title> + <title><function>locale_get_keywords</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php - $keywords_arr = locale_get_keywords( 'de_DE@currency=EUR;collation=PHONEBOOK' ); - if( $keywords_arr){ - foreach( $keywords_arr as $key => $value){ - echo "$key = $value\n"; - } - } +$keywords_arr = locale_get_keywords( 'de_DE@currency=EUR;collation=PHONEBOOK' ); +if ($keywords_arr) { + foreach ($keywords_arr as $key => $value) { + echo "$key = $value\n"; + } +} ?> ]]> </programlisting> @@ -74,24 +80,24 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php - $keywords_arr = Locale::getKeywords( 'de_DE@currency=EUR;collation=PHONEBOOK' ); - if( $keywords_arr){ - foreach( $keywords_arr as $key => $value){ - echo "$key = $value\n"; - } - } +$keywords_arr = Locale::getKeywords( 'de_DE@currency=EUR;collation=PHONEBOOK' ); +if ($keywords_arr) { + foreach( $keywords_arr as $key => $value){ + echo "$key = $value\n"; + } +} ?> ]]> </programlisting> </example> &example.outputs; <screen> - <![CDATA[ - collation = PHONEBOOK - currency = EUR - ]]> +<![CDATA[ +collation = PHONEBOOK +currency = EUR +]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-get-primary-language.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-get-primary-language.xml diff -u phpdoc/en/reference/intl/locale/locale-get-primary-language.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-get-primary-language.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-get-primary-language.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-get-primary-language.xml Thu Dec 6 21:08:03 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="locale.getprimarylanguage"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getprimarylanguage"> <refnamediv> <refname>Locale::getPrimaryLanguage</refname> <refname>locale_get_primary_language</refname> <refpurpose>Gets the primary language for the input locale</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -22,13 +23,17 @@ <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>locale_get_primary_language</methodname> <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> - <para>Gets the primary language for the input locale</para> + <para> + Gets the primary language for the input locale + </para> </refsect1> <refsect1 role="parameters"> @@ -38,7 +43,9 @@ <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the locale to extract the primary language code from</para> + <para> + The locale to extract the primary language code from + </para> </listitem> </varlistentry> </variablelist> @@ -49,18 +56,16 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - the language code associated with the language or &null; in case of error. + The language code associated with the language or &null; in case of error. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_get_primary_language</function> example - </title> + <title><function>locale_get_primary_language</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo locale_get_primary_language('zh-Hant'); ?> @@ -70,7 +75,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo Locale::getPrimaryLanguage('zh-Hant'); ?> @@ -79,9 +84,9 @@ </example> &example.outputs; <screen> - <![CDATA[ - zh - ]]> +<![CDATA[ +zh +]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-get-region.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-get-region.xml diff -u phpdoc/en/reference/intl/locale/locale-get-region.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-get-region.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-get-region.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-get-region.xml Thu Dec 6 21:08:03 2007 @@ -1,15 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getregion"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getregion"> <refnamediv> <refname>Locale::getRegion</refname> <refname>locale_get_region</refname> <refpurpose>Gets the region for the input locale</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -21,13 +23,17 @@ <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>locale_get_region</methodname> <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> - <para>Gets the region for the input locale</para> + <para> + Gets the region for the input locale. + </para> </refsect1> <refsect1 role="parameters"> @@ -37,7 +43,9 @@ <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the locale to extract the region code from</para> + <para> + The locale to extract the region code from + </para> </listitem> </varlistentry> </variablelist> @@ -47,17 +55,17 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>the region subtag for the locale or &null; if not present</para> + <para> + The region subtag for the locale or &null; if not present + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_get_region</function> example - </title> + <title><function>locale_get_region</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo locale_get_region('de-CH-1901'); ?> @@ -67,7 +75,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo Locale::getRegion('de-CH-1901'); ?> @@ -76,9 +84,9 @@ </example> &example.outputs; <screen> - <![CDATA[ - CH - ]]> +<![CDATA[ +CH +]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-get-script.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-get-script.xml diff -u phpdoc/en/reference/intl/locale/locale-get-script.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-get-script.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-get-script.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-get-script.xml Thu Dec 6 21:08:03 2007 @@ -1,15 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getscript"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.getscript"> <refnamediv> <refname>Locale::getScript</refname> <refname>locale_get_script</refname> <refpurpose>Gets the script for the input locale</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -21,13 +23,17 @@ <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>locale_get_script</methodname> <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> - <para>Gets the script for the input locale</para> + <para> + Gets the script for the input locale. + </para> </refsect1> <refsect1 role="parameters"> @@ -37,7 +43,9 @@ <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the locale to extract the script code from</para> + <para> + The locale to extract the script code from + </para> </listitem> </varlistentry> </variablelist> @@ -47,17 +55,17 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>the script subtag for the locale or &null; if not present</para> + <para> + The script subtag for the locale or &null; if not present + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_get_script</function> example - </title> + <title><function>locale_get_script</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo locale_get_script('sr-Cyrl'); ?> @@ -67,7 +75,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo Locale::getScript('sr-Cyrl'); ?> @@ -76,9 +84,9 @@ </example> &example.outputs; <screen> - <![CDATA[ - Cyrl - ]]> +<![CDATA[ +Cyrl +]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-lookup.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-lookup.xml diff -u phpdoc/en/reference/intl/locale/locale-lookup.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-lookup.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-lookup.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-lookup.xml Thu Dec 6 21:08:03 2007 @@ -1,17 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.lookup"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.lookup"> <refnamediv> <refname>Locale::lookup</refname> <refname>locale_lookup</refname> - <refpurpose> - Searchs the items for the best match to the language - </refpurpose> + <refpurpose>Searches the items for the best match to the language</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -25,7 +25,9 @@ <methodparam><type>string</type><parameter>default</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>locale_lookup</methodname> @@ -34,7 +36,7 @@ <methodparam><type>string</type><parameter>default</parameter></methodparam> </methodsynopsis> <para> - Searchs the items in $langtag for the best match to the language range + Searches the items in $langtag for the best match to the language range specified in $locale according to RFC 4647's lookup algorithm. to $locale </para> </refsect1> @@ -47,21 +49,25 @@ <term><parameter>langtag</parameter></term> <listitem> <para> - an array containing a list of language tags to compare (Maximum no. - allowed is 100) + An <type>array</type> containing a list of language tags to compare + (Maximum number allowed is 100) </para> </listitem> </varlistentry> <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the locale to use as the language range when matching</para> + <para> + The locale to use as the language range when matching + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>default</parameter></term> <listitem> - <para>the locale to use if no match is found</para> + <para> + The locale to use if no match is found + </para> </listitem> </varlistentry> </variablelist> @@ -71,23 +77,23 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>closest matching language tag, $default, or empty string</para> + <para> + The closest matching language tag, $default, or an empty string + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_lookup</function> example - </title> + <title><function>locale_lookup</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $arr = array( - 'de-DEVA', - 'de-DE-1996', - 'de', - 'de-De' + 'de-DEVA', + 'de-DE-1996', + 'de', + 'de-De' ); echo locale_lookup($arr, 'de-DE-1996-x-prv1-prv2', false, 'en_US'); ?> @@ -97,13 +103,13 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $arr = array( - 'de-DEVA', - 'de-DE-1996', - 'de', - 'de-De' + 'de-DEVA', + 'de-DE-1996', + 'de', + 'de-De' ); echo Locale::lookup($arr, 'de-DE-1996-x-prv1-prv2', false, 'en_US'); ?> @@ -112,9 +118,9 @@ </example> &example.outputs; <screen> - <![CDATA[ - de_de_1996 - ]]> +<![CDATA[ +de_de_1996 +]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-parse-locale.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-parse-locale.xml diff -u phpdoc/en/reference/intl/locale/locale-parse-locale.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-parse-locale.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-parse-locale.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-parse-locale.xml Thu Dec 6 21:08:03 2007 @@ -1,17 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.parselocale"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.parselocale"> <refnamediv> <refname>Locale::parseLocale</refname> <refname>locale_parse_locale</refname> - <refpurpose> - Returns a key-value array of locale ID subtag elements. - </refpurpose> + <refpurpose>Returns a key-value array of locale ID subtag elements.</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -23,13 +23,17 @@ <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>array</type> <methodname>locale_parse_locale</methodname> <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> - <para>Returns a key-value array of locale ID subtag elements.</para> + <para> + Returns a key-value array of locale ID subtag elements. + </para> </refsect1> <refsect1 role="parameters"> @@ -40,7 +44,7 @@ <term><parameter>locale</parameter></term> <listitem> <para> - the locale to extract the subtag array from. Note: The 'variant' and + The locale to extract the subtag array from. Note: The 'variant' and 'private' subtags can take maximum 15 values whereas 'extlang' can take maximum 3 values. </para> @@ -50,7 +54,6 @@ </para> </refsect1> - <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> @@ -66,16 +69,14 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_parse_locale</function> example - </title> + <title><function>locale_parse_locale</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $arr = locale_parse( 'sl-Latn-IT-nedis'); -if( $arr){ - foreach( $arr as $key => $value){ - echo '$key : $value , '; +if($arr) { + foreach( $arr as $key => $value) { + echo '$key : $value , '; } } ?> @@ -85,12 +86,12 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $arr = Locale::parseLocale( 'sl-Latn-IT-nedis'); -if( $arr){ - foreach( $arr as $key => $value){ - echo '$key : $value , '; +if($arr) { + foreach( $arr as $key => $value) { + echo '$key : $value , '; } } ?> @@ -99,7 +100,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ language : sl , script : Latn , region : IT , variant0 : NEDIS , ]]> </screen> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/locale-set-default.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/locale/locale-set-default.xml diff -u phpdoc/en/reference/intl/locale/locale-set-default.xml:1.1.2.1 phpdoc/en/reference/intl/locale/locale-set-default.xml:1.1.2.2 --- phpdoc/en/reference/intl/locale/locale-set-default.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/locale/locale-set-default.xml Thu Dec 6 21:08:03 2007 @@ -1,15 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.setdefault"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.setdefault"> <refnamediv> <refname>Locale::setDefault</refname> <refname>locale_set_default</refname> <refpurpose>sets the default runtime locale</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Locale</classname> @@ -21,14 +23,16 @@ <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>boolean</type> <methodname>locale_set_default</methodname> <methodparam><type>string</type><parameter>locale</parameter></methodparam> </methodsynopsis> <para> - sets the default runtime locale to $locale. This changes the value of INTL + Sets the default runtime locale to $locale. This changes the value of INTL global 'default_locale' locale identifier. UAX #35 extensions are accepted. </para> </refsect1> @@ -40,7 +44,9 @@ <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>is a BCP 47 compliant language tag containing the</para> + <para> + Is a BCP 47 compliant language tag containing the + </para> </listitem> </varlistentry> </variablelist> @@ -50,17 +56,17 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>&return.success;</para> + <para> + &return.success; + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>locale_set_default</function> example - </title> + <title><function>locale_set_default</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php locale_set_default('de-DE'); echo locale_get_default(); @@ -71,7 +77,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php Locale::setDefault('de-DE'); echo Locale::getDefault(); @@ -81,9 +87,9 @@ </example> &example.outputs; <screen> - <![CDATA[ - de-DE - ]]> +<![CDATA[ +de-DE +]]> </screen> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/messageformatter/msgfmt-create.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/messageformatter/msgfmt-create.xml diff -u phpdoc/en/reference/intl/messageformatter/msgfmt-create.xml:1.1.2.1 phpdoc/en/reference/intl/messageformatter/msgfmt-create.xml:1.1.2.2 --- phpdoc/en/reference/intl/messageformatter/msgfmt-create.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/messageformatter/msgfmt-create.xml Thu Dec 6 21:08:03 2007 @@ -1,17 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="messageformatter.create"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="messageformatter.create"> <refnamediv> <refname>MessageFormatter::create</refname> <refname>MessageFormatter::__construct</refname> <refname>msgfmt_create</refname> <refpurpose>Constructs a new Message Formatter</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style (method)</para> + <para> + Object oriented style (method) + </para> <classsynopsis> <ooclass> <classname>MessageFormatter</classname> @@ -23,7 +24,9 @@ <methodparam><type>string</type><parameter>pattern</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Object oriented style (constructor):</para> + <para> + Object oriented style (constructor): + </para> <classsynopsis> <ooclass> <classname>MessageFormatter</classname> @@ -34,14 +37,18 @@ <methodparam><type>string</type><parameter>pattern</parameter></methodparam> </constructorsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>MessageFormatter</type> <methodname>msgfmt_create</methodname> <methodparam><type>string</type><parameter>locale</parameter></methodparam> <methodparam><type>string</type><parameter>pattern</parameter></methodparam> </methodsynopsis> - <para>Constructs a new Message Formatter</para> + <para> + Constructs a new Message Formatter + </para> </refsect1> <refsect1 role="parameters"> @@ -51,13 +58,17 @@ <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the locale to use when formatting arguments</para> + <para> + The locale to use when formatting arguments + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>pattern</parameter></term> <listitem> - <para>the pattern string to stick arguments into</para> + <para> + The pattern string to stick arguments into + </para> </listitem> </varlistentry> </variablelist> @@ -67,17 +78,17 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>formatter object</para> + <para> + The formatter <type>object</type> + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>msgfmt_create</function> example - </title> + <title><function>msgfmt_create</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = msgfmt_create("en_US", "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree"); echo msgfmt_format($fmt, array(4560, 123, 4560/123)); @@ -90,7 +101,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new MessageFormatter("en_US", "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree"); echo $fmt->format(array(4560, 123, 4560/123)); http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/messageformatter/msgfmt-format-message.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/messageformatter/msgfmt-format-message.xml diff -u phpdoc/en/reference/intl/messageformatter/msgfmt-format-message.xml:1.1.2.1 phpdoc/en/reference/intl/messageformatter/msgfmt-format-message.xml:1.1.2.2 --- phpdoc/en/reference/intl/messageformatter/msgfmt-format-message.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/messageformatter/msgfmt-format-message.xml Thu Dec 6 21:08:03 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="messageformatter.formatmessage"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="messageformatter.formatmessage"> <refnamediv> <refname>MessageFormatter::formatMessage</refname> <refname>msgfmt_format_message</refname> <refpurpose>Quick format message</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>MessageFormatter</classname> @@ -24,7 +25,9 @@ <methodparam><type>array</type><parameter>args</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>msgfmt_format_message</methodname> @@ -47,19 +50,25 @@ <varlistentry> <term><parameter>locale</parameter></term> <listitem> - <para>the locale to use for formatting locale-dependent parts</para> + <para> + The locale to use for formatting locale-dependent parts + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>pattern</parameter></term> <listitem> - <para>the pattern string to insert things into</para> + <para> + The pattern <type>string</type> to insert things into + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>args</parameter></term> <listitem> - <para>the array of values to insert into the format string</para> + <para> + The <type>array</type> of values to insert into the format <type>string</type> + </para> </listitem> </varlistentry> </variablelist> @@ -70,18 +79,16 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - the formatted pattern string or &false; if an error occured + The formatted pattern string or &false; if an error occurred </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>msgfmt_format_message</function> example - </title> + <title><function>msgfmt_format_message</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo msgfmt_format_message("en_US", "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree", array(4560, 123, 4560/123)); echo msgfmt_format_message("de", "{0,number,integer} Affen über {1,number,integer} Bäume um {2,number} Affen pro Baum", array(4560, 123, 4560/123)); @@ -91,7 +98,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php echo msgfmt_format_message("en_US", "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree", array(4560, 123, 4560/123)); echo msgfmt_format_message("de", "{0,number,integer} Affen über {1,number,integer} Bäume um {2,number} Affen pro Baum", array(4560, 123, 4560/123)); @@ -101,7 +108,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ 4,560 monkeys on 123 trees make 37.073 monkeys per tree 4.560 Affen über 123 Bäume um 37,073 Affen pro Baum ]]> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/messageformatter/msgfmt-format.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/messageformatter/msgfmt-format.xml diff -u phpdoc/en/reference/intl/messageformatter/msgfmt-format.xml:1.1.2.1 phpdoc/en/reference/intl/messageformatter/msgfmt-format.xml:1.1.2.2 --- phpdoc/en/reference/intl/messageformatter/msgfmt-format.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/messageformatter/msgfmt-format.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="messageformatter.format"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="messageformatter.format"> <refnamediv> <refname>MessageFormatter::format</refname> <refname>msgfmt_format</refname> <refpurpose>Format the message</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>MessageFormatter</classname> @@ -21,7 +22,9 @@ <methodparam><type>array</type><parameter>args</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>msgfmt_format</methodname> @@ -41,13 +44,17 @@ <varlistentry> <term><parameter>fmt</parameter></term> <listitem> - <para>The message formatter</para> + <para> + The message formatter + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>args</parameter></term> <listitem> - <para>arguments to insert into the format string</para> + <para> + Arguments to insert into the format string + </para> </listitem> </varlistentry> </variablelist> @@ -58,18 +65,16 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - the formatted string, or &false; if an error ocurred + The formatted string, or &false; if an error occurred </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>msgfmt_format</function> example - </title> + <title><function>msgfmt_format</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = msgfmt_create("en_US", "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree"); echo msgfmt_format($fmt, array(4560, 123, 4560/123)); @@ -82,7 +87,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new MessageFormatter("en_US", "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree"); echo $fmt->format(array(4560, 123, 4560/123)); @@ -94,7 +99,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ 4,560 monkeys on 123 trees make 37.073 monkeys per tree 4.560 Affen über 123 Bäume um 37,073 Affen pro Baum ]]> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/messageformatter/msgfmt-get-error-code.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/messageformatter/msgfmt-get-error-code.xml diff -u phpdoc/en/reference/intl/messageformatter/msgfmt-get-error-code.xml:1.1.2.1 phpdoc/en/reference/intl/messageformatter/msgfmt-get-error-code.xml:1.1.2.2 --- phpdoc/en/reference/intl/messageformatter/msgfmt-get-error-code.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/messageformatter/msgfmt-get-error-code.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="messageformatter.geterrorcode"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="messageformatter.geterrorcode"> <refnamediv> <refname>MessageFormatter::getErrorCode</refname> <refname>msgfmt_get_error_code</refname> <refpurpose>Get the error code from last operation</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>MessageFormatter</classname> @@ -21,13 +22,17 @@ <void /> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>integer</type> <methodname>msgfmt_get_error_code</methodname> <methodparam><type>MessageFormatter</type><parameter>fmt</parameter></methodparam> </methodsynopsis> - <para>Get the error code from last operation.</para> + <para> + Get the error code from last operation. + </para> </refsect1> <refsect1 role="parameters"> @@ -37,7 +42,9 @@ <varlistentry> <term><parameter>fmt</parameter></term> <listitem> - <para>The message formatter</para> + <para> + The message formatter + </para> </listitem> </varlistentry> </variablelist> @@ -48,23 +55,21 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - the error code, one of UErrorCode values. Initial value is U_ZERO_ERROR. + The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>msgfmt_get_error_code</function> example - </title> + <title><function>msgfmt_get_error_code</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = msgfmt_create("en_US", "{0, number} monkeys on {1, number} trees"); $str = msgfmt_format($fmt, array()); if(!$str) { - echo "ERROR: ".msgfmt_get_error_message($fmt) . " (" . msgfmt_get_error_code($fmt) . ")\n"; + echo "ERROR: ".msgfmt_get_error_message($fmt) . " (" . msgfmt_get_error_code($fmt) . ")\n"; } ?> ]]> @@ -73,12 +78,12 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new MessageFormatter("en_US", "{0, number} monkeys on {1, number} trees"); $str = $fmt->format(array()); if(!$str) { - echo "ERROR: ".$fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ")\n"; + echo "ERROR: ".$fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ")\n"; } ?> ]]> @@ -86,7 +91,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ ERROR: msgfmt_format: not enough parameters: U_ILLEGAL_ARGUMENT_ERROR (1) ]]> </screen> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/messageformatter/msgfmt-get-error-message.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/messageformatter/msgfmt-get-error-message.xml diff -u phpdoc/en/reference/intl/messageformatter/msgfmt-get-error-message.xml:1.1.2.1 phpdoc/en/reference/intl/messageformatter/msgfmt-get-error-message.xml:1.1.2.2 --- phpdoc/en/reference/intl/messageformatter/msgfmt-get-error-message.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/messageformatter/msgfmt-get-error-message.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="messageformatter.geterrormessage"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="messageformatter.geterrormessage"> <refnamediv> <refname>MessageFormatter::getErrorMessage</refname> <refname>msgfmt_get_error_message</refname> <refpurpose>Get the error text from the last operation</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>MessageFormatter</classname> @@ -21,13 +22,17 @@ <void /> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>msgfmt_get_error_message</methodname> <methodparam><type>MessageFormatter</type><parameter>fmt</parameter></methodparam> </methodsynopsis> - <para>Get the error text from the last operation.</para> + <para> + Get the error text from the last operation. + </para> </refsect1> <refsect1 role="parameters"> @@ -37,7 +42,9 @@ <varlistentry> <term><parameter>fmt</parameter></term> <listitem> - <para>The message formatter</para> + <para> + The message formatter + </para> </listitem> </varlistentry> </variablelist> @@ -47,22 +54,22 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>Description of the last error.</para> + <para> + Description of the last error. + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>msgfmt_get_error_message</function> example - </title> + <title><function>msgfmt_get_error_message</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = msgfmt_create("en_US", "{0, number} monkeys on {1, number} trees"); $str = msgfmt_format($fmt, array()); if(!$str) { - echo "ERROR: ".msgfmt_get_error_message($fmt) . " (" . msgfmt_get_error_code($fmt) . ")\n"; + echo "ERROR: ".msgfmt_get_error_message($fmt) . " (" . msgfmt_get_error_code($fmt) . ")\n"; } ?> ]]> @@ -71,12 +78,12 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new MessageFormatter("en_US", "{0, number} monkeys on {1, number} trees"); $str = $fmt->format(array()); if(!$str) { - echo "ERROR: ".$fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ")\n"; + echo "ERROR: ".$fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ")\n"; } ?> ]]> @@ -84,7 +91,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ ERROR: msgfmt_format: not enough parameters: U_ILLEGAL_ARGUMENT_ERROR (1) ]]> </screen> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/messageformatter/msgfmt-get-locale.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/messageformatter/msgfmt-get-locale.xml diff -u phpdoc/en/reference/intl/messageformatter/msgfmt-get-locale.xml:1.1.2.1 phpdoc/en/reference/intl/messageformatter/msgfmt-get-locale.xml:1.1.2.2 --- phpdoc/en/reference/intl/messageformatter/msgfmt-get-locale.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/messageformatter/msgfmt-get-locale.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="messageformatter.getlocale"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="messageformatter.getlocale"> <refnamediv> <refname>MessageFormatter::getLocale</refname> <refname>msgfmt_get_locale</refname> <refpurpose>Get the locale for which the formatter was created.</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>MessageFormatter</classname> @@ -21,13 +22,17 @@ <void /> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>msgfmt_get_locale</methodname> <methodparam><type>NumberFormatter</type><parameter>formatter</parameter></methodparam> </methodsynopsis> - <para>Get the locale for which the formatter was created.</para> + <para> + Get the locale for which the formatter was created. + </para> </refsect1> <refsect1 role="parameters"> @@ -37,7 +42,9 @@ <varlistentry> <term><parameter>formatter</parameter></term> <listitem> - <para>The formatter resource</para> + <para> + The formatter resource + </para> </listitem> </varlistentry> </variablelist> @@ -47,17 +54,17 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>locale name</para> + <para> + The locale name + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>msgfmt_get_locale</function> example - </title> + <title><function>msgfmt_get_locale</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = msgfmt_create('en_US', "Number {0,number}"); echo msgfmt_get_locale($fmt); @@ -68,7 +75,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new MessageFormatter('en_US', "Number {0,number}"); echo $fmt->getLocale(); @@ -78,7 +85,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ en_US ]]> </screen> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/messageformatter/msgfmt-get-pattern.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/messageformatter/msgfmt-get-pattern.xml diff -u phpdoc/en/reference/intl/messageformatter/msgfmt-get-pattern.xml:1.1.2.1 phpdoc/en/reference/intl/messageformatter/msgfmt-get-pattern.xml:1.1.2.2 --- phpdoc/en/reference/intl/messageformatter/msgfmt-get-pattern.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/messageformatter/msgfmt-get-pattern.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="messageformatter.getpattern"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="messageformatter.getpattern"> <refnamediv> <refname>MessageFormatter::getPattern</refname> <refname>msgfmt_get_pattern</refname> <refpurpose>Get the pattern used by the formatter</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>MessageFormatter</classname> @@ -21,13 +22,17 @@ <void /> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>msgfmt_get_pattern</methodname> <methodparam><type>MessageFormatter</type><parameter>fmt</parameter></methodparam> </methodsynopsis> - <para>Get the pattern used by the formatter</para> + <para> + Get the pattern used by the formatter + </para> </refsect1> <refsect1 role="parameters"> @@ -37,7 +42,9 @@ <varlistentry> <term><parameter>fmt</parameter></term> <listitem> - <para>The message formatter</para> + <para> + The message formatter + </para> </listitem> </varlistentry> </variablelist> @@ -47,17 +54,17 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>the pattern string for this message formatter</para> + <para> + The pattern <type>string</type> for this message formatter + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>msgfmt_get_pattern</function> example - </title> + <title><function>msgfmt_get_pattern</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = msgfmt_create( "en_US", "{0, number} monkeys on {1, number} trees" ); echo "Default pattern: '" . msgfmt_get_pattern( $fmt ) . "'\n"; @@ -73,7 +80,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new MessageFormatter( "en_US", "{0, number} monkeys on {1, number} trees" ); echo "Default pattern: '" . $fmt->getPattern() . "'\n"; @@ -88,7 +95,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ Default pattern: '{0,number} monkeys on {1,number} trees' Formatting result: 123 monkeys on 456 trees New pattern: '{0,number} trees hosting {1,number} monkeys' http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/messageformatter/msgfmt-parse-message.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/messageformatter/msgfmt-parse-message.xml diff -u phpdoc/en/reference/intl/messageformatter/msgfmt-parse-message.xml:1.1.2.1 phpdoc/en/reference/intl/messageformatter/msgfmt-parse-message.xml:1.1.2.2 --- phpdoc/en/reference/intl/messageformatter/msgfmt-parse-message.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/messageformatter/msgfmt-parse-message.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="messageformatter.parsemessage"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="messageformatter.parsemessage"> <refnamediv> <refname>MessageFormatter::parseMessage</refname> <refname>msgfmt_parse_message</refname> <refpurpose>Quick parse input string</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>MessageFormatter</classname> @@ -23,7 +24,9 @@ <methodparam><type>string</type><parameter>value</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>array</type> <methodname>msgfmt_parse_message</methodname> @@ -45,14 +48,16 @@ <term><parameter>locale</parameter></term> <listitem> <para> - the locale to use for parsing locale-dependent parts + The locale to use for parsing locale-dependent parts </para> </listitem> </varlistentry> <varlistentry> <term><parameter>value</parameter></term> <listitem> - <para>string to parse for items</para> + <para> + The <type>string</type> to parse for items + </para> </listitem> </varlistentry> </variablelist> @@ -63,18 +68,16 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - array containing items extracted, or &false; on error + An <type>array</type> containing items extracted, or &false; on error </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>msgfmt_parse_message</function> example - </title> + <title><function>msgfmt_parse_message</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = msgfmt_parse_message('en_US', "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree", "4,560 monkeys on 123 trees make 37.073 monkeys per tree"); @@ -90,7 +93,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = MessageFormatter::parseMessage('en_US', "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree", "4,560 monkeys on 123 trees make 37.073 monkeys per tree"); @@ -105,7 +108,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ array ( 0 => 4560, 1 => 123, http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/messageformatter/msgfmt-parse.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/messageformatter/msgfmt-parse.xml diff -u phpdoc/en/reference/intl/messageformatter/msgfmt-parse.xml:1.1.2.1 phpdoc/en/reference/intl/messageformatter/msgfmt-parse.xml:1.1.2.2 --- phpdoc/en/reference/intl/messageformatter/msgfmt-parse.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/messageformatter/msgfmt-parse.xml Thu Dec 6 21:08:04 2007 @@ -1,15 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="messageformatter.parse"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="messageformatter.parse"> <refnamediv> <refname>MessageFormatter::parse</refname> <refname>msgfmt_parse</refname> <refpurpose>Parse input string according to pattern</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>MessageFormatter</classname> @@ -20,14 +22,18 @@ <methodparam><type>string</type><parameter>value</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>array</type> <methodname>msgfmt_parse</methodname> <methodparam><type>MessageFormatter</type><parameter>fmt</parameter></methodparam> <methodparam><type>string</type><parameter>value</parameter></methodparam> </methodsynopsis> - <para>Parses input string and return any extracted items as an array/</para> + <para> + Parses input <type>string</type> and return any extracted items as an <type>array</type>. + </para> </refsect1> <refsect1 role="parameters"> @@ -37,13 +43,17 @@ <varlistentry> <term><parameter>fmt</parameter></term> <listitem> - <para>The message formatter</para> + <para> + The message formatter + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>value</parameter></term> <listitem> - <para>string to parse</para> + <para> + The <type>string</type> to parse + </para> </listitem> </varlistentry> </variablelist> @@ -54,18 +64,16 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - array containing items extracted, or &false; on error + An <type>array</type> containing the items extracted, or &false; on error </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>msgfmt_parse</function> example - </title> + <title><function>msgfmt_parse</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = msgfmt_create('en_US', "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree"); $res = msgfmt_parse($fmt, "4,560 monkeys on 123 trees make 37.073 monkeys per tree"); @@ -81,7 +89,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new MessageFormatter('en_US', "{0,number,integer} monkeys on {1,number,integer} trees make {2,number} monkeys per tree"); $res = $fmt->parse("4,560 monkeys on 123 trees make 37.073 monkeys per tree"); @@ -96,7 +104,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ array ( 0 => 4560, 1 => 123, http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/messageformatter/msgfmt-set-pattern.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/messageformatter/msgfmt-set-pattern.xml diff -u phpdoc/en/reference/intl/messageformatter/msgfmt-set-pattern.xml:1.1.2.1 phpdoc/en/reference/intl/messageformatter/msgfmt-set-pattern.xml:1.1.2.2 --- phpdoc/en/reference/intl/messageformatter/msgfmt-set-pattern.xml:1.1.2.1 Fri Nov 30 20:01:36 2007 +++ phpdoc/en/reference/intl/messageformatter/msgfmt-set-pattern.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="messageformatter.setpattern"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="messageformatter.setpattern"> <refnamediv> <refname>MessageFormatter::setPattern</refname> <refname>msgfmt_set_pattern</refname> <refpurpose>Set the pattern used by the formatter</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>MessageFormatter</classname> @@ -21,14 +22,18 @@ <methodparam><type>string</type><parameter>pattern</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>boolean</type> <methodname>msgfmt_set_pattern</methodname> <methodparam><type>MessageFormatter</type><parameter>fmt</parameter></methodparam> <methodparam><type>string</type><parameter>pattern</parameter></methodparam> </methodsynopsis> - <para>Set the pattern used by the formatter</para> + <para> + Set the pattern used by the formatter + </para> </refsect1> <refsect1 role="parameters"> @@ -38,13 +43,17 @@ <varlistentry> <term><parameter>fmt</parameter></term> <listitem> - <para>The message formatter</para> + <para> + The message formatter + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>pattern</parameter></term> <listitem> - <para>the pattern string to use in this message formatter</para> + <para> + The pattern <type>string</type> to use in this message formatter + </para> </listitem> </varlistentry> </variablelist> @@ -62,11 +71,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>msgfmt_set_pattern</function> example - </title> + <title><function>msgfmt_set_pattern</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = msgfmt_create( "en_US", "{0, number} monkeys on {1, number} trees" ); echo "Default pattern: '" . msgfmt_get_pattern( $fmt ) . "'\n"; @@ -82,7 +89,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new MessageFormatter( "en_US", "{0, number} monkeys on {1, number} trees" ); echo "Default pattern: '" . $fmt->getPattern() . "'\n"; @@ -97,7 +104,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ Default pattern: '{0,number} monkeys on {1,number} trees' Formatting result: 123 monkeys on 456 trees New pattern: '{0,number} trees hosting {1,number} monkeys' http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/normalizer/normalizer-is-normalized.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/normalizer/normalizer-is-normalized.xml diff -u phpdoc/en/reference/intl/normalizer/normalizer-is-normalized.xml:1.1.2.1 phpdoc/en/reference/intl/normalizer/normalizer-is-normalized.xml:1.1.2.2 --- phpdoc/en/reference/intl/normalizer/normalizer-is-normalized.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/normalizer/normalizer-is-normalized.xml Thu Dec 6 21:08:04 2007 @@ -1,19 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xml:id="normalizer.isnormalized"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="normalizer.isnormalized"> <refnamediv> <refname>Normalizer::isNormalized</refname> <refname>normalizer_is_normalized</refname> - <refpurpose> - Checks if the provided string is already in the specified normalization - form. - </refpurpose> + <refpurpose>Checks if the provided string is already in the specified normalization form.</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Normalizer</classname> @@ -27,7 +25,9 @@ <methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>boolean</type> <methodname>normalizer_is_normalized</methodname> @@ -48,19 +48,25 @@ <varlistentry> <term><parameter>input</parameter></term> <listitem> - <para>The input string to normalize</para> + <para> + The input string to normalize + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>form</parameter></term> <listitem> - <para>One of the normalization forms</para> + <para> + One of the normalization forms + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>options</parameter></term> <listitem> - <para>Normalization options</para> + <para> + Normalization options + </para> </listitem> </varlistentry> </variablelist> @@ -70,17 +76,17 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>&true; if normalized, &false; otherwise or if there an error</para> + <para> + &true; if normalized, &false; otherwise or if there an error + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>normalizer_is_normalized</function> example - </title> + <title><function>normalizer_is_normalized</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $char_A_ring = "\xC3\x85"; // 'LATIN CAPITAL LETTER A WITH RING ABOVE' (U+00C5) $char_combining_ring_above = "\xCC\x8A"; // 'COMBINING RING ABOVE' (U+030A) @@ -98,7 +104,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $char_A_ring = "\xC3\x85"; // 'LATIN CAPITAL LETTER A WITH RING ABOVE' (U+00C5) $char_combining_ring_above = "\xCC\x8A"; // 'COMBINING RING ABOVE' (U+030A) @@ -115,7 +121,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ not normalized; normalized ]]> </screen> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/normalizer/normalizer-normalize.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/normalizer/normalizer-normalize.xml diff -u phpdoc/en/reference/intl/normalizer/normalizer-normalize.xml:1.1.2.1 phpdoc/en/reference/intl/normalizer/normalizer-normalize.xml:1.1.2.2 --- phpdoc/en/reference/intl/normalizer/normalizer-normalize.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/normalizer/normalizer-normalize.xml Thu Dec 6 21:08:04 2007 @@ -1,17 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="normalizer.normalize"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="normalizer.normalize"> <refnamediv> <refname>Normalizer::normalize</refname> <refname>normalizer_normalize</refname> - <refpurpose> - Normalizes the input provided and returns the normalized string - </refpurpose> + <refpurpose>Normalizes the input provided and returns the normalized string</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>Normalizer</classname> @@ -25,7 +25,9 @@ <methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>normalizer_normalize</methodname> @@ -33,7 +35,9 @@ <methodparam choice="opt"><type>string</type><parameter>form</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter>options</parameter></methodparam> </methodsynopsis> - <para>Normalizes the input provided and returns the normalized string</para> + <para> + Normalizes the input provided and returns the normalized <type>string</type> + </para> </refsect1> <refsect1 role="parameters"> @@ -43,19 +47,25 @@ <varlistentry> <term><parameter>input</parameter></term> <listitem> - <para>The input string to normalize</para> + <para> + The input string to normalize + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>form</parameter></term> <listitem> - <para>One of the normalization forms</para> + <para> + One of the normalization forms + </para> </listitem> </varlistentry> <varlistentry> <term><parameter>options</parameter></term> <listitem> - <para>Normalization options</para> + <para> + Normalization options + </para> </listitem> </varlistentry> </variablelist> @@ -65,17 +75,17 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>The normalized string or &null; if an error occurred.</para> + <para> + The normalized string or &null; if an error occurred. + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>normalizer_normalize</function> example - </title> + <title><function>normalizer_normalize</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $char_A_ring = "\xC3\x85"; // 'LATIN CAPITAL LETTER A WITH RING ABOVE' (U+00C5) $char_combining_ring_above = "\xCC\x8A"; // 'COMBINING RING ABOVE' (U+030A) @@ -93,7 +103,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $char_A_ring = "\xC3\x85"; // 'LATIN CAPITAL LETTER A WITH RING ABOVE' (U+00C5) $char_combining_ring_above = "\xCC\x8A"; // 'COMBINING RING ABOVE' (U+030A) @@ -110,7 +120,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ %C3%85 %C3%85 ]]> </screen> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-create.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-create.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-create.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-create.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-create.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-create.xml Thu Dec 6 21:08:04 2007 @@ -1,17 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.create" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.create" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::create</refname> <refname>numfmt_create</refname> <refname>NumberFormatter::__construct</refname> <refpurpose>Create a number formatter</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style (method)</para> + <para> + Object oriented style (method) + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> </ooclass> @@ -24,7 +25,9 @@ <methodparam choice="opt"><type>string</type><parameter>pattern</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>NumberFormatter</type> <methodname>numfmt_create</methodname> @@ -32,7 +35,9 @@ <methodparam><type>integer</type><parameter>style</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>pattern</parameter></methodparam> </methodsynopsis> - <para>Object oriented style (constructor):</para> + <para> + Object oriented style (constructor): + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> </ooclass> @@ -43,7 +48,9 @@ <methodparam choice="opt"><type>string</type><parameter>pattern</parameter></methodparam> </constructorsynopsis> </classsynopsis> - <para>Creates a number formatter.</para> + <para> + Creates a number formatter. + </para> </refsect1> <refsect1 role="parameters"> @@ -69,9 +76,9 @@ or <constant>NumberFormatter::PATTERN_RULEBASED</constant> is passed then the number format is opened using the given pattern, which must conform to the syntax described in - <link xlink:href="&amp;url.icu.decimalformat;">ICU DecimalFormat + <link xlink:href="&url.icu.decimalformat;">ICU DecimalFormat documentation</link> or - <link xlink:href="&amp;url.icu.ruleformat;">ICU RuleBasedNumberFormat + <link xlink:href="&url.icu.ruleformat;">ICU RuleBasedNumberFormat documentation</link>, respectively. </para> </listitem> @@ -79,7 +86,9 @@ <varlistentry> <term><parameter>pattern</parameter></term> <listitem> - <para>Pattern string in case chosen style requires pattern.</para> + <para> + Pattern string in case chosen style requires pattern. + </para> </listitem> </varlistentry> </variablelist> @@ -97,11 +106,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_create</function> example - </title> + <title><function>numfmt_create</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); echo numfmt_format($fmt, 1234567.891234567890000)."\n"; @@ -112,11 +119,9 @@ </programlisting> </example> <example> - <title> - <function>NumberFormatter</function> example - </title> + <title><function>NumberFormatter</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); echo $fmt->format(1234567.891234567890000)."\n"; @@ -128,7 +133,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ 1.234.567,891 millicentoquarantadue ]]> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-format-currency.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-format-currency.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-format-currency.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-format-currency.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-format-currency.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-format-currency.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.formatcurrency" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.formatcurrency" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::formatCurrency</refname> <refname>numfmt_format_currency</refname> <refpurpose>Format a currency value</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -22,7 +23,9 @@ <methodparam><type>string</type><parameter>currency</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>numfmt_format_currency</methodname> @@ -30,7 +33,9 @@ <methodparam><type>double</type><parameter>value</parameter></methodparam> <methodparam><type>string</type><parameter>currency</parameter></methodparam> </methodsynopsis> - <para>Format the currency value according to the formatter rules.</para> + <para> + Format the currency value according to the formatter rules. + </para> </refsect1> <refsect1 role="parameters"> @@ -48,7 +53,9 @@ <varlistentry> <term><parameter>value</parameter></term> <listitem> - <para>The numeric currency value.</para> + <para> + The numeric currency value. + </para> </listitem> </varlistentry> <varlistentry> @@ -66,17 +73,17 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>String representing the formatted currency value.</para> + <para> + String representing the formatted currency value. + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_format_currency</function> example - </title> + <title><function>numfmt_format_currency</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::CURRENCY ); echo numfmt_format_currency($fmt, 1234567.891234567890000, "EUR")."\n"; @@ -91,7 +98,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::CURRENCY ); echo $fmt->formatCurrency(1234567.891234567890000, "EUR")."\n"; @@ -105,7 +112,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ 1.234.567,89 € 1.234.567,89 RUR 1 234 567,89€ http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-format.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-format.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-format.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-format.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-format.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-format.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.format" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.format" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::format</refname> <refname>numfmt_format</refname> <refpurpose>Format a number</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -22,7 +23,9 @@ <methodparam choice="opt"><type>integer</type><parameter>type</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>numfmt_format</methodname> @@ -30,7 +33,9 @@ <methodparam><type>integer|double</type><parameter>value</parameter></methodparam> <methodparam choice="opt"><type>integer</type><parameter>type</parameter></methodparam> </methodsynopsis> - <para>Format a numeric value according to the formatter rules.</para> + <para> + Format a numeric value according to the formatter rules. + </para> </refsect1> <refsect1 role="parameters"> @@ -79,16 +84,14 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_format</function> example - </title> + <title><function>numfmt_format</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); $data = numfmt_format($fmt, 1234567.891234567890000); if(intl_is_failure(numfmt_format($fmt))) { - report_error("Formatter error"); + report_error("Formatter error"); } ?> ]]> @@ -97,12 +100,12 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); $fmt->format(1234567.891234567890000); if(intl_is_failure($fmt->getErrorCode()) { - report_error("Formatter error"); + report_error("Formatter error"); } ?> ]]> @@ -110,7 +113,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ 1.234.567,891 ]]> </screen> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-get-attribute.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-get-attribute.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-get-attribute.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-get-attribute.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-get-attribute.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-get-attribute.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.getattribute" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.getattribute" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::getAttribute</refname> <refname>numfmt_get_attribute</refname> <refpurpose>Get an attribute</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -21,7 +22,9 @@ <methodparam><type>integer</type><parameter>attr</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>integer</type> <methodname>numfmt_get_attribute</methodname> @@ -73,11 +76,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_get_attribute</function> example - </title> + <title><function>numfmt_get_attribute</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); echo "Digits: ".numfmt_get_attribute($fmt, NumberFormatter::MAX_FRACTION_DIGITS)."\n"; @@ -92,7 +93,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); echo "Digits: ".$fmt->getAttribute(NumberFormatter::MAX_FRACTION_DIGITS)."\n"; @@ -106,7 +107,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ Digits: 3 1.234.567,891 Digits: 2 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-get-error-code.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-get-error-code.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-get-error-code.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-get-error-code.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-get-error-code.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-get-error-code.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.geterrorcode" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.geterrorcode" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::getErrorCode</refname> <refname>numfmt_get_error_code</refname> <refpurpose>Get formatter's last error code.</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -21,7 +22,9 @@ <void /> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>integer</type> <methodname>numfmt_get_error_code</methodname> @@ -51,22 +54,22 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>Returns error code from last formatter call.</para> + <para> + Returns error code from last formatter call. + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_get_error_code</function> example - </title> + <title><function>numfmt_get_error_code</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php -$fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); +$fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); $data = numfmt_format($fmt, 1234567.891234567890000); if(intl_is_failure(numfmt_get_error_code($fmt))) { - report_error("Formatter error"); + report_error("Formatter error"); } ?> ]]> @@ -75,12 +78,12 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); $fmt->format(1234567.891234567890000); if(intl_is_failure($fmt->getErrorCode()) { - report_error("Formatter error"); + report_error("Formatter error"); } ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-get-error-message.xml?r1=1.1.2.2&r2=1.1.2.3&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-get-error-message.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-get-error-message.xml:1.1.2.2 phpdoc/en/reference/intl/numberformatter/numfmt-get-error-message.xml:1.1.2.3 --- phpdoc/en/reference/intl/numberformatter/numfmt-get-error-message.xml:1.1.2.2 Thu Dec 6 20:12:35 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-get-error-message.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.2 $ --> -<refentry xml:id="numberformatter.geterrormessage" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.3 $ --> +<refentry xml:id="numberformatter.geterrormessage" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::getErrorMessage</refname> <refname>numfmt_get_error_message</refname> <refpurpose>Get formatter's last error message.</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -21,7 +22,9 @@ <void /> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>numfmt_get_error_message</methodname> @@ -51,22 +54,22 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>Returns error message from last formatter call.</para> + <para> + Returns error message from last formatter call. + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_get_error_message</function> example - </title> + <title><function>numfmt_get_error_message</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); $data = numfmt_format($fmt, 1234567.891234567890000); if(intl_is_failure(numfmt_get_error_code($fmt))) { - report_error("Formatter error"); + report_error("Formatter error"); } ?> ]]> @@ -75,12 +78,12 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); $fmt->format(1234567.891234567890000); if(intl_is_failure($fmt->getErrorCode()) { - report_error("Formatter error"); + report_error("Formatter error"); } ?> ]]> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-get-locale.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-get-locale.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-get-locale.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-get-locale.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-get-locale.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-get-locale.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.getlocale" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.getlocale" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::getLocale</refname> <refname>numfmt_get_locale</refname> <refpurpose>Get formatter locale</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -21,14 +22,18 @@ <methodparam choice="opt"><type>integer</type><parameter>type</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>numfmt_get_locale</methodname> <methodparam><type>NumberFormatter</type><parameter>fmt</parameter></methodparam> <methodparam choice="opt"><type>integer</type><parameter>type</parameter></methodparam> </methodsynopsis> - <para>Get formatter locale name.</para> + <para> + Get formatter locale name. + </para> </refsect1> <refsect1 role="parameters"> @@ -58,23 +63,22 @@ </para> </refsect1> - <refsect1 role="returnvalues"> &reftitle.returnvalues; - <para>The locale name used to create the formatter.</para> + <para> + The locale name used to create the formatter. + </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_get_locale</function> example - </title> + <title><function>numfmt_get_locale</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php -$req = 'fr_FR_PARIS'; -$fmt = numfmt_create( $req, NumberFormatter::DECIMAL); +$req = 'fr_FR_PARIS'; +$fmt = numfmt_create( $req, NumberFormatter::DECIMAL); $res_val = numfmt_get_locale( $fmt, Locale::VALID_LOCALE ); $res_act = numfmt_get_locale( $fmt, Locale::ACTUAL_LOCALE ); printf( "Requested locale name: %s\nValid locale name: %s\nActual locale name: %s\n", @@ -84,7 +88,7 @@ </programlisting> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ Requested locale name: fr_FR_PARIS Valid locale name: fr_FR Actual locale name: fr http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-get-pattern.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-get-pattern.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-get-pattern.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-get-pattern.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-get-pattern.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-get-pattern.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.getpattern" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.getpattern" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::getPattern</refname> <refname>numfmt_get_pattern</refname> <refpurpose>Get formatter pattern</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -21,13 +22,17 @@ <void /> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>numfmt_get_pattern</methodname> <methodparam><type>NumberFormatter</type><parameter>fmt</parameter></methodparam> </methodsynopsis> - <para>Extract pattern used by the formatter.</para> + <para> + Extract pattern used by the formatter. + </para> </refsect1> <refsect1 role="parameters"> @@ -50,18 +55,16 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Pattern string that is used by the formatter, or &false; if an error happens. + Pattern <type>string</type> that is used by the formatter, or &false; if an error happens. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_get_pattern</function> example - </title> + <title><function>numfmt_get_pattern</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); echo "Pattern: ".numfmt_get_pattern($fmt)."\n"; @@ -76,7 +79,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); echo "Pattern: ".$fmt->getPattern()."\n"; @@ -90,7 +93,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ Pattern: #,##0.### 1.234.567,891 Pattern: #0.# kg http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-get-symbol.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-get-symbol.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-get-symbol.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-get-symbol.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-get-symbol.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-get-symbol.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.getsymbol" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.getsymbol" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::getSymbol</refname> <refname>numfmt_get_symbol</refname> <refpurpose>Get a symbol value</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -21,7 +22,9 @@ <methodparam><type>integer</type><parameter>attr</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>numfmt_get_symbol</methodname> @@ -72,11 +75,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_get_symbol</function> example - </title> + <title><function>numfmt_get_symbol</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); echo "Sep: ".numfmt_get_symbol($fmt, NumberFormatter::GROUPING_SEPARATOR_SYMBOL)."\n"; @@ -91,7 +92,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); echo "Sep: ".$fmt->getSymbol(NumberFormatter::GROUPING_SEPARATOR_SYMBOL)."\n"; @@ -105,7 +106,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ Sep: . 1.234.567,891 Sep: * http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-get-text-attribute.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-get-text-attribute.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-get-text-attribute.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-get-text-attribute.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-get-text-attribute.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-get-text-attribute.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.gettextattribute" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.gettextattribute" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::getTextAttribute</refname> <refname>numfmt_get_text_attribute</refname> <refpurpose>Get a text attribute</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -21,7 +22,9 @@ <methodparam><type>integer</type><parameter>attr</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>string</type> <methodname>numfmt_get_text_attribute</methodname> @@ -77,11 +80,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_get_text_attribute</function> example - </title> + <title><function>numfmt_get_text_attribute</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); echo "Prefix: ".numfmt_get_text_attribute($fmt, NumberFormatter::NEGATIVE_PREFIX)."\n"; @@ -96,7 +97,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); echo "Prefix: ".$fmt->getTextAttribute(NumberFormatter::NEGATIVE_PREFIX)."\n"; @@ -110,7 +111,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ Prefix: - -1.234.567,891 Prefix: MINUS http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-parse-currency.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-parse-currency.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-parse-currency.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-parse-currency.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-parse-currency.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-parse-currency.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.parsecurrency" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.parsecurrency" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::parseCurrency</refname> <refname>numfmt_parse_currency</refname> <refpurpose>Parse a currency number</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -23,7 +24,9 @@ <methodparam choice="opt"><type>integer</type><parameter role="reference">position</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>double</type> <methodname>numfmt_parse_currency</methodname> @@ -82,11 +85,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_parse_currency</function> example - </title> + <title><function>numfmt_parse_currency</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::CURRENCY ); $num = "1.234.567,89 $"; @@ -98,7 +99,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::CURRENCY ); $num = "1.234.567,89 $"; @@ -109,7 +110,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ We have 1234567.89 in USD ]]> </screen> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-parse.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-parse.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-parse.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-parse.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-parse.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-parse.xml Thu Dec 6 21:08:04 2007 @@ -1,15 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.parse" xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.parse" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::parse</refname> <refname>numfmt_parse</refname> <refpurpose>Parse a number</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -22,7 +24,9 @@ <methodparam choice="opt"><type>integer</type><parameter role="reference">position</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>mixed</type> <methodname>numfmt_parse</methodname> @@ -31,7 +35,9 @@ <methodparam choice="opt"><type>integer</type><parameter>type</parameter></methodparam> <methodparam choice="opt"><type>integer</type><parameter role="reference">position</parameter></methodparam> </methodsynopsis> - <para>Parse a string into a number using the current formatter rules.</para> + <para> + Parse a string into a number using the current formatter rules. + </para> </refsect1> <refsect1 role="parameters"> @@ -81,11 +87,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_parse</function> example - </title> + <title><function>numfmt_parse</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); $num = "1.234.567,891"; @@ -98,7 +102,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); $num = "1.234.567,891"; @@ -110,7 +114,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ 1234567.891 1234567 ]]> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-set-attribute.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-set-attribute.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-set-attribute.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-set-attribute.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-set-attribute.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-set-attribute.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.setattribute" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.setattribute" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::setAttribute</refname> <refname>numfmt_set_attribute</refname> <refpurpose>Set an attribute</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -22,7 +23,9 @@ <methodparam><type>integer</type><parameter>value</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>bool</type> <methodname>numfmt_set_attribute</methodname> @@ -63,7 +66,9 @@ <varlistentry> <term><parameter>value</parameter></term> <listitem> - <para>The attribute value.</para> + <para> + The attribute value. + </para> </listitem> </varlistentry> </variablelist> @@ -81,11 +86,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_set_attribute</function> example - </title> + <title><function>numfmt_set_attribute</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); echo "Digits: ".numfmt_get_attribute($fmt, NumberFormatter::MAX_FRACTION_DIGITS)."\n"; @@ -100,7 +103,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); echo "Digits: ".$fmt->getAttribute(NumberFormatter::MAX_FRACTION_DIGITS)."\n"; @@ -114,7 +117,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ Digits: 3 1.234.567,891 Digits: 2 http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-set-pattern.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-set-pattern.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-set-pattern.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-set-pattern.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-set-pattern.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-set-pattern.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.setpattern" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.setpattern" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::setPattern</refname> <refname>numfmt_set_pattern</refname> <refpurpose>Set formatter pattern</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -21,7 +22,9 @@ <methodparam><type>string</type><parameter>pattern</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>bool</type> <methodname>numfmt_set_pattern</methodname> @@ -71,11 +74,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_set_pattern</function> example - </title> + <title><function>numfmt_set_pattern</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); echo "Pattern: ".numfmt_get_pattern($fmt)."\n"; @@ -90,7 +91,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); echo "Pattern: ".$fmt->getPattern()."\n"; @@ -104,7 +105,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ Pattern: #,##0.### 1.234.567,891 Pattern: #0.# kg http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-set-symbol.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-set-symbol.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-set-symbol.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-set-symbol.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-set-symbol.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-set-symbol.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.setsymbol" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.setsymbol" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::setSymbol</refname> <refname>numfmt_set_symbol</refname> <refpurpose>Set a symbol value</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -22,7 +23,9 @@ <methodparam><type>string</type><parameter>value</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>bool</type> <methodname>numfmt_set_symbol</methodname> @@ -62,7 +65,9 @@ <varlistentry> <term><parameter>value</parameter></term> <listitem> - <para>Text for the symbol.</para> + <para> + Text for the symbol. + </para> </listitem> </varlistentry> </variablelist> @@ -80,11 +85,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_set_symbol</function> example - </title> + <title><function>numfmt_set_symbol</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); echo "Sep: ".numfmt_get_symbol($fmt, NumberFormatter::GROUPING_SEPARATOR_SYMBOL)."\n"; @@ -99,7 +102,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); echo "Sep: ".$fmt->getSymbol(NumberFormatter::GROUPING_SEPARATOR_SYMBOL)."\n"; @@ -113,7 +116,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ Sep: . 1.234.567,891 Sep: * http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/numberformatter/numfmt-set-text-attribute.xml?r1=1.1.2.1&r2=1.1.2.2&diff_format=u Index: phpdoc/en/reference/intl/numberformatter/numfmt-set-text-attribute.xml diff -u phpdoc/en/reference/intl/numberformatter/numfmt-set-text-attribute.xml:1.1.2.1 phpdoc/en/reference/intl/numberformatter/numfmt-set-text-attribute.xml:1.1.2.2 --- phpdoc/en/reference/intl/numberformatter/numfmt-set-text-attribute.xml:1.1.2.1 Fri Nov 30 20:01:37 2007 +++ phpdoc/en/reference/intl/numberformatter/numfmt-set-text-attribute.xml Thu Dec 6 21:08:04 2007 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1.2.1 $ --> -<refentry xml:id="numberformatter.settextattribute" - xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink"> +<!-- $Revision: 1.1.2.2 $ --> +<refentry xml:id="numberformatter.settextattribute" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>NumberFormatter::setTextAttribute</refname> <refname>numfmt_set_text_attribute</refname> <refpurpose>Set a text attribute</refpurpose> </refnamediv> + <refsect1 role="description"> &reftitle.description; - <para>Object oriented style</para> + <para> + Object oriented style + </para> <classsynopsis> <ooclass> <classname>NumberFormatter</classname> @@ -22,7 +23,9 @@ <methodparam><type>string</type><parameter>value</parameter></methodparam> </methodsynopsis> </classsynopsis> - <para>Procedural style</para> + <para> + Procedural style + </para> <methodsynopsis> <type>bool</type> <methodname>numfmt_set_text_attribute</methodname> @@ -33,7 +36,7 @@ <para> Set a text attribute associated with the formatter. An example of a text attribute is the suffix for positive numbers. If the formatter does not - understand the attributre, + understand the attribute, <constant>U_UNSUPPORTED_ERROR</constant> error is produced. Rule-based formatters only understand <constant>NumberFormatter::DEFAULT_RULESET</constant> and @@ -58,10 +61,7 @@ <listitem> <para> Attribute specifier - one of the - <link - linkend="intl.numberformatter-constants.UNumberFormatTextAttribute"> - text attribute - </link> + <link linkend="intl.numberformatter-constants.UNumberFormatTextAttribute">text attribute</link> constants. </para> </listitem> @@ -69,7 +69,9 @@ <varlistentry> <term><parameter>value</parameter></term> <listitem> - <para>Text for the attribute value.</para> + <para> + Text for the attribute value. + </para> </listitem> </varlistentry> </variablelist> @@ -87,11 +89,9 @@ <refsect1 role="examples"> &reftitle.examples; <example> - <title> - <function>numfmt_set_text_attribute</function> example - </title> + <title><function>numfmt_set_text_attribute</function> example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); echo "Prefix: ".numfmt_get_text_attribute($fmt, NumberFormatter::NEGATIVE_PREFIX)."\n"; @@ -106,7 +106,7 @@ <example> <title>OO example</title> <programlisting role="php"> - <![CDATA[ +<![CDATA[ <?php $fmt = new NumberFormatter( 'de_DE', NumberFormatter::DECIMAL ); echo "Prefix: ".$fmt->getTextAttribute(NumberFormatter::NEGATIVE_PREFIX)."\n"; @@ -120,7 +120,7 @@ </example> &example.outputs; <screen> - <![CDATA[ +<![CDATA[ Prefix: - -1.234.567,891 Prefix: MINUS
« previous php.doc.cvs (#538) next »