reference/strings/functions/ucfirst.xml
54ff7bf8e0f8fa90988cccf6b583517366605f6d
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.ucfirst">
3
+
<refentry xml:id="function.ucfirst" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>ucfirst</refname>
6
6
<refpurpose>Make a string's first character uppercase</refpurpose>
...
...
@@ -10,17 +10,13 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>ucfirst</methodname>
13
-
<methodparam><type>string</type><parameter>str</parameter></methodparam>
13
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
Returns a string with the first character of
17
-
<parameter>str</parameter> capitalized, if that character is
18
-
alphabetic.
19
-
</para>
20
-
<para>
21
-
Note that 'alphabetic' is determined by the current locale. For
22
-
instance, in the default "C" locale characters such as umlaut-a
23
-
(ä) will not be converted.
17
+
<parameter>string</parameter> capitalized, if that character is
18
+
an ASCII character in the range from <literal>"a"</literal> (0x61) to
19
+
<literal>"z"</literal> (0x7a).
24
20
</para>
25
21
</refsect1>
26
22

...
...
@@ -29,7 +25,7 @@
29
25
<para>
30
26
<variablelist>
31
27
<varlistentry>
32
-
<term><parameter>str</parameter></term>
28
+
<term><parameter>string</parameter></term>
33
29
<listitem>
34
30
<para>
35
31
The input string.
...
...
@@ -47,6 +43,23 @@
47
43
</para>
48
44
</refsect1>
49
45

46
+
<refsect1 role="changelog">
47
+
&reftitle.changelog;
48
+
<informaltable>
49
+
<tgroup cols="2">
50
+
<thead>
51
+
<row>
52
+
<entry>&Version;</entry>
53
+
<entry>&Description;</entry>
54
+
</row>
55
+
</thead>
56
+
<tbody>
57
+
&strings.changelog.ascii-case-conversion;
58
+
</tbody>
59
+
</tgroup>
60
+
</informaltable>
61
+
</refsect1>
62
+

50
63
<refsect1 role="examples">
51
64
&reftitle.examples;
52
65
<para>
...
...
@@ -76,12 +89,12 @@ $bar = ucfirst(strtolower($bar)); // Hello world!
76
89
<member><function>strtolower</function></member>
77
90
<member><function>strtoupper</function></member>
78
91
<member><function>ucwords</function></member>
92
+
<member><function>mb_convert_case</function></member>
79
93
</simplelist>
80
94
</para>
81
95
</refsect1>
82
96

83
97
</refentry>
84
-

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