reference/strings/functions/strcasecmp.xml
9b68bf2b63200534e022bc65e800cae6c75abf26
...
...
@@ -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.strcasecmp">
3
+
<refentry xml:id="function.strcasecmp" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>strcasecmp</refname>
6
6
<refpurpose>Binary safe case-insensitive string comparison</refpurpose>
...
...
@@ -10,11 +10,13 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>int</type><methodname>strcasecmp</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
Binary safe case-insensitive string comparison.
18
+
The comparison is not locale aware; only ASCII letters are compared in a
19
+
case-insensitive way.
18
20
</para>
19
21
</refsect1>
20
22

...
...
@@ -23,7 +25,7 @@
23
25
<para>
24
26
<variablelist>
25
27
<varlistentry>
26
-
<term><parameter>str1</parameter></term>
28
+
<term><parameter>string1</parameter></term>
27
29
<listitem>
28
30
<para>
29
31
The first string
...
...
@@ -31,7 +33,7 @@
31
33
</listitem>
32
34
</varlistentry>
33
35
<varlistentry>
34
-
<term><parameter>str2</parameter></term>
36
+
<term><parameter>string2</parameter></term>
35
37
<listitem>
36
38
<para>
37
39
The second string
...
...
@@ -44,12 +46,24 @@
44
46

45
47
<refsect1 role="returnvalues">
46
48
&reftitle.returnvalues;
47
-
<para>
48
-
Returns &lt; 0 if <parameter>str1</parameter> is less than
49
-
<parameter>str2</parameter>; &gt; 0 if <parameter>str1</parameter>
50
-
is greater than <parameter>str2</parameter>, and 0 if they are
51
-
equal.
52
-
</para>
49
+
&strings.comparison.return;
50
+
</refsect1>
51
+

52
+
<refsect1 role="changelog">
53
+
&reftitle.changelog;
54
+
<informaltable>
55
+
<tgroup cols="2">
56
+
<thead>
57
+
<row>
58
+
<entry>&Version;</entry>
59
+
<entry>&Description;</entry>
60
+
</row>
61
+
</thead>
62
+
<tbody>
63
+
&standard.changelog.binary-safe-string-comparison;
64
+
</tbody>
65
+
</tgroup>
66
+
</informaltable>
53
67
</refsect1>
54
68

55
69
<refsect1 role="examples">
...
...
@@ -87,7 +101,6 @@ if (strcasecmp($var1, $var2) == 0) {
87
101
</refsect1>
88
102

89
103
</refentry>
90
-

91
104
<!-- Keep this comment at the end of the file
92
105
Local variables:
93
106
mode: sgml
94
107