[Ttssh2-commit] [3986] strreplace コマンドを追加した。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 8月 11日 (水) 23:33:26 JST


Revision: 3986
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3986
Author:   yutakapon
Date:     2010-08-11 23:33:26 +0900 (Wed, 11 Aug 2010)

Log Message:
-----------
strreplace コマンドを追加した。

Modified Paths:
--------------
    trunk/doc/en/html/about/history.html
    trunk/doc/en/html/macro/command/index.html
    trunk/doc/en/html/macro/command/strinsert.html
    trunk/doc/en/html/macro/command/strmatch.html
    trunk/doc/en/html/macro/command/strremove.html
    trunk/doc/en/teraterm.hhc
    trunk/doc/en/teraterm.hhp
    trunk/doc/ja/html/about/history.html
    trunk/doc/ja/html/macro/command/index.html
    trunk/doc/ja/html/macro/command/strinsert.html
    trunk/doc/ja/html/macro/command/strmatch.html
    trunk/doc/ja/html/macro/command/strremove.html
    trunk/doc/ja/teraterm.hhc
    trunk/doc/ja/teraterm.hhp

Added Paths:
-----------
    trunk/doc/en/html/macro/command/strreplace.html
    trunk/doc/ja/html/macro/command/strreplace.html


-------------- next part --------------
Modified: trunk/doc/en/html/about/history.html
===================================================================
--- trunk/doc/en/html/about/history.html	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/en/html/about/history.html	2010-08-11 14:33:26 UTC (rev 3986)
@@ -46,6 +46,7 @@
       <li>added the "<a href="../macro/command/dispstr.html">dispstr</a>" macro command.</li>
       <li>added the "<a href="../macro/command/strinsert.html">strinsert</a>" macro command.</li>
       <li>added the "<a href="../macro/command/strremove.html">strremove</a>" macro command.</li>
+      <li>added the "<a href="../macro/command/strreplace.html">strreplace</a>" macro command.</li>
     </ul>
   </li>
 

Modified: trunk/doc/en/html/macro/command/index.html
===================================================================
--- trunk/doc/en/html/macro/command/index.html	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/en/html/macro/command/index.html	2010-08-11 14:33:26 UTC (rev 3986)
@@ -119,6 +119,7 @@
  <li><a href="strlen.html">strlen</a>
  <li><a href="strmatch.html">strmatch</a> (version 4.59 or later)
  <li><a href="strremove.html">strremove</a> (version 4.67 or later)
+ <li><a href="strreplace.html">strreplace</a> (version 4.67 or later)
  <li><a href="strscan.html">strscan</a>
  <li><a href="tolower.html">tolower</a> (version 4.53 or later)
  <li><a href="toupper.html">toupper</a> (version 4.53 or later)

Modified: trunk/doc/en/html/macro/command/strinsert.html
===================================================================
--- trunk/doc/en/html/macro/command/strinsert.html	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/en/html/macro/command/strinsert.html	2010-08-11 14:33:26 UTC (rev 3986)
@@ -57,5 +57,11 @@
 messagebox s s
 </pre>
 
+<h2>Reference</h2>
+
+<a href="strmatch.html">strmatch</a><br>
+<a href="strreplace.html">strreplace</a><br>
+<a href="strremove.html">strremove</a><br>
+
 </body>
 </html>

Modified: trunk/doc/en/html/macro/command/strmatch.html
===================================================================
--- trunk/doc/en/html/macro/command/strmatch.html	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/en/html/macro/command/strmatch.html	2010-08-11 14:33:26 UTC (rev 3986)
@@ -66,5 +66,11 @@
 messagebox groupmatchstr4 'groupmatchstr4'   ; 2600
 </pre>
 
+<h2>Reference</h2>
+
+<a href="strreplace.html">strreplace</a><br>
+<a href="strinsert.html">strinsert</a><br>
+<a href="strremove.html">strremove</a><br>
+
 </body>
 </html>

Modified: trunk/doc/en/html/macro/command/strremove.html
===================================================================
--- trunk/doc/en/html/macro/command/strremove.html	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/en/html/macro/command/strremove.html	2010-08-11 14:33:26 UTC (rev 3986)
@@ -65,5 +65,11 @@
 messagebox s s
 </pre>
 
+<h2>Reference</h2>
+
+<a href="strmatch.html">strmatch</a><br>
+<a href="strreplace.html">strreplace</a><br>
+<a href="strinsert.html">strinsert</a><br>
+
 </body>
 </html>

