reference/intl/intlchar/istitle.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.istitle" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>IntlChar::istitle</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>bool</type><methodname>IntlChar::istitle</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>bool</type><type>null</type></type><methodname>IntlChar::istitle</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
Determines whether the specified code point is a titlecase letter.
...
...
@@ -37,7 +36,7 @@
37
36
&reftitle.returnvalues;
38
37
<para>
39
38
Returns &true; if
40
-
<parameter>codepoint</parameter> is a titlecase letter, &false; if not.
39
+
<parameter>codepoint</parameter> is a titlecase letter, &false; if not. Returns &null; on failure.
41
40
</para>
42
41
</refsect1>
43
42

...
...
@@ -48,11 +47,19 @@
48
47
<programlisting role="php">
49
48
<![CDATA[
50
49
<?php
51
-
var_dump(IntlChar::istitle("A"));
52
-
var_dump(IntlChar::istitle("a"));
53
-
var_dump(IntlChar::istitle("Φ"));
54
-
var_dump(IntlChar::istitle("φ"));
55
-
var_dump(IntlChar::istitle("1"));
50
+
// Latin Capital Letter Dz with Caron U+01C4
51
+
var_dump(IntlChar::istitle("DŽ"));
52
+
// Latin Capital Letter D with Small Letter Z with Caron U+01C5
53
+
var_dump(IntlChar::istitle("Dž"));
54
+
// Latin Small Letter Dz with Caron U+01C6
55
+
var_dump(IntlChar::istitle("dž"));
56
+

57
+
// Greek Capital Letter Alpha with Prosgegrammeni U+1FBC
58
+
var_dump(IntlChar::istitle("ᾼ"));
59
+
// Greek Small Letter Alpha with Ypogegrammeni U+1FB3
60
+
var_dump(IntlChar::istitle("ᾳ"));
61
+
// Greek Capital Letter Alpha U+0391
62
+
var_dump(IntlChar::istitle("Α"));
56
63
?>
57
64
]]>
58
65
</programlisting>
...
...
@@ -64,6 +71,7 @@ bool(true)
64
71
bool(false)
65
72
bool(true)
66
73
bool(false)
74
+
bool(false)
67
75
]]>
68
76
</screen>
69
77
</example>
...
...
@@ -81,7 +89,6 @@ bool(false)
81
89
</refsect1>
82
90

83
91
</refentry>
84
-

85
92
<!-- Keep this comment at the end of the file
86
93
Local variables:
87
94
mode: sgml
88
95