reference/intl/locale/filter-matches.xml
1976eae0d815797af97a1e16c5cd90ffc2868395
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="locale.filtermatches">
3
+
<refentry xml:id="locale.filtermatches" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
4
4
<refnamediv>
5
5
<refname>Locale::filterMatches</refname>
6
6
<refname>locale_filter_matches</refname>
...
...
@@ -12,27 +12,23 @@
12
12
<para>
13
13
&style.oop;
14
14
</para>
15
-
<methodsynopsis>
16
-
<modifier>public</modifier>
17
-
<modifier>static</modifier>
18
-
<type>bool</type>
19
-
<methodname>Locale::filterMatches</methodname>
20
-
<methodparam><type>string</type><parameter>langtag</parameter></methodparam>
15
+
<methodsynopsis role="Locale">
16
+
<modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>bool</type><type>null</type></type><methodname>Locale::filterMatches</methodname>
17
+
<methodparam><type>string</type><parameter>languageTag</parameter></methodparam>
21
18
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
22
-
<methodparam choice="opt"><type>bool</type><parameter>canonicalize</parameter><initializer>false</initializer></methodparam>
19
+
<methodparam choice="opt"><type>bool</type><parameter>canonicalize</parameter><initializer>&false;</initializer></methodparam>
23
20
</methodsynopsis>
24
21
<para>
25
22
&style.procedural;
26
23
</para>
27
24
<methodsynopsis>
28
-
<type>bool</type>
29
-
<methodname>locale_filter_matches</methodname>
30
-
<methodparam><type>string</type><parameter>langtag</parameter></methodparam>
25
+
<type class="union"><type>bool</type><type>null</type></type><methodname>locale_filter_matches</methodname>
26
+
<methodparam><type>string</type><parameter>languageTag</parameter></methodparam>
31
27
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
32
-
<methodparam choice="opt"><type>bool</type><parameter>canonicalize</parameter><initializer>false</initializer></methodparam>
28
+
<methodparam choice="opt"><type>bool</type><parameter>canonicalize</parameter><initializer>&false;</initializer></methodparam>
33
29
</methodsynopsis>
34
30
<para>
35
-
Checks if a $langtag filter matches with $locale according to RFC 4647's
31
+
Checks if a <parameter>languageTag</parameter> filter matches with <parameter>locale</parameter> according to RFC 4647's
36
32
basic filtering algorithm
37
33
</para>
38
34
</refsect1>
...
...
@@ -42,7 +38,7 @@
42
38
<para>
43
39
<variablelist>
44
40
<varlistentry>
45
-
<term><parameter>langtag</parameter></term>
41
+
<term><parameter>languageTag</parameter></term>
46
42
<listitem>
47
43
<para>
48
44
The language tag to check
...
...
@@ -74,8 +70,9 @@
74
70
<refsect1 role="returnvalues">
75
71
&reftitle.returnvalues;
76
72
<para>
77
-
&true; if $locale matches $langtag &false; otherwise.
73
+
&true; if <parameter>locale</parameter> matches <parameter>languageTag</parameter> &false; otherwise.
78
74
</para>
75
+
&intl.locale-len.return;
79
76
</refsect1>
80
77

81
78
<refsect1 role="examples">
82
79