cvs: phpdoc-kr /features file-upload.xml /language constants.xml /reference/mysql/functions mysql-field-table.xml mysql-free-result.xml
/reference/strings/functions chunk-split.xml quoted-printable-decode.xml soundex.xml str-ireplace.xml str-shuffle.xml strcasecmp.xml strcmp.xml
strcoll.xml strlen.xml strnatcasecmp.xml strnatcmp.xml strncasecmp.xml strncmp.xml

From: Date: Tue, 02 Dec 2008 00:43:02 +0000
Subject: cvs: phpdoc-kr /features file-upload.xml /language constants.xml /reference/mysql/functions mysql-field-table.xml mysql-free-result.xml
/reference/strings/functions chunk-split.xml quoted-printable-decode.xml soundex.xml str-ireplace.xml str-shuffle.xml strcasecmp.xml strcmp.xml
strcoll.xml strlen.xml strnatcasecmp.xml strnatcmp.xml strncasecmp.xml strncmp.xml
Groups: php.doc.kr 
Request: Send a blank email to doc-kr+get-800@lists.php.net to get a copy of this message
progcom Tue Dec 2 00:43:02 2008 UTC Modified files: /phpdoc-kr/features file-upload.xml /phpdoc-kr/language constants.xml /phpdoc-kr/reference/mysql/functions mysql-field-table.xml mysql-free-result.xml /phpdoc-kr/reference/strings/functions chunk-split.xml quoted-printable-decode.xml soundex.xml str-ireplace.xml str-shuffle.xml strcasecmp.xml strcmp.xml strcoll.xml strlen.xml strnatcasecmp.xml strnatcmp.xml strncasecmp.xml strncmp.xml Log: sync

