cvs: phpdoc /en/reference/intl/locale filter-matches.xml
| From: | Stanislav Malyshev | Date: | Wed, 01 Jul 2009 20:16:13 +0000 |
| Subject: | cvs: phpdoc /en/reference/intl/locale filter-matches.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4307@lists.php.net to get a copy of this message | ||
stas Wed Jul 1 20:16:13 2009 UTC
Modified files:
/phpdoc/en/reference/intl/locale filter-matches.xml
Log:
fix filter-matches docs
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/intl/locale/filter-matches.xml?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc/en/reference/intl/locale/filter-matches.xml
diff -u phpdoc/en/reference/intl/locale/filter-matches.xml:1.4
phpdoc/en/reference/intl/locale/filter-matches.xml:1.5
--- phpdoc/en/reference/intl/locale/filter-matches.xml:1.4 Tue Nov 4 13:27:51 2008
+++ phpdoc/en/reference/intl/locale/filter-matches.xml Wed Jul 1 20:16:13 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<refentry xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xml:id="locale.filtermatches">
<refnamediv>
<refname>Locale::filterMatches</refname>
@@ -18,6 +18,7 @@
<methodname>Locale::filterMatches</methodname>
<methodparam><type>string</type><parameter>langtag</parameter></methodparam>
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
+
<methodparam><type>bool</type><parameter>canonicalize</parameter></methodparam>
</methodsynopsis>
<para>
Procedural style
@@ -27,6 +28,7 @@
<methodname>locale_filter_matches</methodname>
<methodparam><type>string</type><parameter>langtag</parameter></methodparam>
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
+
<methodparam><type>bool</type><parameter>canonicalize</parameter></methodparam>
</methodsynopsis>
<para>
Checks if a $langtag filter matches with $locale according to RFC 4647's
@@ -54,6 +56,15 @@
</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><parameter>canonicalize</parameter></term>
+ <listitem>
+ <para>
+ If true, the arguments will be converted to canonical form before
+ matching.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
</para>
</refsect1>
@@ -73,9 +84,9 @@
<programlisting role="php">
<![CDATA[
<?php
-echo (locale_filter_matches('de-DEVA','de-DE')) ? "Matches" :
"Does not match";
+echo (locale_filter_matches('de-DEVA','de-DE', false)) ? "Matches" :
"Does not match";
echo '; ';
-echo (locale_filter_matches('de-DE_1996','de-DE')) ? "Matches" :
"Does not match";
+echo (locale_filter_matches('de-DE_1996','de-DE', false)) ? "Matches"
: "Does not match";
?>
]]>
</programlisting>
@@ -85,9 +96,9 @@
<programlisting role="php">
<![CDATA[
<?php
-echo (Locale::filter_matches('de-DEVA','de-DE')) ? "Matches" :
"Does not match";
+echo (Locale::filterMatches('de-DEVA','de-DE', false)) ? "Matches" :
"Does not match";
echo '; ';
-echo (Locale::filter_matches('de-DE-1996','de-DE')) ? "Matches" :
"Does not match";
+echo (Locale::filterMatches('de-DE-1996','de-DE', false)) ? "Matches"
: "Does not match";
?>
]]>
</programlisting>