|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <!-- $Revision$ -->
|
3 |
| -<!-- EN-Revision: 9b68bf2b63200534e022bc65e800cae6c75abf26 Maintainer: hirokawa Status: ready --> |
| 3 | +<!-- EN-Revision: 873f4a3d5027bd1b584f1d1e590e22cd4a08ae84 Maintainer: hirokawa Status: ready --> |
4 | 4 | <!-- CREDITS: shimooka -->
|
5 | 5 | <refentry xml:id="function.strcmp" xmlns="http://docbook.org/ns/docbook">
|
6 | 6 | <refnamediv>
|
7 | 7 | <refname>strcmp</refname>
|
8 | 8 | <refpurpose>バイナリセーフな文字列比較</refpurpose>
|
9 | 9 | </refnamediv>
|
10 |
| - |
| 10 | + |
11 | 11 | <refsect1 role="description">
|
12 | 12 | &reftitle.description;
|
13 | 13 | <methodsynopsis>
|
|
17 | 17 | </methodsynopsis>
|
18 | 18 | <simpara>
|
19 | 19 | この比較は大文字小文字を区別することに注意してください。
|
| 20 | + 大文字小文字を区別しない比較をする場合は、 |
| 21 | + <function>strcasecmp</function> |
| 22 | + を参照ください。 |
| 23 | + </simpara> |
| 24 | + <simpara> |
| 25 | + この比較はロケールを認識しないことに注意してください。 |
| 26 | + ロケールを考慮した比較をする場合は、 |
| 27 | + <function>strcoll</function> または |
| 28 | + <methodname>Collator::compare</methodname> |
| 29 | + を参照ください。 |
20 | 30 | </simpara>
|
21 | 31 | </refsect1>
|
22 | 32 |
|
@@ -86,17 +96,38 @@ if (strcmp($var1, $var2) !== 0) {
|
86 | 96 | </para>
|
87 | 97 | </refsect1>
|
88 | 98 |
|
| 99 | + |
89 | 100 | <refsect1 role="seealso">
|
90 | 101 | &reftitle.seealso;
|
91 | 102 | <para>
|
92 |
| - <simplelist> |
93 |
| - <member><function>strcasecmp</function></member> |
94 |
| - <member><function>preg_match</function></member> |
95 |
| - <member><function>substr_compare</function></member> |
96 |
| - <member><function>strncmp</function></member> |
97 |
| - <member><function>strstr</function></member> |
98 |
| - <member><function>substr</function></member> |
99 |
| - </simplelist> |
| 103 | + <itemizedlist> |
| 104 | + <listitem> |
| 105 | + <simpara>文字列の完全な比較</simpara> |
| 106 | + <simplelist> |
| 107 | + <member><function>strcasecmp</function></member> |
| 108 | + <member><methodname>Collator::compare</methodname></member> |
| 109 | + <member><function>strcoll</function></member> |
| 110 | + </simplelist> |
| 111 | + </listitem> |
| 112 | + <listitem> |
| 113 | + <simpara>文字列の部分比較</simpara> |
| 114 | + <simplelist> |
| 115 | + <member><function>substr_compare</function></member> |
| 116 | + <member><function>strncmp</function></member> |
| 117 | + <member><function>strstr</function></member> |
| 118 | + </simplelist> |
| 119 | + </listitem> |
| 120 | + <listitem> |
| 121 | + <simpara>文字列の類似度 / その他の文字列比較</simpara> |
| 122 | + <simplelist> |
| 123 | + <member><function>preg_match</function></member> |
| 124 | + <member><function>levenshtein</function></member> |
| 125 | + <member><function>metaphone</function></member> |
| 126 | + <member><function>similar_text</function></member> |
| 127 | + <member><function>soundex</function></member> |
| 128 | + </simplelist> |
| 129 | + </listitem> |
| 130 | + </itemizedlist> |
100 | 131 | </para>
|
101 | 132 | </refsect1>
|
102 | 133 |
|
|
0 commit comments