cvs: phpdoc-zh /reference/strings charsets.xml /reference/strings/functions convert-cyr-string.xml count-chars.xml crc32.xml

From: Date: Fri, 23 Apr 2004 14:07:19 +0000
Subject: cvs: phpdoc-zh /reference/strings charsets.xml /reference/strings/functions convert-cyr-string.xml count-chars.xml crc32.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1861@lists.php.net to get a copy of this message
nio Fri Apr 23 10:07:19 2004 EDT Added files: /phpdoc-zh/reference/strings/functions convert-cyr-string.xml count-chars.xml crc32.xml Modified files: /phpdoc-zh/reference/strings charsets.xml Log:

http://cvs.php.net/diff.php/phpdoc-zh/reference/strings/charsets.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/reference/strings/charsets.xml diff -u phpdoc-zh/reference/strings/charsets.xml:1.1 phpdoc-zh/reference/strings/charsets.xml:1.2 --- phpdoc-zh/reference/strings/charsets.xml:1.1 Thu Apr 15 10:36:45 2004 +++ phpdoc-zh/reference/strings/charsets.xml Fri Apr 23 10:07:19 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.6 Maintainer: Nio Status: ready --> <para> @@ -40,14 +40,14 @@ <entry>cp866</entry> <entry>ibm866, 866</entry> <entry> - DOS-ÌØÓеÄÎ÷Àï¶û×Öĸ×Ö·û¼¯¡£PHP 4.3.2 ¿ªÊ¼Ö§³Ö¸Ã×Ö·û¼¯¡£ + DOS-ÌØÓÐµÄ Cyrillic ×Öĸ×Ö·û¼¯¡£PHP 4.3.2 ¿ªÊ¼Ö§³Ö¸Ã×Ö·û¼¯¡£ </entry> </row> <row> <entry>cp1251</entry> <entry>Windows-1251, win-1251, 1251</entry> <entry> - Windows-ÌØÓеÄÎ÷Àï¶û×Öĸ×Ö·û¼¯¡£PHP 4.3.2 ¿ªÊ¼Ö§³Ö¸Ã×Ö·û¼¯¡£ + Windows-ÌØÓÐµÄ Cyrillic ×Öĸ×Ö·û¼¯¡£PHP 4.3.2 ¿ªÊ¼Ö§³Ö¸Ã×Ö·û¼¯¡£ </entry> </row> <row> http://cvs.php.net/co.php/phpdoc-zh/reference/strings/functions/convert-cyr-string.xml?r=1.1&p=1 Index: phpdoc-zh/reference/strings/functions/convert-cyr-string.xml +++ phpdoc-zh/reference/strings/functions/convert-cyr-string.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.2 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> <refentry id="function.convert-cyr-string"> <refnamediv> <refname>convert_cyr_string</refname> <refpurpose> ½«×Ö·ûÓÉÒ»ÖÖ Cyrillic ×Ö·ûת»»³ÉÁíÒ»ÖÖ </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>string</type><methodname>convert_cyr_string</methodname> <methodparam><type>string</type><parameter>str</parameter></methodparam> <methodparam><type>string</type><parameter>from</parameter></methodparam> <methodparam><type>string</type><parameter>to</parameter></methodparam> </methodsynopsis> <para> ´Ëº¯Êý½«¸ø¶¨µÄ×Ö·û´®´ÓÒ»ÖÖ Cyrillic ×Ö·ûת»»³ÉÁíÒ»ÖÖ£¬·µ»Ø×ª»»Ö®ºóµÄ×Ö·û´®¡£<parameter>from</parameter> ºÍ <parameter>to</parameter> ²ÎÊýΪµ¥¸ö×Ö·û£¬·Ö±ð´ú±íÁËÔ´¼°Ä¿±ê Cyrillic ×Ö·û¼¯¡£Ö§³ÖµÄÀàÐÍÓУº <itemizedlist> <listitem> <simpara> k - koi8-r </simpara> </listitem> <listitem> <simpara> w - windows-1251 </simpara> </listitem> <listitem> <simpara> i - iso8859-5 </simpara> </listitem> <listitem> <simpara> a - x-cp866 </simpara> </listitem> <listitem> <simpara> d - x-cp866 </simpara> </listitem> <listitem> <simpara> m - x-mac-cyrillic </simpara> </listitem> </itemizedlist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-zh/reference/strings/functions/count-chars.xml?r=1.1&p=1 Index: phpdoc-zh/reference/strings/functions/count-chars.xml +++ phpdoc-zh/reference/strings/functions/count-chars.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.5 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.4 --> <refentry id="function.count-chars"> <refnamediv> <refname>count_chars</refname> <refpurpose> ·µ»Ø×Ö·û´®ËùÓÃ×Ö·ûµÄÐÅÏ¢ </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>mixed</type><methodname>count_chars</methodname> <methodparam><type>string</type><parameter>string</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam> </methodsynopsis> <para> ͳ¼Æ <parameter>string</parameter> ÖÐÿ¸ö×Ö½ÚÖµ£¨0..255£©³öÏֵĴÎÊý£¬Ê¹ÓöàÖÖģʽ·µ»Ø½á¹û¡£¿ÉÑ¡²ÎÊý <parameter>mode</parameter> ĬÈÏֵΪ 0¡£¸ù¾Ý²»Í¬µÄ <parameter>mode</parameter>£¬<function>count_chars</function> ·µ»ØÏÂÁв»Í¬µÄ½á¹û£º <itemizedlist> <listitem> <simpara> 0 - ÒÔËùÓеÄÿ¸ö×Ö½ÚÖµ×÷Ϊ¼üÃû£¬³öÏÖ´ÎÊý×÷ΪֵµÄÊý×é¡£ </simpara> </listitem> <listitem> <simpara> 1 - Óë 0 Ïàͬ£¬µ«Ö»Áгö³öÏÖ´ÎÊý´óÓÚÁãµÄ×Ö½ÚÖµ¡£ </simpara> </listitem> <listitem> <simpara> 2 - Óë 0 Ïàͬ£¬µ«Ö»Áгö³öÏÖ´ÎÊýµÈÓÚÁãµÄ×Ö½ÚÖµ¡£ </simpara> </listitem> <listitem> <simpara> 3 - ·µ»ØÓÉËùÓÐʹÓÃÁ˵Ä×Ö½ÚÖµ×é³ÉµÄ×Ö·û´®¡£ </simpara> </listitem> <listitem> <simpara> 4 - ·µ»ØÓÉËùÓÐδʹÓõÄ×Ö½ÚÖµ×é³ÉµÄ×Ö·û´®¡£ </simpara> </listitem> </itemizedlist> </para> <para> <example> <title><function>count_chars</function> ʾÀý</title> <programlisting role="php"> <![CDATA[ <?php $data = "Two Ts and one F."; $result = count_chars($data, 0); for ($i=0; $i < count($result); $i++) { if ($result[$i] != 0) echo "There were $result[$i] instance(s) of \"" , chr($i) , "\" in the string.\n"; } ?> ]]> </programlisting> <para> ϱßΪʾÀýÊä³ö£º </para> <screen> <![CDATA[ There were 4 instance(s) of " " in the string. There were 1 instance(s) of "." in the string. There were 1 instance(s) of "F" in the string. There were 2 instance(s) of "T" in the string. There were 1 instance(s) of "a" in the string. There were 1 instance(s) of "d" in the string. There were 1 instance(s) of "e" in the string. There were 2 instance(s) of "n" in the string. There were 2 instance(s) of "o" in the string. There were 1 instance(s) of "s" in the string. There were 1 instance(s) of "w" in the string. ]]> </screen> </example> </para> <simpara> ²Î¼û <function>strpos</function> ºÍ <function>substr_count</function>¡£ </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/phpdoc-zh/reference/strings/functions/crc32.xml?r=1.1&p=1 Index: phpdoc-zh/reference/strings/functions/crc32.xml +++ phpdoc-zh/reference/strings/functions/crc32.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: nio $ --> <!-- EN-Revision: 1.6 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.37 --> <refentry id="function.crc32"> <refnamediv> <refname>crc32</refname> <refpurpose>¼ÆËãÒ»¸ö×Ö·û´®µÄ crc32 ¶àÏîʽ</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>int</type><methodname>crc32</methodname> <methodparam><type>string</type><parameter>str</parameter></methodparam> </methodsynopsis> <para> Éú³É <parameter>str</parameter> µÄ 32 λѭ»·ÈßÓàУÑéÂë¶àÏîʽ¡£Õâͨ³£ÓÃÓÚ¼ì²é´«ÊäµÄÊý¾ÝÊÇ·ñÍêÕû¡£ </para> <para> ÓÉÓÚ PHP µÄÕûÊýÊÇ´ø·ûºÅµÄ£¬Ðí¶à crc32 УÑéÂ뽫·µ»Ø¸ºÕûÊý£¬Òò´ËÄãÐèҪʹÓà <function>sprintf</function> »ò <function>printf</function> µÄ¡°%u¡±¸ñʽ·ûÀ´»ñÈ¡±íʾÎÞ·ûºÅ crc32 УÑéÂëµÄ×Ö·û´®¡£ </para> <para> ʾÀýÖеĵڶþÐÐÑÝʾÁËÈçºÎʹÓà <function>printf</function> º¯Êýת»»Ð£ÑéÂ룺 <example> <title>ÏÔʾ crc32 УÑéÂë</title> <programlisting role="php"> <![CDATA[ <?php $checksum = crc32("The quick brown fox jumped over the lazy dog."); printf("%u\n", $checksum); ?> ]]> </programlisting> </example> </para> <para> ²Î¼û <function>md5</function> ºÍ <function>sha1</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.doc.zh (#1861) next »