reference/intl/intlchar/charname.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.charname" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>IntlChar::charName</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>string</type><methodname>IntlChar::charName</methodname>
14
-
<methodparam><type>mixed</type><parameter>codepoint</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>string</type><type>null</type></type><methodname>IntlChar::charName</methodname>
13
+
<methodparam><type class="union"><type>int</type><type>string</type></type><parameter>codepoint</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
Retrieves the name of a Unicode character.
19
18
</para>
20
19
<para>
21
-
Depending on <parameter>nameChoice</parameter>, the resulting character name is the "modern" name or the name that
20
+
Depending on <parameter>type</parameter>, the resulting character name is the "modern" name or the name that
22
21
was defined in Unicode version 1.0. The name contains only "invariant" characters like A-Z, 0-9, space, and '-'.
23
22
Unicode 1.0 names are only retrieved if they are different from the modern names and if ICU contains the data for them.
24
23
</para>
...
...
@@ -34,7 +33,7 @@
34
33
</listitem>
35
34
</varlistentry>
36
35
<varlistentry>
37
-
<term><parameter>nameChoice</parameter></term>
36
+
<term><parameter>type</parameter></term>
38
37
<listitem>
39
38
<para>
40
39
Which set of names to use for the lookup. Can be any of these constants:
...
...
@@ -54,7 +53,8 @@
54
53
<refsect1 role="returnvalues">
55
54
&reftitle.returnvalues;
56
55
<para>
57
-
The corresponding name, or an empty string if there is no name for this character.
56
+
The corresponding name, or an empty string if there is no name for this character,
57
+
or &null; if there is no such code point.
58
58
</para>
59
59
</refsect1>
60
60

...
...
@@ -95,7 +95,6 @@ string(0) ""
95
95
</refsect1>
96
96

97
97
</refentry>
98
-

99
98
<!-- Keep this comment at the end of the file
100
99
Local variables:
101
100
mode: sgml
102
101