Added: trunk/doc/en/html/macro/command/strreplace.html
===================================================================
--- trunk/doc/en/html/macro/command/strreplace.html	                        (rev 0)
+++ trunk/doc/en/html/macro/command/strreplace.html	2010-08-11 14:33:26 UTC (rev 3986)
@@ -0,0 +1,56 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+  "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+  <title>strreplace</title>
+  <meta http-equiv="Content-Style-Type" content="text/css">
+  <link rel="stylesheet" href="../../style.css" type="text/css">
+</head>
+
+<body>
+
+
+<h1>strreplace</h1>
+
+<p>
+Replaces a string, with another string.
+</p>
+
+<h2>Format</h2>
+
+<pre class="macro-syntax">
+strreplace &lt;strvar&gt; &lt;index&gt; &lt;oldstr&gt; &lt;newstr&gt;
+</pre>
+
+<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.
+</p>
+
+<h2>Example</h2>
+
+<pre class="macro-example">
+src='Microsoft Windows XP [Version 5.1.2600]'
+strmatch src '(Version \d+.\d+.)\d+'
+
+int2str s result
+messagebox s groupmatchstr1
+pos=result                ; 23
+mstr=groupmatchstr1       ; Version 5.1.
+
+strreplace src pos mstr 'Build '
+if result=1 then
+	messagebox src 'result'   ; Microsoft Windows XP [Build 2600]
+endif
+</pre>
+
+<h2>Reference</h2>
+
+<a href="strmatch.html">strmatch</a><br>
+<a href="strinsert.html">strinsert</a><br>
+<a href="strremove.html">strremove</a><br>
+
+</body>
+</html>

Modified: trunk/doc/en/teraterm.hhc
===================================================================
--- trunk/doc/en/teraterm.hhc	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/en/teraterm.hhc	2010-08-11 14:33:26 UTC (rev 3986)
@@ -1046,6 +1046,11 @@
 					<param name="ImageNumber" value="11">
 					</OBJECT>
 				<LI> <OBJECT type="text/sitemap">
+					<param name="Name" value="strreplace">
+					<param name="Local" value="html\macro\command\strreplace.html">
+					<param name="ImageNumber" value="11">
+					</OBJECT>
+				<LI> <OBJECT type="text/sitemap">
 					<param name="Name" value="strscan">
 					<param name="Local" value="html\macro\command\strscan.html">
 					<param name="ImageNumber" value="11">

Modified: trunk/doc/en/teraterm.hhp
===================================================================
--- trunk/doc/en/teraterm.hhp	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/en/teraterm.hhp	2010-08-11 14:33:26 UTC (rev 3986)
@@ -278,6 +278,7 @@
 HlpMacroCommandStrlen=html\macro\command\strlen.html
 HlpMacroCommandStrmatch=html\macro\command\strmatch.html
 HlpMacroCommandStrremove=html\macro\command\strremove.html
+HlpMacroCommandStrreplace=html\macro\command\strreplace.html
 HlpMacroCommandStrscan=html\macro\command\strscan.html
 HlpMacroCommandTestlink=html\macro\command\testlink.html
 HlpMacroCommandTolower=html\macro\command\tolower.html

Modified: trunk/doc/ja/html/about/history.html
===================================================================
--- trunk/doc/ja/html/about/history.html	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/ja/html/about/history.html	2010-08-11 14:33:26 UTC (rev 3986)
@@ -47,6 +47,7 @@
       <li>ƒ}ƒNƒƒRƒ}ƒ“ƒh "<a href="../macro/command/dispstr.html">dispstr</a>" ‚ð’ljÁ‚µ‚½B</li>
       <li>ƒ}ƒNƒƒRƒ}ƒ“ƒh "<a href="../macro/command/strinsert.html">strinsert</a>" ‚ð’ljÁ‚µ‚½B</li>
       <li>ƒ}ƒNƒƒRƒ}ƒ“ƒh "<a href="../macro/command/strremove.html">strremove</a>" ‚ð’ljÁ‚µ‚½B</li>
+      <li>ƒ}ƒNƒƒRƒ}ƒ“ƒh "<a href="../macro/command/strreplace.html">strreplace</a>" ‚ð’ljÁ‚µ‚½B</li>
     </ul>
   </li>
 

