reference/strings/functions/strnatcmp.xml
a3573c18b89fd32aca1c3924d3fd9568900b4a33
...
...
@@ -10,8 +10,8 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>int</type><methodname>strnatcmp</methodname>
13
-
<methodparam><type>string</type><parameter>str1</parameter></methodparam>
14
-
<methodparam><type>string</type><parameter>str2</parameter></methodparam>
13
+
<methodparam><type>string</type><parameter>string1</parameter></methodparam>
14
+
<methodparam><type>string</type><parameter>string2</parameter></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
This function implements a comparison algorithm that orders
...
...
@@ -26,7 +26,7 @@
26
26
<para>
27
27
<variablelist>
28
28
<varlistentry>
29
-
<term><parameter>str1</parameter></term>
29
+
<term><parameter>string1</parameter></term>
30
30
<listitem>
31
31
<para>
32
32
The first string.
...
...
@@ -34,7 +34,7 @@
34
34
</listitem>
35
35
</varlistentry>
36
36
<varlistentry>
37
-
<term><parameter>str2</parameter></term>
37
+
<term><parameter>string2</parameter></term>
38
38
<listitem>
39
39
<para>
40
40
The second string.
...
...
@@ -48,13 +48,30 @@
48
48
<refsect1 role="returnvalues">
49
49
&reftitle.returnvalues;
50
50
<para>
51
-
Similar to other string comparison functions, this one returns &lt; 0 if
52
-
<parameter>str1</parameter> is less than <parameter>str2</parameter>; &gt;
53
-
0 if <parameter>str1</parameter> is greater than
54
-
<parameter>str2</parameter>, and 0 if they are equal.
51
+
Similar to other string comparison functions, this one returns <literal>-1</literal> if
52
+
<parameter>string1</parameter> is less than <parameter>string2</parameter>;
53
+
<literal>1</literal> if <parameter>string1</parameter> is greater than
54
+
<parameter>string2</parameter>, and <literal>0</literal> if they are equal.
55
55
</para>
56
56
</refsect1>
57
57

58
+
<refsect1 role="changelog">
59
+
&reftitle.changelog;
60
+
<informaltable>
61
+
<tgroup cols="2">
62
+
<thead>
63
+
<row>
64
+
<entry>&Version;</entry>
65
+
<entry>&Description;</entry>
66
+
</row>
67
+
</thead>
68
+
<tbody>
69
+
&standard.changelog.binary-safe-string-comparison;
70
+
</tbody>
71
+
</tgroup>
72
+
</informaltable>
73
+
</refsect1>
74
+

58
75
<refsect1 role="examples">
59
76
&reftitle.examples;
60
77
<para>
...
...
@@ -124,7 +141,6 @@ Array
124
141
</refsect1>
125
142

126
143
</refentry>
127
-

128
144
<!-- Keep this comment at the end of the file
129
145
Local variables:
130
146
mode: sgml
131
147