mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
fix filter-matches docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283284 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
81d318ad96
commit
cc5e8cca27
1 changed files with 16 additions and 5 deletions
|
@ -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 @@ echo (locale_filter_matches('de-DE_1996','de-DE')) ? "Matches" : "Does not match
|
|||
<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>
|
||||
|
|
Loading…
Reference in a new issue