Modified: trunk/doc/ja/html/macro/command/index.html
===================================================================
--- trunk/doc/ja/html/macro/command/index.html	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/ja/html/macro/command/index.html	2010-08-11 14:33:26 UTC (rev 3986)
@@ -119,6 +119,7 @@
  <li><a href="strlen.html">strlen</a>
  <li><a href="strmatch.html">strmatch</a> (ƒo[ƒWƒ‡ƒ“4.59ˆÈ~)
  <li><a href="strremove.html">strremove</a> (ƒo[ƒWƒ‡ƒ“4.67ˆÈ~)
+ <li><a href="strreplace.html">strreplace</a> (ƒo[ƒWƒ‡ƒ“4.67ˆÈ~)
  <li><a href="strscan.html">strscan</a>
  <li><a href="tolower.html">tolower</a> (ƒo[ƒWƒ‡ƒ“4.53ˆÈ~)
  <li><a href="toupper.html">toupper</a> (ƒo[ƒWƒ‡ƒ“4.53ˆÈ~)

Modified: trunk/doc/ja/html/macro/command/strinsert.html
===================================================================
--- trunk/doc/ja/html/macro/command/strinsert.html	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/ja/html/macro/command/strinsert.html	2010-08-11 14:33:26 UTC (rev 3986)
@@ -57,5 +57,11 @@
 messagebox s s
 </pre>
 
+<h2>ŽQÆ</h2>
+
+<a href="strmatch.html">strmatch</a><br>
+<a href="strreplace.html">strreplace</a><br>
+<a href="strremove.html">strremove</a><br>
+
 </body>
 </html>

Modified: trunk/doc/ja/html/macro/command/strmatch.html
===================================================================
--- trunk/doc/ja/html/macro/command/strmatch.html	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/ja/html/macro/command/strmatch.html	2010-08-11 14:33:26 UTC (rev 3986)
@@ -63,5 +63,11 @@
 messagebox groupmatchstr4 'groupmatchstr4'   ; 2600
 </pre>
 
+<h2>ŽQÆ</h2>
+
+<a href="strreplace.html">strreplace</a><br>
+<a href="strinsert.html">strinsert</a><br>
+<a href="strremove.html">strremove</a><br>
+
 </body>
 </html>

Modified: trunk/doc/ja/html/macro/command/strremove.html
===================================================================
--- trunk/doc/ja/html/macro/command/strremove.html	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/ja/html/macro/command/strremove.html	2010-08-11 14:33:26 UTC (rev 3986)
@@ -65,5 +65,11 @@
 messagebox s s
 </pre>
 
+<h2>ŽQÆ</h2>
+
+<a href="strmatch.html">strmatch</a><br>
+<a href="strreplace.html">strreplace</a><br>
+<a href="strinsert.html">strinsert</a><br>
+
 </body>
 </html>

Added: trunk/doc/ja/html/macro/command/strreplace.html
===================================================================
--- trunk/doc/ja/html/macro/command/strreplace.html	                        (rev 0)
+++ trunk/doc/ja/html/macro/command/strreplace.html	2010-08-11 14:33:26 UTC (rev 3986)
@@ -0,0 +1,56 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+  "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
+  <title>strreplace</title>
+  <meta http-equiv="Content-Style-Type" content="text/css">
+  <link rel="stylesheet" href="../../style.css" type="text/css">
+</head>
+
+<body>
+
+
+<h1>strreplace</h1>
+
+<p>
+•¶Žš—ñ‚ð’uŠ·‚·‚éB
+</p>
+
+<h2>Œ`Ž®</h2>
+
+<pre class="macro-syntax">
+strreplace &lt;strvar&gt; &lt;index&gt; &lt;oldstr&gt; &lt;newstr&gt;
+</pre>
+
+<h2>‰ðà</h2>
+
+<p>
+•¶Žš—ñ•Ï” &lt;strvar&gt; ‚Ì &lt;index&gt; ˆÊ’ui1ƒIƒŠƒWƒ“j‚©‚çA•¶Žš—ñ &lt;oldstr&gt; ‚ðŒŸõ‚µA•¶Žš—ñ &lt;newstr&gt; ‚É’u‚«Š·‚¦‚éB
+</p>
+
+<h2>—á</h2>
+
+<pre class="macro-example">
+src='Microsoft Windows XP [Version 5.1.2600]'
+strmatch src '(Version \d+.\d+.)\d+'
+
+int2str s result
+messagebox s groupmatchstr1
+pos=result                ; 23
+mstr=groupmatchstr1       ; Version 5.1.
+
+strreplace src pos mstr 'Build '
+if result=1 then
+	messagebox src 'result'   ; Microsoft Windows XP [Build 2600]
+endif
+</pre>
+
+<h2>ŽQÆ</h2>
+
+<a href="strmatch.html">strmatch</a><br>
+<a href="strinsert.html">strinsert</a><br>
+<a href="strremove.html">strremove</a><br>
+
+</body>
+</html>

Modified: trunk/doc/ja/teraterm.hhc
===================================================================
--- trunk/doc/ja/teraterm.hhc	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/ja/teraterm.hhc	2010-08-11 14:33:26 UTC (rev 3986)
@@ -1054,6 +1054,10 @@
 					<param name="Local" value="html\macro\command\strremove.html">
 					</OBJECT>
 				<LI> <OBJECT type="text/sitemap">
+					<param name="Name" value="strreplace">
+					<param name="Local" value="html\macro\command\strreplace.html">
+					</OBJECT>
+				<LI> <OBJECT type="text/sitemap">
 					<param name="Name" value="strscan">
 					<param name="Local" value="html\macro\command\strscan.html">
 					<param name="ImageNumber" value="11">

Modified: trunk/doc/ja/teraterm.hhp
===================================================================
--- trunk/doc/ja/teraterm.hhp	2010-08-11 14:08:41 UTC (rev 3985)
+++ trunk/doc/ja/teraterm.hhp	2010-08-11 14:33:26 UTC (rev 3986)
@@ -288,6 +288,7 @@
 HlpMacroCommandStrlen=html\macro\command\strlen.html
 HlpMacroCommandStrmatch=html\macro\command\strmatch.html
 HlpMacroCommandStrremove=html\macro\command\strremove.html
+HlpMacroCommandStrreplace=html\macro\command\strreplace.html
 HlpMacroCommandStrscan=html\macro\command\strscan.html
 HlpMacroCommandTestlink=html\macro\command\testlink.html
 HlpMacroCommandTolower=html\macro\command\tolower.html



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