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

4
3
<refentry xml:id="intlchar.totitle" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>IntlChar::totitle</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>mixed</type><methodname>IntlChar::totitle</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>string</type><type>null</type></type><methodname>IntlChar::totitle</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
The given character is mapped to its titlecase equivalent.
...
...
@@ -35,7 +34,7 @@
35
34
&reftitle.returnvalues;
36
35
<para>
37
36
Returns the Simple_Titlecase_Mapping of the code point, if any;
38
-
otherwise the code point itself.
37
+
otherwise the code point itself. Returns &null; on failure.
39
38
</para>
40
39
&intl.codepoint.return;
41
40
</refsect1>
...
...
@@ -47,25 +46,25 @@
47
46
<programlisting role="php">
48
47
<![CDATA[
49
48
<?php
50
-
var_dump(IntlChar::totitle("A"));
51
-
var_dump(IntlChar::totitle("a"));
49
+
var_dump(IntlChar::totitle("DŽ"));
50
+
var_dump(IntlChar::totitle("dž"));
52
51
var_dump(IntlChar::totitle("Φ"));
53
52
var_dump(IntlChar::totitle("φ"));
54
53
var_dump(IntlChar::totitle("1"));
54
+
var_dump(IntlChar::totitle("ᾳ");
55
55
var_dump(IntlChar::totitle(ord("A")));
56
-
var_dump(IntlChar::totitle(ord("a")));
57
56
?>
58
57
]]>
59
58
</programlisting>
60
59
&example.outputs;
61
60
<screen>
62
61
<![CDATA[
63
-
string(1) "A"
64
-
string(1) "A"
65
-
string(2) "Φ"
62
+
string(1) "Dž"
63
+
string(1) "Dž"
66
64
string(2) "Φ"
65
+
string(2) "φ"
67
66
string(1) "1"
68
-
int(65)
67
+
string(1) "ᾼ"
69
68
int(65)
70
69
]]>
71
70
</screen>
...
...
@@ -78,13 +77,13 @@ int(65)
78
77
<simplelist>
79
78
<member><function>IntlChar::tolower</function></member>
80
79
<member><function>IntlChar::toupper</function></member>
80
+
<member><function>IntlChar::istitle</function></member>
81
81
<member><function>mb_convert_case</function></member>
82
82
</simplelist>
83
83
</para>
84
84
</refsect1>
85
85

86
86
</refentry>
87
-

88
87
<!-- Keep this comment at the end of the file
89
88
Local variables:
90
89
mode: sgml
91
90