cvs: phpdoc-ja /reference/mbstring/functions mb-strrpos.xml

From: Date: Thu, 27 Jul 2006 03:44:11 +0000
Subject: cvs: phpdoc-ja /reference/mbstring/functions mb-strrpos.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1587@lists.php.net to get a copy of this message
takagi Thu Jul 27 03:44:11 2006 UTC Modified files: /phpdoc-ja/reference/mbstring/functions mb-strrpos.xml Log: sync with en. http://cvs.php.net/viewvc.cgi/phpdoc-ja/reference/mbstring/functions/mb-strrpos.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-ja/reference/mbstring/functions/mb-strrpos.xml diff -u phpdoc-ja/reference/mbstring/functions/mb-strrpos.xml:1.6 phpdoc-ja/reference/mbstring/functions/mb-strrpos.xml:1.7 --- phpdoc-ja/reference/mbstring/functions/mb-strrpos.xml:1.6 Wed Mar 1 14:23:48 2006 +++ phpdoc-ja/reference/mbstring/functions/mb-strrpos.xml Thu Jul 27 03:44:11 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <!-- splitted from ./ja/functions/mbstring.xml, last change in rev 1.1 --> -<!-- EN-Revision: 1.2 Maintainer: hirokawa Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready --> <!-- CREDITS: takagi --> <refentry id="function.mb-strrpos"> <refnamediv> @@ -10,12 +10,14 @@ 文字列の中に指定した文字列が最後に現れる位置を見つける </refpurpose> </refnamediv> - <refsect1> - <title>説明</title> + + <refsect1 role="description"> + &reftitle.description; <methodsynopsis> <type>int</type><methodname>mb_strrpos</methodname> <methodparam><type>string</type><parameter>haystack</parameter></methodparam> <methodparam><type>string</type><parameter>needle</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>offset</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam> </methodsynopsis> <para> @@ -36,18 +38,59 @@ </para> <para> <parameter>encoding</parameter> が省略された場合、 - 内部文字エンコーディングが使用されます。<function>strrpos</function> - が <parameter>needle</parameter> に文字のみしか受けつけないのに対して、 - <function>mb_strrpos</function> では文字列を指定できます。 + 内部文字エンコーディングが使用されます。 </para> <para> <parameter>encoding</parameter> は文字エンコーディング名です。 省略された場合は、内部文字エンコーディングが使用されます。 </para> + <note> + <simpara> + PHP 5.2.0 以降、<parameter>offset</parameter> + により文字列中の任意の文字位置から検索を開始することができます。 + 負の値を指定すると、文字の終端より前の任意の位置で検索を終了します。 + </simpara> + </note> + <note> + <simpara> + PHP 5.2.0 以降、下位互換性のために + <parameter>encoding</parameter> + を 3 番目のパラメータとして指定することができますが、 + これは推奨されません。PHP の将来のバージョンでは廃止される予定です。 + </simpara> + </note> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.2.0</entry> + <entry>オプションのパラメータ <parameter>offset</parameter> が追加されました。</entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; <para> - <function>mb_strpos</function>, - <function>mb_internal_encoding</function>, - <function>strrpos</function> も参照ください。 + <simplelist> + <member><function>mb_strpos</function></member> + <member><function>mb_internal_encoding</function></member> + <member><function>strrpos</function></member> + </simplelist> </para> </refsect1> </refentry>

« previous php.doc.ja (#1587) next »