svnno****@sourc*****
svnno****@sourc*****
2012年 5月 21日 (月) 23:51:28 JST
Revision: 4952 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/4952 Author: yutakapon Date: 2012-05-21 23:51:27 +0900 (Mon, 21 May 2012) Log Message: ----------- strreplace コマンドの返り値に関する記載が漏れていたので、追加した。 ついでに、matchstr 変数のことも。 Modified Paths: -------------- trunk/doc/en/html/macro/command/strreplace.html trunk/doc/ja/html/macro/command/strreplace.html -------------- next part -------------- Modified: trunk/doc/en/html/macro/command/strreplace.html =================================================================== --- trunk/doc/en/html/macro/command/strreplace.html 2012-05-18 13:45:47 UTC (rev 4951) +++ trunk/doc/en/html/macro/command/strreplace.html 2012-05-21 14:51:27 UTC (rev 4952) @@ -30,6 +30,11 @@ If the <newstr> is ''(empty), the <regex> string is removed from <strvar>. </p> +<p> +When the replacing succeeds, the result variable is 1 and the matched string by the <regex> is stored into the matchstr variable. <br> +When the replacing fails, the result variable is 0. +</p> + <h2>Example</h2> <pre class="macro-example"> Modified: trunk/doc/ja/html/macro/command/strreplace.html =================================================================== --- trunk/doc/ja/html/macro/command/strreplace.html 2012-05-18 13:45:47 UTC (rev 4951) +++ trunk/doc/ja/html/macro/command/strreplace.html 2012-05-21 14:51:27 UTC (rev 4952) @@ -30,6 +30,11 @@ <newstr> \x82\xAA ""(\x8B\x9A\x97\xF1) \x82̏ꍇ\x81A<strvar> \x92\x86\x82\xCC <regex> \x82͍폜\x82\xB3\x82\xEA\x82\xE9\x81B </p> +<p> +\x92u\x8A\xB7\x82\xAA\x90\xAC\x8C\x{1C2DC2}\xE9\x82ƁAresult \x95ϐ\x94\x82\xC9"1"\x82\xAA\x93\xFC\x82\xE8\x81A\x90\xB3\x8BK\x95\\x8C\xBB <regex> \x82Ń}\x83b\x83`\x82\xB5\x82\xBD\x95\xB6\x8E\x9A\x97\xF1\x82\xCD matchstr \x95ϐ\x94\x82Ɋi\x94[\x82\xB3\x82\xEA\x82\xE9\x81B<br> +\x92u\x8A\xB7\x82\xAA\x8E\xB8\x94s\x82\xB5\x82\xBD\x8Fꍇ\x82́Aresult \x95ϐ\x94\x82\xAA"0"\x82ɂȂ\xE9\x81B<br> +</p> + <h2>\x97\xE1</h2> <pre class="macro-example">