[Ttssh2-commit] [3990] strreplaceは文字列削除もできることを記載した。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 8月 13日 (金) 00:52:42 JST


Revision: 3990
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3990
Author:   yutakapon
Date:     2010-08-13 00:52:42 +0900 (Fri, 13 Aug 2010)

Log Message:
-----------
strreplaceは文字列削除もできることを記載した。

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	2010-08-12 14:54:40 UTC (rev 3989)
+++ trunk/doc/en/html/macro/command/strreplace.html	2010-08-12 15:52:42 UTC (rev 3990)
@@ -26,7 +26,8 @@
 <h2>Remarks</h2>
 
 <p>
-Replaces a specified &lt;oldstr&gt; string in the string variable &lt;strvar&gt; beginning at a specified position &lt;index&gt;(1-origin), with another specified &lt;newstr&gt; string.
+Replaces a specified &lt;oldstr&gt; string in the string variable &lt;strvar&gt; beginning at a specified position &lt;index&gt;(1-origin), with another specified &lt;newstr&gt; string.<br>
+If the &lt;newstr&gt; is a null character(''), the &lt;oldstr&gt; string is removed.
 </p>
 
 <h2>Example</h2>
@@ -46,6 +47,12 @@
 endif
 </pre>
 
+<pre class="macro-example">
+src='I can do it.'
+strreplace src 1 'can' ''
+messagebox src 'result'     ; 'I  do it.'
+</pre>
+
 <h2>Reference</h2>
 
 <a href="strmatch.html">strmatch</a><br>

Modified: trunk/doc/ja/html/macro/command/strreplace.html
===================================================================
--- trunk/doc/ja/html/macro/command/strreplace.html	2010-08-12 14:54:40 UTC (rev 3989)
+++ trunk/doc/ja/html/macro/command/strreplace.html	2010-08-12 15:52:42 UTC (rev 3990)
@@ -26,7 +26,8 @@
 <h2>‰ðà</h2>
 
 <p>
-•¶Žš—ñ•Ï” &lt;strvar&gt; ‚Ì &lt;index&gt; ˆÊ’ui1ƒIƒŠƒWƒ“j‚©‚çA•¶Žš—ñ &lt;oldstr&gt; ‚ðŒŸõ‚µA•¶Žš—ñ &lt;newstr&gt; ‚É’u‚«Š·‚¦‚éB
+•¶Žš—ñ•Ï” &lt;strvar&gt; ‚Ì &lt;index&gt; ˆÊ’ui1ƒIƒŠƒWƒ“j‚©‚çA•¶Žš—ñ &lt;oldstr&gt; ‚ðŒŸõ‚µA•¶Žš—ñ &lt;newstr&gt; ‚É’u‚«Š·‚¦‚éB<br>
+•¶Žš—ñ &lt;newstr&gt; ‚ª‹ó('')‚̏ꍇA•¶Žš—ñ &lt;oldstr&gt; ‚͍폜‚³‚ê‚éB
 </p>
 
 <h2>—á</h2>
@@ -46,6 +47,12 @@
 endif
 </pre>
 
+<pre class="macro-example">
+src='I can do it.'
+strreplace src 1 'can' ''
+messagebox src 'result'     ; 'I  do it.'
+</pre>
+
 <h2>ŽQÆ</h2>
 
 <a href="strmatch.html">strmatch</a><br>



Ttssh2-commit メーリングリストの案内
Back to archive index