|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <!-- $Revision$ --> |
3 | | -<!-- EN-Revision: 9b68bf2b63200534e022bc65e800cae6c75abf26 Maintainer: daijie Status: ready --> |
| 3 | +<!-- EN-Revision: 873f4a3d5027bd1b584f1d1e590e22cd4a08ae84 Maintainer: daijie Status: ready --> |
4 | 4 | <!-- CREDITS: mowangjuanzi, Luffy --> |
5 | 5 | <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.strcmp"> |
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 | + 对于不区分大小写的比较,请参见 <function>strcasecmp</function>。 |
| 21 | + </simpara> |
| 22 | + <simpara> |
| 23 | + 注意该比较不支持区域设置。如需支持区域设置的比较,请参见 |
| 24 | + <function>strcoll</function> 或 <methodname>Collator::compare</methodname> |
20 | 25 | </simpara> |
21 | 26 | </refsect1> |
22 | 27 |
|
@@ -85,18 +90,38 @@ if (strcmp($var1, $var2) !== 0) { |
85 | 90 | </example> |
86 | 91 | </para> |
87 | 92 | </refsect1> |
88 | | - |
| 93 | + |
89 | 94 | <refsect1 role="seealso"> |
90 | 95 | &reftitle.seealso; |
91 | 96 | <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> |
| 97 | + <itemizedlist> |
| 98 | + <listitem> |
| 99 | + <simpara>完整字符串比较</simpara> |
| 100 | + <simplelist> |
| 101 | + <member><function>strcasecmp</function></member> |
| 102 | + <member><methodname>Collator::compare</methodname></member> |
| 103 | + <member><function>strcoll</function></member> |
| 104 | + </simplelist> |
| 105 | + </listitem> |
| 106 | + <listitem> |
| 107 | + <simpara>部分字符串比较</simpara> |
| 108 | + <simplelist> |
| 109 | + <member><function>substr_compare</function></member> |
| 110 | + <member><function>strncmp</function></member> |
| 111 | + <member><function>strstr</function></member> |
| 112 | + </simplelist> |
| 113 | + </listitem> |
| 114 | + <listitem> |
| 115 | + <simpara>相似/其他字符串比较</simpara> |
| 116 | + <simplelist> |
| 117 | + <member><function>preg_match</function></member> |
| 118 | + <member><function>levenshtein</function></member> |
| 119 | + <member><function>metaphone</function></member> |
| 120 | + <member><function>similar_text</function></member> |
| 121 | + <member><function>soundex</function></member> |
| 122 | + </simplelist> |
| 123 | + </listitem> |
| 124 | + </itemizedlist> |
100 | 125 | </para> |
101 | 126 | </refsect1> |
102 | 127 |
|
|
0 commit comments