http://cvs.php.net/viewvc.cgi/phpdoc-kr/features/file-upload.xml?r1=1.22&r2=1.23&diff_format=u Index: phpdoc-kr/features/file-upload.xml diff -u phpdoc-kr/features/file-upload.xml:1.22 phpdoc-kr/features/file-upload.xml:1.23 --- phpdoc-kr/features/file-upload.xml:1.22 Tue Nov 18 07:53:44 2008 +++ phpdoc-kr/features/file-upload.xml Tue Dec 2 00:43:01 2008 @@ -426,7 +426,7 @@ 이 경우에, <varname>$_FILES['userfile']['name'][0]</varname>의 값은 <filename>review.html</filename>이고, <varname>$_FILES['userfile']['name'][1]</varname>의 값은 - <filename>xwp.out</filename>가 됩니다. 동일하게, + <filename>xwp.out</filename>가 됩니다. 마찬가지로, <varname>$_FILES['userfile']['size'][0]</varname>는 <filename>review.html</filename>의 크기를 가지게 되며, 나머지도 마찬가지입니다. http://cvs.php.net/viewvc.cgi/phpdoc-kr/language/constants.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-kr/language/constants.xml diff -u phpdoc-kr/language/constants.xml:1.11 phpdoc-kr/language/constants.xml:1.12 --- phpdoc-kr/language/constants.xml:1.11 Mon Jul 21 07:44:05 2008 +++ phpdoc-kr/language/constants.xml Tue Dec 2 00:43:01 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.52 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.53 Maintainer: progcom Status: ready --> <!-- CREDITS: fuzzy74 --> <chapter xml:id="language.constants" xmlns="http://docbook.org/ns/docbook"> <title>상수</title> @@ -62,8 +62,9 @@ <sect1 xml:id="language.constants.syntax"> <title>문법</title> <simpara> - <function>define</function>함수를 써서 상수를 정의(define)할수 있다. - 상수는 한번 정의되면 절대 변경하거나 해제(undefine)할수 없다. + <function>define</function> 함수를 사용해서 상수를 정의할 수 있습니다. PHP + 5.3.0부터 클래스 정의 밖에서 <literal>const</literal> 키워드를 사용할 수도 + 있습니다. 상수가 한번 정의되면, 변경하거나 해제(undefine)할 수 없습니다. </simpara> <simpara> 스칼라 데이터(<type>boolean</type>, <type>integer</type>, @@ -141,7 +142,22 @@ ]]> </programlisting> </example> + </para> + <para> + <example> + <title><literal>const</literal> 키워드를 사용해서 상수 정의하기</title> + <programlisting role="php"> +<![CDATA[ +<?php +// PHP 5.3.0부터 작동 +const CONSTANT = 'Hello World'; + +echo CONSTANT; +?> +]]> + </programlisting> + </example> </para> <simpara> http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/mysql/functions/mysql-field-table.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/mysql/functions/mysql-field-table.xml diff -u phpdoc-kr/reference/mysql/functions/mysql-field-table.xml:1.4 phpdoc-kr/reference/mysql/functions/mysql-field-table.xml:1.5 --- phpdoc-kr/reference/mysql/functions/mysql-field-table.xml:1.4 Mon Nov 24 06:07:58 2008 +++ phpdoc-kr/reference/mysql/functions/mysql-field-table.xml Tue Dec 2 00:43:01 2008 @@ -40,7 +40,7 @@ &reftitle.examples; <para> <example> - <title>A <function>mysql_field_table</function> 예제</title> + <title><function>mysql_field_table</function> 예제</title> <programlisting role="php"> <![CDATA[ <?php http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/mysql/functions/mysql-free-result.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/mysql/functions/mysql-free-result.xml diff -u phpdoc-kr/reference/mysql/functions/mysql-free-result.xml:1.5 phpdoc-kr/reference/mysql/functions/mysql-free-result.xml:1.6 --- phpdoc-kr/reference/mysql/functions/mysql-free-result.xml:1.5 Mon Nov 24 06:07:58 2008 +++ phpdoc-kr/reference/mysql/functions/mysql-free-result.xml Tue Dec 2 00:43:01 2008 @@ -49,7 +49,7 @@ &reftitle.examples; <para> <example> - <title>A <function>mysql_free_result</function> 예제</title> + <title><function>mysql_free_result</function> 예제</title> <programlisting role="php"> <![CDATA[ <?php http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/chunk-split.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/strings/functions/chunk-split.xml diff -u phpdoc-kr/reference/strings/functions/chunk-split.xml:1.4 phpdoc-kr/reference/strings/functions/chunk-split.xml:1.5 --- phpdoc-kr/reference/strings/functions/chunk-split.xml:1.4 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/strings/functions/chunk-split.xml Tue Dec 2 00:43:01 2008 @@ -1,44 +1,97 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.7 Maintainer: progcom Status: ready --> - <refentry xml:id="function.chunk-split" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>chunk_split</refname> - <refpurpose>문자열을 작은 조각으로 나눕니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>string</type><methodname>chunk_split</methodname> - <methodparam><type>string</type><parameter>body</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>chunklen</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>end</parameter></methodparam> - </methodsynopsis> - <para> - 문자열을 작은 조각으로 나눕니다. <link - linkend="function.base64-encode">base64_encode</link> 출력을 RFC 2045 - 의미에 맞게 변환할 때 쓸 수 있습니다. 모든 <parameter>chunklen</parameter> - 문자마다 (기본값 76) <parameter>end</parameter>(기본값 "\r\n")를 - 추가합니다. 원 문자열은 변경하지 않고, 새로운 문자열을 반환합니다. - <example> - <title><function>chunk_split</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.11 Maintainer: progcom Status: ready --> +<refentry xml:id="function.chunk-split" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv> + <refname>chunk_split</refname> + <refpurpose>문자열을 작은 조각으로 나눕니다</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>chunk_split</methodname> + <methodparam><type>string</type><parameter>body</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>chunklen</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>end</parameter></methodparam> + </methodsynopsis> + <para> + 문자열을 작은 조각으로 나눕니다. <function>base64_encode</function> 출력을 + RFC 2045에 맞게 변환할 때 유용하게 사용할 수 있습니다. 모든 + <parameter>chunklen</parameter>번째 문자마다 <parameter>end</parameter>를 + 삽입합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>body</parameter></term> + <listitem> + <para> + 조각으로 나눌 문자열. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>chunklen</parameter></term> + <listitem> + <para> + 조각 길이. 기본값은 76. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>end</parameter></term> + <listitem> + <para> + 줄 종료 시퀀스. 기본값은 "\r\n". + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 조각화한 문자열을 반환합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>chunk_split</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php -// RFC 2045 의의에 맞게 $data를 형식화 +// RFC 2045에 맞게 $data를 형식화 $new_string = chunk_split(base64_encode($data)); ?> ]]> - </programlisting> - </example> - </para> - <simpara> - 참고: <function>str_split</function>, - <function>explode</function>, <function>split</function>, - <function>wordwrap</function>, - <link xlink:href="&url.rfc;2045">RFC 2045</link>. - </simpara> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>str_split</function></member> + <member><function>explode</function></member> + <member><function>split</function></member> + <member><function>wordwrap</function></member> + <member><link xlink:href="&url.rfc;2045">RFC 2045</link></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/quoted-printable-decode.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-kr/reference/strings/functions/quoted-printable-decode.xml diff -u phpdoc-kr/reference/strings/functions/quoted-printable-decode.xml:1.3 phpdoc-kr/reference/strings/functions/quoted-printable-decode.xml:1.4 --- phpdoc-kr/reference/strings/functions/quoted-printable-decode.xml:1.3 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/strings/functions/quoted-printable-decode.xml Tue Dec 2 00:43:01 2008 @@ -1,26 +1,54 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.2 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: progcom Status: ready --> <!-- CREDITS: cycle98 --> - <refentry xml:id="function.quoted-printable-decode" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>quoted_printable_decode</refname> - <refpurpose> - 인용되어 있는 출력 가능 문자열을 8비트 문자열로 변환합니다. - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>string</type><methodname>quoted_printable_decode</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - <simpara> - 이 함수는 디코드된 인용되어 있는 출력 가능 문자열에 해당하는 8비트 - 바이너리 문자열을 반환합니다. IMAP 모듈이 없어도 작동한다는 점을 - 제외하고, <function>imap_qprint</function>와 동일합니다. - </simpara> - </refsect1> - </refentry> +<refentry xml:id="function.quoted-printable-decode" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv> + <refname>quoted_printable_decode</refname> + <refpurpose>인용된 인쇄용 문자열을 8비트 문자열로 변환</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>quoted_printable_decode</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + <para> + 이 함수는 인용된 인쇄용 문자열을 디코드한 8비트 바이너리 문자열을 + 반환합니다. (<link xlink:href="&url.rfc;2821">RFC2821</link> 섹션 4.5.2가 + 아닌, <link xlink:href="&url.rfc;2045">RFC2045</link> 섹션 6.7에 따르므로, + 줄 시작의 추가적인 마침표는 제거되지 않습니다) + </para> + <para> + IMAP 모듈이 없어도 작동한다는 점을 제외하면, + <function>imap_qprint</function>와 동일합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str</parameter></term> + <listitem> + <para> + 입력 문자열. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 8비트 바이너리 문자열을 반환합니다. + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/soundex.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-kr/reference/strings/functions/soundex.xml diff -u phpdoc-kr/reference/strings/functions/soundex.xml:1.3 phpdoc-kr/reference/strings/functions/soundex.xml:1.4 --- phpdoc-kr/reference/strings/functions/soundex.xml:1.3 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/strings/functions/soundex.xml Tue Dec 2 00:43:01 2008 @@ -1,53 +1,89 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.4 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: progcom Status: ready --> <!-- CREDITS: cycle98 --> - <refentry xml:id="function.soundex" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>soundex</refname> - <refpurpose>문자열의 soundex 키를 계산합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>string</type><methodname>soundex</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>str</parameter>의 soundex 키를 계산합니다. - </para> - <para> - 발음이 유사한 단어들은 같은 soundex 키를 생성하기에, 발음은 알고 있지만 - 스펠은 모르는 단어를 데이터베이스에서 쉽게 찾을 수 있습니다. soundex - 함수는 문자로 시작하는 4 문자 문자열을 반환합니다. - </para> - <para> - 이 soundex 함수는 "The Art Of Computer Programming, vol. 3: Sorting And - Searching", Addison-Wesley (1973), 391-392쪽에서 Donald Knuth가 기술한 - 것입니다. - </para> - <para> - <example> - <title>Soundex 예제</title> - <programlisting role="php"> +<refentry xml:id="function.soundex" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>soundex</refname> + <refpurpose>문자열의 soundex 키를 계산</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>soundex</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + <para> + <parameter>str</parameter>의 soundex 키를 계산합니다. + </para> + <para> + 발음이 유사한 단어들이 같은 soundex 키를 생성하므로, 발음은 알고 있지만 + 스펠은 모르는 단어를 데이터베이스에서 쉽게 찾을 수 있습니다. soundex + 함수는 문자로 시작하는 4문자 문자열을 반환합니다. + </para> + <para> + 이 soundex 함수는 "The Art Of Computer Programming, vol. 3: Sorting And + Searching", Addison-Wesley (1973), 391-392쪽에서 Donald Knuth가 기술한 + 것입니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str</parameter></term> + <listitem> + <para> + 입력 문자열. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + soundex 키를 문자열로 반환합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Soundex 예제</title> + <programlisting role="php"> <![CDATA[ <?php -soundex("Euler") == soundex("Ellery"); // E460 -soundex("Gauss") == soundex("Ghosh"); // G200 -soundex("Hilbert") == soundex("Heilbronn"); // H416 -soundex("Knuth") == soundex("Kant"); // K530 -soundex("Lloyd") == soundex("Ladd"); // L300 +soundex("Euler") == soundex("Ellery"); // E460 +soundex("Gauss") == soundex("Ghosh"); // G200 +soundex("Hilbert") == soundex("Heilbronn"); // H416 +soundex("Knuth") == soundex("Kant"); // K530 +soundex("Lloyd") == soundex("Ladd"); // L300 soundex("Lukasiewicz") == soundex("Lissajous"); // L222 ?> ]]> - </programlisting> - </example> - </para> - <para> - 참고: <function>levenshtein</function>, <function>metaphone</function>, - <function>similar_text</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>levenshtein</function></member> + <member><function>metaphone</function></member> + <member><function>similar_text</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/str-ireplace.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc-kr/reference/strings/functions/str-ireplace.xml diff -u phpdoc-kr/reference/strings/functions/str-ireplace.xml:1.5 phpdoc-kr/reference/strings/functions/str-ireplace.xml:1.6 --- phpdoc-kr/reference/strings/functions/str-ireplace.xml:1.5 Sun Nov 30 23:19:22 2008 +++ phpdoc-kr/reference/strings/functions/str-ireplace.xml Tue Dec 2 00:43:01 2008 @@ -3,7 +3,7 @@ <refentry xml:id="function.str-ireplace" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>str_ireplace</refname> - <refpurpose>대소문자를 구분 없는 <function>str_replace</function>.</refpurpose> + <refpurpose>대소문자 구분 없는 <function>str_replace</function></refpurpose> </refnamediv> <refsect1 role="description"> http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/str-shuffle.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-kr/reference/strings/functions/str-shuffle.xml diff -u phpdoc-kr/reference/strings/functions/str-shuffle.xml:1.2 phpdoc-kr/reference/strings/functions/str-shuffle.xml:1.3 --- phpdoc-kr/reference/strings/functions/str-shuffle.xml:1.2 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/strings/functions/str-shuffle.xml Tue Dec 2 00:43:02 2008 @@ -1,41 +1,77 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.2 Maintainer: progcom Status: ready --> - <refentry xml:id="function.str-shuffle" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>str_shuffle</refname> - <refpurpose>문자열을 랜덤하게 섞습니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>string</type><methodname>str_shuffle</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - <simpara> - <function>str_shuffle</function>은 문자열을 섞습니다. 가능한 모든 - 순열을 작성합니다. - </simpara> - <para> - <example> - <title><function>str_shuffle</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.5 Maintainer: progcom Status: ready --> +<refentry xml:id="function.str-shuffle" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>str_shuffle</refname> + <refpurpose>문자열을 무작위로 섞습니다</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>str_shuffle</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + </methodsynopsis> + <simpara> + <function>str_shuffle</function>은 문자열을 섞습니다. 가능한 모든 + 순열을 작성합니다. + </simpara> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str</parameter></term> + <listitem> + <para> + 입력 문자열. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 섞은 문자열을 반환합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>str_shuffle</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php $str = 'abcdef'; $shuffled = str_shuffle($str); -// 이와 비슷한 출력을 보여줍니다: bfdaec +// 다음과 비슷한 출력을 합니다: bfdaec echo $shuffled; ?> ]]> - </programlisting> - </example> - </para> - <simpara> - 참고: <function>shuffle</function>, <function>rand</function>. - </simpara> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>shuffle</function></member> + <member><function>rand</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/strcasecmp.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/strings/functions/strcasecmp.xml diff -u phpdoc-kr/reference/strings/functions/strcasecmp.xml:1.4 phpdoc-kr/reference/strings/functions/strcasecmp.xml:1.5 --- phpdoc-kr/reference/strings/functions/strcasecmp.xml:1.4 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/strings/functions/strcasecmp.xml Tue Dec 2 00:43:02 2008 @@ -1,28 +1,64 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.4 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: progcom Status: ready --> <!-- CREDITS: cycle98 --> - <refentry xml:id="function.strcasecmp" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>strcasecmp</refname> - <refpurpose> - 대소문자를 구별하지 않는 바이너리 호환 문자열 비교 - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>strcasecmp</methodname> - <methodparam><type>string</type><parameter>str1</parameter></methodparam> - <methodparam><type>string</type><parameter>str2</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>str1</parameter>이 <parameter>str2</parameter>보다 작다면 &lt; - 0 을 반환하고; <parameter>str1</parameter>이 - <parameter>str2</parameter>보다 크다면 &gt; 0 을 반환합니다. 동일하다면 - 0을 반환합니다. - <example> - <title><function>strcasecmp</function> 예제</title> - <programlisting role="php"> +<refentry xml:id="function.strcasecmp" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>strcasecmp</refname> + <refpurpose>대소문자 구분 없는 바이너리 안전 문자열 비교</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>strcasecmp</methodname> + <methodparam><type>string</type><parameter>str1</parameter></methodparam> + <methodparam><type>string</type><parameter>str2</parameter></methodparam> + </methodsynopsis> + <para> + 대소문자 구분 없는 바이너리 안전 문자열 비교입니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str1</parameter></term> + <listitem> + <para> + 첫번째 문자열 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>str2</parameter></term> + <listitem> + <para> + 두번째 문자열 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>str1</parameter>이 <parameter>str2</parameter>보다 작다면 &lt; + 0을 반환하고; <parameter>str1</parameter>이 + <parameter>str2</parameter>보다 크다면 &gt; 0을 반환합니다. 동일하다면 + 0을 반환합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>strcasecmp</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php $var1 = "Hello"; @@ -32,16 +68,26 @@ } ?> ]]> - </programlisting> - </example> - </para> - <simpara> - 참고: <function>ereg</function>, <function>strcmp</function>, - <function>substr</function>, <function>stristr</function>, - <function>strncasecmp</function>, <function>strstr</function>. - </simpara> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>preg_match</function></member> + <member><function>strcmp</function></member> + <member><function>substr</function></member> + <member><function>stristr</function></member> + <member><function>strncasecmp</function></member> + <member><function>strstr</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/strcmp.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-kr/reference/strings/functions/strcmp.xml diff -u phpdoc-kr/reference/strings/functions/strcmp.xml:1.3 phpdoc-kr/reference/strings/functions/strcmp.xml:1.4 --- phpdoc-kr/reference/strings/functions/strcmp.xml:1.3 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/strings/functions/strcmp.xml Tue Dec 2 00:43:02 2008 @@ -1,35 +1,74 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.2 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: progcom Status: ready --> <!-- CREDITS: cycle98 --> - <refentry xml:id="function.strcmp" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>strcmp</refname> - <refpurpose>바이너리 호환 문자열 비교</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>strcmp</methodname> - <methodparam><type>string</type><parameter>str1</parameter></methodparam> - <methodparam><type>string</type><parameter>str2</parameter></methodparam> - </methodsynopsis> - <simpara> - <parameter>str1</parameter>이 <parameter>str2</parameter>보다 작다면 &lt; - 0을 반환하고; <parameter>str1</parameter>이 - <parameter>str2</parameter>보다 크다면 &gt; 0을 반환합니다. 동일하면 0을 - 반환합니다. - </simpara> - <simpara> - 이 비교가 대소문자를 구별하는 점에 주의하십시오. - </simpara> - <simpara> - 참고: <function>ereg</function>, - <function>strcasecmp</function>, <function>substr</function>, - <function>stristr</function>, <function>strncasecmp</function>, - <function>strncmp</function>, <function>strstr</function>. - </simpara> - </refsect1> - </refentry> +<refentry xml:id="function.strcmp" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>strcmp</refname> + <refpurpose>바이너리 안전 문자열 비교</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>strcmp</methodname> + <methodparam><type>string</type><parameter>str1</parameter></methodparam> + <methodparam><type>string</type><parameter>str2</parameter></methodparam> + </methodsynopsis> + <simpara> + 이 비교는 대소문자를 구분합니다. + </simpara> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str1</parameter></term> + <listitem> + <para> + 첫번째 문자열 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>str2</parameter></term> + <listitem> + <para> + 두번째 문자열 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>str1</parameter>이 <parameter>str2</parameter>보다 작다면 &lt; + 0을 반환하고; <parameter>str1</parameter>이 + <parameter>str2</parameter>보다 크다면 &gt; 0을 반환합니다. 동일하면 0을 + 반환합니다. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>preg_match</function></member> + <member><function>strcasecmp</function></member> + <member><function>substr</function></member> + <member><function>stristr</function></member> + <member><function>strncasecmp</function></member> + <member><function>strncmp</function></member> + <member><function>strstr</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/strcoll.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-kr/reference/strings/functions/strcoll.xml diff -u phpdoc-kr/reference/strings/functions/strcoll.xml:1.2 phpdoc-kr/reference/strings/functions/strcoll.xml:1.3 --- phpdoc-kr/reference/strings/functions/strcoll.xml:1.2 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/strings/functions/strcoll.xml Tue Dec 2 00:43:02 2008 @@ -1,43 +1,103 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.3 Maintainer: progcom Status: ready --> - <refentry xml:id="function.strcoll" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>strcoll</refname> - <refpurpose>로케일 기반 문자열 비교</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>strcoll</methodname> - <methodparam><type>string</type><parameter>str1</parameter></methodparam> - <methodparam><type>string</type><parameter>str2</parameter></methodparam> - </methodsynopsis> - <simpara> - <parameter>str1</parameter>이 <parameter>str2</parameter>보다 작으면 &lt; - 0를; <parameter>str1</parameter>이 <parameter>str2</parameter>보다 크면 - &gt; 0를, 동일하면 0을 반환합니다. <function>strcoll</function>은 비교에 - 현재 로케일을 사용합니다. 현재 로케일이 C나 POSIX이면, 이 함수는 - <function>strcmp</function>와 동일합니다. - </simpara> - <simpara> - 이 비교는 대소문자를 구별하며, <function>strcmp</function>와는 다르게 - 바이너리 호환이 아닙니다. - </simpara> - <note> - <para> - <function>strcoll</function>은 PHP 4.0.5에서 추가되었지만, win32에서는 - 4.2.3까지 사용할 수 없었습니다. - </para> - </note> - <simpara> - 참고: <function>ereg</function>, <function>strcmp</function>, - <function>strcasecmp</function>, <function>substr</function>, - <function>stristr</function>, <function>strncasecmp</function>, - <function>strncmp</function>, <function>strstr</function>, - <function>setlocale</function>. - </simpara> - </refsect1> - </refentry> +<!-- EN-Revision: 1.7 Maintainer: progcom Status: ready --> +<refentry xml:id="function.strcoll" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>strcoll</refname> + <refpurpose>로케일 기반 문자열 비교</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>strcoll</methodname> + <methodparam><type>string</type><parameter>str1</parameter></methodparam> + <methodparam><type>string</type><parameter>str2</parameter></methodparam> + </methodsynopsis> + <para> + 이 비교는 대소문자를 구분하며, <function>strcmp</function>와는 다르게 + 바이너리 안전이 아닙니다. + </para> + <para> + <function>strcoll</function>은 비교할 때 현재 로케일을 사용합니다. 현재 + 로케일이 C나 POSIX이면, 이 함수는 <function>strcmp</function>와 동일합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str1</parameter></term> + <listitem> + <para> + 첫번째 문자열 + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>str2</parameter></term> + <listitem> + <para> + 두번째 문자열 + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>str1</parameter>이 <parameter>str2</parameter>보다 작으면 &lt; + 0을; <parameter>str1</parameter>이 <parameter>str2</parameter>보다 크면 + &gt; 0을, 동일하면 0을 반환합니다. + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.2.3</entry> + <entry> + win32에서 작동합니다. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>preg_match</function></member> + <member><function>strcmp</function></member> + <member><function>strcasecmp</function></member> + <member><function>substr</function></member> + <member><function>stristr</function></member> + <member><function>strncasecmp</function></member> + <member><function>strncmp</function></member> + <member><function>strstr</function></member> + <member><function>setlocale</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/strlen.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-kr/reference/strings/functions/strlen.xml diff -u phpdoc-kr/reference/strings/functions/strlen.xml:1.3 phpdoc-kr/reference/strings/functions/strlen.xml:1.4 --- phpdoc-kr/reference/strings/functions/strlen.xml:1.3 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/strings/functions/strlen.xml Tue Dec 2 00:43:02 2008 @@ -1,24 +1,52 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.3 Maintainer: progcom Status: ready --> -<!-- CREDITS: cycle98 --> - <refentry xml:id="function.strlen" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>strlen</refname> - <refpurpose>문자열의 길이를 구합니다.</refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>strlen</methodname> - <methodparam><type>string</type><parameter>str</parameter></methodparam> - </methodsynopsis> - <para> - <parameter>string</parameter>의 길이를 반환합니다. - </para> - <para> - <example> - <title><function>strlen</function> 예제</title> - <programlisting role="php"> +<!-- EN-Revision: 1.9 Maintainer: progcom Status: ready --> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.strlen"> + <refnamediv> + <refname>strlen</refname> + <refpurpose>문자열 길이를 얻습니다</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>strlen</methodname> + <methodparam><type>string</type><parameter>string</parameter></methodparam> + </methodsynopsis> + <para> + 주어진 <parameter>string</parameter>의 길이를 반환합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>string</parameter></term> + <listitem> + <para> + 길이를 측정할 <type>string</type>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 성공시엔 <parameter>string</parameter>의 길이, + <parameter>string</parameter>이 비어있으면 <literal>0</literal>. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title><function>strlen</function> 예제</title> + <programlisting role="php"> <![CDATA[ <?php $str = 'abcdef'; @@ -28,14 +56,22 @@ echo strlen($str); // 7 ?> ]]> - </programlisting> - </example> - </para> - <para> - 참고: <function>count</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>count</function></member> + <member><function>mb_strlen</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/strnatcasecmp.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-kr/reference/strings/functions/strnatcasecmp.xml diff -u phpdoc-kr/reference/strings/functions/strnatcasecmp.xml:1.3 phpdoc-kr/reference/strings/functions/strnatcasecmp.xml:1.4 --- phpdoc-kr/reference/strings/functions/strnatcasecmp.xml:1.3 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/strings/functions/strnatcasecmp.xml Tue Dec 2 00:43:02 2008 @@ -1,42 +1,80 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.3 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: progcom Status: ready --> <!-- CREDITS: cycle98 --> - <refentry xml:id="function.strnatcasecmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>strnatcasecmp</refname> - <refpurpose> - "natural order" 알고리즘을 이용한 대소문자를 구별하지 않는 문자열 비교. - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>strnatcasecmp</methodname> - <methodparam><type>string</type><parameter>str1</parameter></methodparam> - <methodparam><type>string</type><parameter>str2</parameter></methodparam> - </methodsynopsis> - <para> - 사람이 하는 것과 동일한 방법으로 알파벳과 숫자 문자열의 순서를 비교하는 - 알고리즘을 수행합니다. 이 작동은 대소문자를 구별하지 않는 점을 제외하면, - <function>strnatcmp</function>와 동일합니다. 자세한 정보는 Martin Pool의 - <link xlink:href="&url.strnatcmp;">Natural Order String Comparison</link> - 페이지를 참고하십시오. - </para> - <simpara> - 다른 문자열 비교 함수와 동일하게, <parameter>str1</parameter>이 - <parameter>str2</parameter>보다 작다면 &lt; 0을, - <parameter>str1</parameter>이 <parameter>str2</parameter>보다 크다면 &gt; - 0을, 같다면 0을 반환합니다. - </simpara> - <simpara> - 참고: <function>ereg</function>, - <function>strcasecmp</function>, <function>substr</function>, - <function>stristr</function>, <function>strcmp</function>, - <function>strncmp</function>, <function>strncasecmp</function>, - <function>strnatcmp</function>, <function>strstr</function>. - </simpara> - </refsect1> - </refentry> +<refentry xml:id="function.strnatcasecmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv> + <refname>strnatcasecmp</refname> + <refpurpose>"자연순" 알고리즘을 이용한 대소문자 구분 없는 문자열 비교</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>strnatcasecmp</methodname> + <methodparam><type>string</type><parameter>str1</parameter></methodparam> + <methodparam><type>string</type><parameter>str2</parameter></methodparam> + </methodsynopsis> + <para> + 사람이 하는 것과 동일한 방법으로 알파벳/숫자 문자열의 순서를 비교하는 + 알고리즘을 수행합니다. 이 작동은 대소문자를 구분하지 않는 점을 제외하면, + <function>strnatcmp</function>와 동일합니다. 자세한 정보는 Martin Pool의 + <link xlink:href="&url.strnatcmp;">자연순 문자열 비교</link> 페이지를 + 참고하십시오. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str1</parameter></term> + <listitem> + <para> + 첫번째 문자열. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>str2</parameter></term> + <listitem> + <para> + 두번째 문자열. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 다른 문자열 비교 함수와 마찬가지로, <parameter>str1</parameter>이 + <parameter>str2</parameter>보다 작으면 &lt; 0을, + <parameter>str1</parameter>이 <parameter>str2</parameter>보다 크면 &gt; + 0을, 같으면 0을 반환합니다. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>preg_match</function></member> + <member><function>strcmp</function></member> + <member><function>strcasecmp</function></member> + <member><function>substr</function></member> + <member><function>stristr</function></member> + <member><function>strncasecmp</function></member> + <member><function>strncmp</function></member> + <member><function>strstr</function></member> + <member><function>setlocale</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/strnatcmp.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-kr/reference/strings/functions/strnatcmp.xml diff -u phpdoc-kr/reference/strings/functions/strnatcmp.xml:1.3 phpdoc-kr/reference/strings/functions/strnatcmp.xml:1.4 --- phpdoc-kr/reference/strings/functions/strnatcmp.xml:1.3 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/strings/functions/strnatcmp.xml Tue Dec 2 00:43:02 2008 @@ -1,43 +1,79 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.5 Maintainer: progcom Status: ready --> -<!-- CREDITS: cycle98 --> - <refentry xml:id="function.strnatcmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <refnamediv> - <refname>strnatcmp</refname> - <refpurpose> - "natural order" 알고리즘을 이용한 문자열 비교 - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>strnatcmp</methodname> - <methodparam><type>string</type><parameter>str1</parameter></methodparam> - <methodparam><type>string</type><parameter>str2</parameter></methodparam> - </methodsynopsis> - <para> - 사람이 하는 것과 같은 방법으로 알파벳과 숫자로 이루어진 문자열의 비교 - 알고리즘, "natural ordering"을 수행합니다. 아래는 이 알고리즘과 컴퓨터가 - 사용하는 정렬 알고리즘(<function>strcmp</function>에서 사용)의 - 차이입니다: - <informalexample> - <programlisting role="php"> +<!-- EN-Revision: 1.9 Maintainer: progcom Status: ready --> +<refentry xml:id="function.strnatcmp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv> + <refname>strnatcmp</refname> + <refpurpose>"자연순" 알고리즘을 이용한 문자열 비교</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>strnatcmp</methodname> + <methodparam><type>string</type><parameter>str1</parameter></methodparam> + <methodparam><type>string</type><parameter>str2</parameter></methodparam> + </methodsynopsis> + <para> + 사람이 하는 것과 동일한 방법인 "자연순"으로 알파벳/숫자 문자열의 비교 + 알고리즘을 수행합니다. 이 비교는 대소문자를 구분합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str1</parameter></term> + <listitem> + <para> + 첫번째 문자열. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>str2</parameter></term> + <listitem> + <para> + 두번째 문자열. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + 다른 문자열 비교 함수와 마찬가지로, <parameter>str1</parameter>이 + <parameter>str2</parameter>보다 작으면 &lt; 0을, + <parameter>str1</parameter>이 <parameter>str2</parameter>보다 크면 &gt; + 0을, 같으면 0을 반환합니다. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + 아래 예제는 이 알고리즘과 일반적인 컴퓨터 정렬 + 알고리즘(<function>strcmp</function>에서 사용)의 차이점입니다: + <informalexample> + <programlisting role="php"> <![CDATA[ <?php $arr1 = $arr2 = array("img12.png", "img10.png", "img2.png", "img1.png"); echo "표준 문자열 비교\n"; usort($arr1, "strcmp"); print_r($arr1); -echo "\nNatural order 문자열 비교\n"; +echo "\n자연순 문자열 비교\n"; usort($arr2, "strnatcmp"); print_r($arr2); ?> ]]> - </programlisting> - </informalexample> - 위 코드는 아래의 결과를 생성합니다: - <informalexample> - <screen> + </programlisting> + &example.outputs; + <screen> <![CDATA[ 표준 문자열 비교 Array @@ -48,7 +84,7 @@ [3] => img2.png ) -Natural order 문자열 비교 +자연순 문자열 비교 Array ( [0] => img1.png @@ -57,30 +93,33 @@ [3] => img12.png ) ]]> - </screen> - </informalexample> - 자세한 정보는 Martin Pool의 <link xlink:href="&url.strnatcmp;">Natural Order - String Comparison</link> 페이지를 참고하십시오. - </para> - <simpara> - 다른 문자열 비교 함수와 동일하게, <parameter>str1</parameter>이 - <parameter>str2</parameter>보다 작으면 &lt; 0을; - <parameter>str1</parameter>이 <parameter>str2</parameter>보다 크면 &gt; - 0을, 같으면 0을 반환합니다. - </simpara> - <simpara> - 이 비교는 대소문자를 구별함에 주의하십시오. - </simpara> - <simpara> - 참고: <function>ereg</function>, - <function>strcasecmp</function>, <function>substr</function>, - <function>stristr</function>, <function>strcmp</function>, - <function>strncmp</function>, <function>strncasecmp</function>, - <function>strnatcasecmp</function>, <function>strstr</function>, - <function>natsort</function>, <function>natcasesort</function>. - </simpara> - </refsect1> - </refentry> + </screen> + </informalexample> + 자세한 정보는 Martin Pool의 <link xlink:href="&url.strnatcmp;">자연순 + 문자열 비교</link> 페이지를 참고하십시오. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>preg_match</function></member> + <member><function>strcasecmp</function></member> + <member><function>substr</function></member> + <member><function>stristr</function></member> + <member><function>strcmp</function></member> + <member><function>strncmp</function></member> + <member><function>strncasecmp</function></member> + <member><function>strnatcasecmp</function></member> + <member><function>strstr</function></member> + <member><function>natsort</function></member> + <member><function>natcasesort</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/strncasecmp.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/strings/functions/strncasecmp.xml diff -u phpdoc-kr/reference/strings/functions/strncasecmp.xml:1.4 phpdoc-kr/reference/strings/functions/strncasecmp.xml:1.5 --- phpdoc-kr/reference/strings/functions/strncasecmp.xml:1.4 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/strings/functions/strncasecmp.xml Tue Dec 2 00:43:02 2008 @@ -1,38 +1,83 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.3 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: progcom Status: ready --> <!-- CREDITS: cycle98 --> - <refentry xml:id="function.strncasecmp" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>strncasecmp</refname> - <refpurpose> - 대소문자를 구별하지 않는 처음 n 문자의 이진 호환 문자열 비교 - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>strncasecmp</methodname> - <methodparam><type>string</type><parameter>str1</parameter></methodparam> - <methodparam><type>string</type><parameter>str2</parameter></methodparam> - <methodparam><type>int</type><parameter>len</parameter></methodparam> - </methodsynopsis> - <para> - 비교에 사용하는 각각의 문자열에서 (길이 제한) 비교할 문자 - 수(<parameter>len</parameter>)를 지정할 수 있는 차이를 제외하면, - <function>strcasecmp</function>와 동일합니다. - </para> - <simpara> - <parameter>str1</parameter>이 <parameter>str2</parameter>보다 작으면 &lt; - 0을; <parameter>str1</parameter>이 <parameter>str2</parameter>보다 크면 - &gt; 0을, 같으면 0을 반환합니다. - </simpara> - <simpara> - 참고: <function>ereg</function>, <function>strcasecmp</function>, - <function>strcmp</function>, <function>substr</function>, - <function>stristr</function>, <function>strstr</function>. - </simpara> - </refsect1> - </refentry> +<refentry xml:id="function.strncasecmp" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>strncasecmp</refname> + <refpurpose>대소문자 구분 없는 처음 n 문자의 바이너리 안전 문자열 비교</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>strncasecmp</methodname> + <methodparam><type>string</type><parameter>str1</parameter></methodparam> + <methodparam><type>string</type><parameter>str2</parameter></methodparam> + <methodparam><type>int</type><parameter>len</parameter></methodparam> + </methodsynopsis> + <para> + 비교에 사용하는 각 문자열에 (최대 제한) 비교할 문자 + 수를 지정할 수 있는 차이를 제외하면, <function>strcasecmp</function>와 + 동일합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str1</parameter></term> + <listitem> + <para> + 첫번째 문자열. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>str2</parameter></term> + <listitem> + <para> + 두번째 문자열. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>len</parameter></term> + <listitem> + <para> + 비교에 사용할 문자열의 길이. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>str1</parameter>이 <parameter>str2</parameter>보다 작으면 &lt; + 0을; <parameter>str1</parameter>이 <parameter>str2</parameter>보다 크면 + &gt; 0을, 같으면 0을 반환합니다. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>preg_match</function></member> + <member><function>strcmp</function></member> + <member><function>strcasecmp</function></member> + <member><function>substr</function></member> + <member><function>stristr</function></member> + <member><function>strstr</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-kr/reference/strings/functions/strncmp.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-kr/reference/strings/functions/strncmp.xml diff -u phpdoc-kr/reference/strings/functions/strncmp.xml:1.4 phpdoc-kr/reference/strings/functions/strncmp.xml:1.5 --- phpdoc-kr/reference/strings/functions/strncmp.xml:1.4 Sat Jun 23 13:51:42 2007 +++ phpdoc-kr/reference/strings/functions/strncmp.xml Tue Dec 2 00:43:02 2008 @@ -1,42 +1,86 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 1.3 Maintainer: progcom Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: progcom Status: ready --> <!-- CREDITS: cycle98 --> - <refentry xml:id="function.strncmp" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>strncmp</refname> - <refpurpose> - 처음 n 문자의 이진 호환 문자열 비교 - </refpurpose> - </refnamediv> - <refsect1> - <title>설명</title> - <methodsynopsis> - <type>int</type><methodname>strncmp</methodname> - <methodparam><type>string</type><parameter>str1</parameter></methodparam> - <methodparam><type>string</type><parameter>str2</parameter></methodparam> - <methodparam><type>int</type><parameter>len</parameter></methodparam> - </methodsynopsis> - <para> - 이 함수는 비교에 사용하는 각각의 문자열에서 (길이를 제한하는) 문자 - 수(<parameter>len</parameter>)를 지정할 수 있는 차이를 제외하면, - <function>strcmp</function>와 동일합니다. - </para> - <simpara> - <parameter>str1</parameter>이 <parameter>str2</parameter>보다 작으면 &lt; - 0을; <parameter>str1</parameter>이 <parameter>str2</parameter>보다 크면 - &gt; 0을, 같으면 0을 반환합니다. - </simpara> - <simpara> - 이 비교가 대소문자를 구별하는 점에 주의하십시오. - </simpara> - <simpara> - 참고: <function>ereg</function>, <function>strncasecmp</function>, - <function>strcasecmp</function>, <function>substr</function>, - <function>stristr</function>, <function>strcmp</function>, - <function>strstr</function>. - </simpara> - </refsect1> - </refentry> +<refentry xml:id="function.strncmp" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>strncmp</refname> + <refpurpose>처음 n 문자의 바이너리 안전 문자열 비교</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>strncmp</methodname> + <methodparam><type>string</type><parameter>str1</parameter></methodparam> + <methodparam><type>string</type><parameter>str2</parameter></methodparam> + <methodparam><type>int</type><parameter>len</parameter></methodparam> + </methodsynopsis> + <para> + 이 함수는 비교에 사용하는 각 문자열에 (최대 제한) 비교에 사용할 문자 수를 + 지정할 수 있는 점을 제외하면, <function>strcmp</function>와 동일합니다. + </para> + <para> + 이 비교는 대소문자를 구분합니다. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str1</parameter></term> + <listitem> + <para> + 첫번째 문자열. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>str2</parameter></term> + <listitem> + <para> + 두번째 문자열. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>len</parameter></term> + <listitem> + <para> + 비교에 사용할 문자열의 길이. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + <parameter>str1</parameter>이 <parameter>str2</parameter>보다 작으면 &lt; + 0을; <parameter>str1</parameter>이 <parameter>str2</parameter>보다 크면 + &gt; 0을, 같으면 0을 반환합니다. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>preg_match</function></member> + <member><function>strcmp</function></member> + <member><function>strcasecmp</function></member> + <member><function>substr</function></member> + <member><function>stristr</function></member> + <member><function>strncasecmp</function></member> + <member><function>strstr</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables:
« previous php.doc.kr (#800) next »