reference/intl/intlchar/charfromname.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.charfromname" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>IntlChar::charFromName</refname>
...
...
@@ -9,16 +8,16 @@
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::charFromName</methodname>
14
-
<methodparam><type>string</type><parameter>characterName</parameter></methodparam>
15
-
<methodparam choice="opt"><type>int</type><parameter>nameChoice</parameter><initializer><constant>IntlChar::UNICODE_CHAR_NAME</constant></initializer></methodparam>
11
+
<methodsynopsis role="IntlChar">
12
+
<modifier>public</modifier> <modifier>static</modifier> <type class="union"><type>int</type><type>null</type></type><methodname>IntlChar::charFromName</methodname>
13
+
<methodparam><type>string</type><parameter>name</parameter></methodparam>
14
+
<methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>IntlChar::UNICODE_CHAR_NAME</initializer></methodparam>
16
15
</methodsynopsis>
17
16
<para>
18
17
Finds a Unicode character by its name and returns its code point value.
19
18
</para>
20
19
<para>
21
-
The name is matched exactly and completely. If the name does not correspond to a code point, &false; is returned.
20
+
The name is matched exactly and completely. If the name does not correspond to a code point, &null; is returned.
22
21
</para>
23
22
<para>
24
23
A Unicode 1.0 name is matched only if it differs from the modern name. Unicode names are all uppercase.
...
...
@@ -30,7 +29,7 @@
30
29
&reftitle.parameters;
31
30
<variablelist>
32
31
<varlistentry>
33
-
<term><parameter>characterName</parameter></term>
32
+
<term><parameter>name</parameter></term>
34
33
<listitem>
35
34
<para>
36
35
Full name of the Unicode character.
...
...
@@ -38,7 +37,7 @@
38
37
</listitem>
39
38
</varlistentry>
40
39
<varlistentry>
41
-
<term><parameter>nameChoice</parameter></term>
40
+
<term><parameter>type</parameter></term>
42
41
<listitem>
43
42
<para>
44
43
Which set of names to use for the lookup. Can be any of these constants:
...
...
@@ -58,7 +57,7 @@
58
57
<refsect1 role="returnvalues">
59
58
&reftitle.returnvalues;
60
59
<para>
61
-
The Unicode value of the code point with the given name (as an <type>integer</type>), or &false; if there is no such code point.
60
+
The Unicode value of the code point with the given name (as an <type>int</type>), or &null; if there is no such code point.
62
61
</para>
63
62
</refsect1>
64
63

...
...
@@ -82,7 +81,7 @@ var_dump(IntlChar::charFromName("A RANDOM STRING WHICH DOESN'T CORRESPOND TO ANY
82
81
int(65)
83
82
int(9731)
84
83
int(9843)
85
-
bool(false)
84
+
NULL
86
85
]]>
87
86
</screen>
88
87
</example>
...
...
@@ -99,7 +98,6 @@ bool(false)
99
98
</refsect1>
100
99

101
100
</refentry>
102
-

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