reference/intl/intlchar/chartype.xml
1976eae0d815797af97a1e16c5cd90ffc2868395
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="intlchar.chartype" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>IntlChar::charType</refname>
...
...
@@ -9,9 +8,9 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
13
-
<modifier>public</modifier> <modifier>static</modifier> <type>int</type><methodname>IntlChar::charType</methodname>
14
-
<methodparam><type>mixed</type><parameter>codepoint</parameter></methodparam>
11
+
<methodsynopsis role="IntlChar">
12
+
<modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>int</type><type>null</type></type><methodname>IntlChar::charType</methodname>
13
+
<methodparam><type class="union"><type>int</type><type>string</type></type><parameter>codepoint</parameter></methodparam>
15
14
</methodsynopsis>
16
15
<para>
17
16
Returns the general category value for the code point.
...
...
@@ -82,6 +81,7 @@ var_dump(IntlChar::charType("A") === IntlChar::CHAR_CATEGORY_UPPERCASE_LETTER);
82
81
var_dump(IntlChar::charType(".") === IntlChar::CHAR_CATEGORY_OTHER_PUNCTUATION);
83
82
var_dump(IntlChar::charType("\t") === IntlChar::CHAR_CATEGORY_CONTROL_CHAR);
84
83
var_dump(IntlChar::charType("\u{2603}") === IntlChar::CHAR_CATEGORY_OTHER_SYMBOL);
84
+
var_dump(IntlChar::charType("multiple chars") === null);
85
85
?>
86
86
]]>
87
87
</programlisting>
...
...
@@ -92,13 +92,13 @@ bool(true)
92
92
bool(true)
93
93
bool(true)
94
94
bool(true)
95
+
bool(true)
95
96
]]>
96
97
</screen>
97
98
</example>
98
99
</refsect1>
99
100

100
101
</refentry>
101
-

102
102
<!-- Keep this comment at the end of the file
103
103
Local variables:
104
104
mode: sgml
105
105