[Ttssh2-commit] [5202] regexoptionのマニュアルを追加。

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2013年 4月 16日 (火) 17:00:18 JST


Revision: 5202
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5202
Author:   doda
Date:     2013-04-16 17:00:18 +0900 (Tue, 16 Apr 2013)
Log Message:
-----------
regexoptionのマニュアルを追加。

Modified Paths:
--------------
    trunk/doc/en/html/macro/command/regexoption.html
    trunk/doc/en/html/macro/command/strmatch.html
    trunk/doc/en/html/macro/command/strreplace.html
    trunk/doc/en/html/macro/command/waitregex.html

-------------- next part --------------
Modified: trunk/doc/en/html/macro/command/regexoption.html
===================================================================
--- trunk/doc/en/html/macro/command/regexoption.html	2013-04-16 06:44:20 UTC (rev 5201)
+++ trunk/doc/en/html/macro/command/regexoption.html	2013-04-16 08:00:18 UTC (rev 5202)
@@ -13,65 +13,333 @@
 
 <h1>regexoption</h1>
 
-<p>
-Specifies the regular expression encoding.
-</p>
+<!-- p>
+\x90\xB3\x8BK\x95\\x8C\xBB\x82̕\xB6\x96@\x81A\x95\xB6\x8E\x9A\x83G\x83\x93\x83R\x81[\x83f\x83B\x83\x93\x83O\x81A\x83I\x83v\x83V\x83\x87\x83\x93\x82\xF0\x90ݒ肷\x82\xE9\x81B
+</p -->
 
 <pre class="macro-syntax">
-regexoption &lt;encoding string&gt;
+regexoption &lt;option1&gt; [&lt;option2&gt; ...]
 </pre>
 
-<h2>Parameters</h2>
+<h2>Remarks</h2>
 
-<ul>
- <li>ENCODING_ASCII, ASCII</li>
- <li>ENCODING_ISO_8859_1, ISO_8859_1</li>
- <li>ENCODING_ISO_8859_2, ISO_8859_2</li>
- <li>ENCODING_ISO_8859_3, ISO_8859_3</li>
- <li>ENCODING_ISO_8859_4, ISO_8859_4</li>
- <li>ENCODING_ISO_8859_5, ISO_8859_5</li>
- <li>ENCODING_ISO_8859_6, ISO_8859_6</li>
- <li>ENCODING_ISO_8859_7, ISO_8859_7</li>
- <li>ENCODING_ISO_8859_8, ISO_8859_8</li>
- <li>ENCODING_ISO_8859_9, ISO_8859_9</li>
- <li>ENCODING_ISO_8859_10, ISO_8859_10</li>
- <li>ENCODING_ISO_8859_11, ISO_8859_11</li>
- <li>ENCODING_ISO_8859_13, ISO_8859_13</li>
- <li>ENCODING_ISO_8859_14, ISO_8859_14</li>
- <li>ENCODING_ISO_8859_15, ISO_8859_15</li>
- <li>ENCODING_ISO_8859_16, ISO_8859_16</li>
- <li>ENCODING_UTF8, UTF8</li>
- <li>ENCODING_UTF16_BE, UTF16_BE</li>
- <li>ENCODING_UTF16_LE, UTF16_LE</li>
- <li>ENCODING_UTF32_BE, UTF32_BE</li>
- <li>ENCODING_UTF32_LE, UTF32_LE</li>
- <li>ENCODING_EUC_JP, EUC_JP</li>
- <li>ENCODING_EUC_TW, EUC_TW</li>
- <li>ENCODING_EUC_KR, EUC_KR</li>
- <li>ENCODING_EUC_CN, EUC_CN</li>
- <li>ENCODING_SJIS, SJIS, ENCODING_CP932, CP932</li>
- <li>ENCODING_KOI8_R, KOI8_R</li>
- <li>ENCODING_CP1251, CP1251</li>
- <li>ENCODING_BIG5, BIG5</li>
- <li>ENCODING_GB18030, GB18030</li>
-</ul>
+<!--
+<p>
+<a href="strmatch.html">strmatch</a>, <a href="strreplace.html">strreplace</a>, <a href="waitregex.html">waitregex</a> \x82Ŏg\x97p\x82\xB7\x82鐳\x8BK\x95\\x8C\xBB\x82̕\xB6\x96@\x81A\x95\xB6\x8E\x9A\x83G\x83\x93\x83R\x81[\x83f\x83B\x83\x93\x83O\x81A\x83I\x83v\x83V\x83\x87\x83\x93\x82\xF0\x90ݒ肷\x82\xE9\x81B
+</p>
 
+<p>
+\x83I\x83v\x83V\x83\x87\x83\x93 option1 [option2 ...] \x82ɂ́A\x88ȉ\xBA\x82̒\x86\x82\xA9\x82當\x96@\x82\xF01\x82A\x83G\x83\x93\x83R\x81[\x83f\x83B\x83\x93\x83O\x82\xF01\x82A\x83I\x83v\x83V\x83\x87\x83\x93\x82𕡐\x94\x8Ew\x92\xE8\x82ł\xAB\x82\xE9\x81B<br>
+\x8Ae\x90ݒ\xE8\x82̃f\x83t\x83H\x83\x8B\x83g\x92l\x82́A\x95\xB6\x96@: SYNTAX_RUBY, \x83G\x83\x93\x83R\x81[\x83f\x83B\x83\x93\x83O: ENCODING_ASCII, \x83I\x83v\x83V\x83\x87\x83\x93: OPTION_NONE \x82ƂȂ\xE9\x81B
+</p>
+-->
 
-<h2>Return Value</h2>
-None.
+<table border="2">
+<tr>
+	<th>Type</th>
+	<th>Option Name</th>
+	<th>(short form)</th>
+	<th>Description</th>
+</tr>
+<tr>
+	<td rowspan="11">Syntax</td>
+	<td>SYNTAX_DEFAULT</td>
+	<td>-</td>
+	<td>Default (Ruby style)</td>
+</tr>
+<tr>
+	<td>SYNTAX_ASIS</td>
+	<td>ASIS</td>
+	<td>plain text</td>
+</tr>
+<tr>
+	<td>SYNTAX_POSIX_BASIC</td>
+	<td>POSIX_BASIC</td>
+	<td>POSIX Basic RE</td>
+</tr>
+<tr>
+	<td>SYNTAX_POSIX_EXTENDED</td>
+	<td>POSIX_EXTENDED</td>
+	<td>POSIX Extended RE</td>
+</tr>
+<tr>
+	<td>SYNTAX_EMACS</td>
+	<td>EMACS</td>
+	<td>Emacs style RE</td>
+</tr>
+<tr>
+	<td>SYNTAX_GREP</td>
+	<td>GREP</td>
+	<td>grep style RE</td>
+</tr>
+<tr>
+	<td>SYNTAX_GNU_REGEX</td>
+	<td>GNU_REGEX</td>
+	<td>GNU Regex</td>
+</tr>
+<tr>
+	<td>SYNTAX_JAVA</td>
+	<td>JAVA</td>
+	<td>Java style</td>
+</tr>
+<tr>
+	<td>SYNTAX_PERL</td>
+	<td>PERL</td>
+	<td>Perl style</td>
+</tr>
+<tr>
+	<td>SYNTAX_PERL_NG</td>
+	<td>PERL_NG</td>
+	<td>Perl + named group</td>
+</tr>
+<tr>
+	<td>SYNTAX_RUBY</td>
+	<td>RUBY</td>
+	<td>Ruby style</td>
+</tr>
 
+<tr>
+	<td rowspan="30">Encoding</td>
+	<td>ENCODING_ASCII</td>
+	<td>ASCII</td>
+	<td>ASCII encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_1</td>
+	<td>ISO_8859_1</td>
+	<td>ISO 8859-1 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_2</td>
+	<td>ISO_8859_2</td>
+	<td>ISO 8859-2 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_3</td>
+	<td>ISO_8859_3</td>
+	<td>ISO 8859-3 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_4</td>
+	<td>ISO_8859_4</td>
+	<td>ISO 8859-4 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_5</td>
+	<td>ISO_8859_5</td>
+	<td>ISO 8859-5 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_6</td>
+	<td>ISO_8859_6</td>
+	<td>ISO 8859-6 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_7</td>
+	<td>ISO_8859_7</td>
+	<td>ISO 8859-7 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_8</td>
+	<td>ISO_8859_8</td>
+	<td>ISO 8859-8 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_9</td>
+	<td>ISO_8859_9</td>
+	<td>ISO 8859-9 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_10</td>
+	<td>ISO_8859_10</td>
+	<td>ISO 8859-10 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_11</td>
+	<td>ISO_8859_11</td>
+	<td>ISO 8859-11 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_13</td>
+	<td>ISO_8859_13</td>
+	<td>ISO 8859-13 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_14</td>
+	<td>ISO_8859_14</td>
+	<td>ISO 8859-14 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_15</td>
+	<td>ISO_8859_15</td>
+	<td>ISO 8859-15 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_ISO_8859_16</td>
+	<td>ISO_8859_16</td>
+	<td>ISO 8859-16 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_UTF8</td>
+	<td>UTF8</td>
+	<td>UTF-8 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_UTF16_BE</td>
+	<td>UTF16_BE</td>
+	<td>UTF-16 (Big Endian) encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_UTF16_LE</td>
+	<td>UTF16_LE</td>
+	<td>UTF-16 (Little Endian) encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_UTF32_BE</td>
+	<td>UTF32_BE</td>
+	<td>UTF-32 (Big Endian) encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_UTF32_LE</td>
+	<td>UTF32_LE</td>
+	<td>UTF-32 (Little Endian) encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_EUC_JP</td>
+	<td>EUC_JP</td>
+	<td>EUC-JP encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_EUC_TW</td>
+	<td>EUC_TW</td>
+	<td>EUC-TW encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_EUC_KR</td>
+	<td>EUC_KR</td>
+	<td>EUC-KR encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_EUC_CN</td>
+	<td>EUC_CN</td>
+	<td>EUC-CN encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_SJIS</td>
+	<td>SJIS</td>
+	<td>Shift_JIS encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_KOI8_R</td>
+	<td>KOI8_R</td>
+	<td>KOI8-R encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_CP1251</td>
+	<td>CP1251</td>
+	<td>CP1251 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_BIG5</td>
+	<td>BIG5</td>
+	<td>Big5 encoding</td>
+</tr>
+<tr>
+	<td>ENCODING_GB18030</td>
+	<td>GB18030</td>
+	<td>GB18030 encoding</td>
+</tr>
 
+<tr>
+	<td rowspan="10">Option</td>
+	<td>OPTION_NONE</td>
+	<td>-</td>
+	<td>no option</td>
+</tr>
+<tr>
+	<td>OPTION_SINGLELINE</td>
+	<td>SINGLELINE</td>
+	<td>'^' -&gt; '\A', '$' -&gt; '\Z'</td>
+</tr>
+<tr>
+	<td>OPTION_MULTILINE</td>
+	<td>MULTILINE</td>
+	<td>'.' match with newline</td>
+</tr>
+<tr>
+	<td>OPTION_IGNORECASE</td>
+	<td>IGNORECASE</td>
+	<td>ambiguity match on</td>
+</tr>
+<tr>
+	<td>OPTION_EXTEND</td>
+	<td>EXTEND</td>
+	<td>extended pattern form</td>
+</tr>
+<tr>
+	<td>OPTION_FIND_LONGEST</td>
+	<td>FIND_LONGEST</td>
+	<td>find longest match</td>
+</tr>
+<tr>
+	<td>OPTION_FIND_NOT_EMPTY</td>
+	<td>FIND_NOT_EMPTY</td>
+	<td>ignore empty match</td>
+</tr>
+<tr>
+	<td>OPTION_NEGATE_SINGLELINE</td>
+	<td>NEGATE_SINGLELINE</td>
+	<td>clear ONIG_OPTION_SINGLELIN</td>
+</tr>
+<tr>
+	<td>OPTION_DONT_CAPTURE_GROUP</td>
+	<td>DONT_CAPTURE_GROUP</td>
+	<td> only named group captured</td>
+</tr>
+<tr>
+	<td>OPTION_CAPTURE_GROUP</td>
+	<td>CAPTURE_GROUP</td>
+	<td>named and no-named group captured</td>
+</tr>
+</table>
+
+
 <h2>Example</h2>
 
 <pre class="macro-example">
-regexoption "SJIS"
-strmatch "\x91Ώۃf\x81[\x83^" "\x83f\x81[\x83^"
+string="test \xC0 string"
+pattern="\xE0"
+
+regexoption "IGNORECASE"
+strmatch string pattern
+messagebox result "ASCII"        ; result -> 0 (Not Match)
+
+regexoption "ISO_8859_1" "IGNORECASE"
+strmatch string pattern
+messagebox result "ISO_8859_1"   ; result -> 6 (Match)
 </pre>
 
+<pre class="macro-example">
+string="Test (PaTTerN) String"
+pattern="(pattern)"
+
+regexoption "IGNORECASE"
+strmatch string pattern
+sprintf2 msg 'result=%d, matchstr="%s"' result matchstr
+messagebox msg "IGNORECASE"          ; result=7, matchstr="PaTTerN"
+
+regexoption "ASIS" "IGNORECASE"
+strmatch string pattern
+sprintf2 msg 'result=%d, matchstr="%s"' result matchstr
+messagebox msg "IGNORECASE + ASIS"   ; result=6, matchstr="(PaTTerN)"
+</pre>
+
 <h2>See also</h2>
-<a href="strreplace.html">strreplace</a><br>
-<a href="strmatch.html">strmatch</a><br>
-<a href="waitregex.html">waitregex</a><br>
+<ul>
+<li><a href="strmatch.html">strmatch</a></li>
+<li><a href="strreplace.html">strreplace</a></li>
+<li><a href="waitregex.html">waitregex</a></li>
+</ul>
 
 </body>
 </html>

Modified: trunk/doc/en/html/macro/command/strmatch.html
===================================================================
--- trunk/doc/en/html/macro/command/strmatch.html	2013-04-16 06:44:20 UTC (rev 5201)
+++ trunk/doc/en/html/macro/command/strmatch.html	2013-04-16 08:00:18 UTC (rev 5202)
@@ -53,6 +53,10 @@
 Also, these system variables will not be changed when the pattern does not match.
 </p>
 
+<!-- p>
+\x93\xFA\x96{\x8Cꓙ\x82̃}\x83\x8B\x83`\x83o\x83C\x83g\x95\xB6\x8E\x9A\x97\xF1\x82\xF0\x8C\x9F\x8D\x{142DC2}\xE9\x8Fꍇ\x81A\x8E\x96\x91O\x82\xC9<a href="regexoption.html">regexoption</a>\x82œK\x90؂ȃG\x83\x93\x83R\x81[\x83f\x83B\x83\x93\x83O\x82\xF0\x90ݒ肵\x82Ă\xA8\x82\xAD\x95K\x97v\x82\xAA\x82\xA0\x82\xE9\x81B
+</p -->
+
 <h2>Example</h2>
 
 <pre class="macro-example">
@@ -69,6 +73,7 @@
 
 <h2>Reference</h2>
 
+<a href="regexoption.html">regexoption</a><br>
 <a href="strreplace.html">strreplace</a><br>
 <a href="strinsert.html">strinsert</a><br>
 <a href="strremove.html">strremove</a><br>

Modified: trunk/doc/en/html/macro/command/strreplace.html
===================================================================
--- trunk/doc/en/html/macro/command/strreplace.html	2013-04-16 06:44:20 UTC (rev 5201)
+++ trunk/doc/en/html/macro/command/strreplace.html	2013-04-16 08:00:18 UTC (rev 5202)
@@ -35,6 +35,10 @@
 When the replacing fails, the result variable is 0.
 </p>
 
+<!-- p>
+\x93\xFA\x96{\x8Cꓙ\x82̃}\x83\x8B\x83`\x83o\x83C\x83g\x95\xB6\x8E\x9A\x97\xF1\x82\xF0\x8C\x9F\x8D\x{142DC2}\xE9\x8Fꍇ\x81A\x8E\x96\x91O\x82\xC9<a href="regexoption.html">regexoption</a>\x82œK\x90؂ȃG\x83\x93\x83R\x81[\x83f\x83B\x83\x93\x83O\x82\xF0\x90ݒ肵\x82Ă\xA8\x82\xAD\x95K\x97v\x82\xAA\x82\xA0\x82\xE9\x81B
+</p -->
+
 <h2>Example</h2>
 
 <pre class="macro-example">
@@ -67,6 +71,7 @@
 <h2>Reference</h2>
 
 <a href="../../reference/RE.txt">Oniguruma Regular Expressions</a><br>
+<a href="regexoption.html">regexoption</a><br>
 <a href="strmatch.html">strmatch</a><br>
 <a href="strinsert.html">strinsert</a><br>
 <a href="strremove.html">strremove</a><br>

Modified: trunk/doc/en/html/macro/command/waitregex.html
===================================================================
--- trunk/doc/en/html/macro/command/waitregex.html	2013-04-16 06:44:20 UTC (rev 5201)
+++ trunk/doc/en/html/macro/command/waitregex.html	2013-04-16 08:00:18 UTC (rev 5202)
@@ -65,6 +65,10 @@
 Group matched patterns of regular expressions are stored in 9 system variables from "groupmatchstr1" to "groupmatchstr9".
 </p>
 
+<!-- p>
+\x93\xFA\x96{\x8Cꓙ\x82̃}\x83\x8B\x83`\x83o\x83C\x83g\x95\xB6\x8E\x9A\x97\xF1\x82\xF0\x91҂ꍇ\x81A\x8E\x96\x91O\x82\xC9<a href="regexoption.html">regexoption</a>\x82œK\x90؂ȃG\x83\x93\x83R\x81[\x83f\x83B\x83\x93\x83O\x82\xF0\x90ݒ肵\x82Ă\xA8\x82\xAD\x95K\x97v\x82\xAA\x82\xA0\x82\xE9\x81B
+</p -->
+
 <h2>Example</h2>
 
 <pre class="macro-example">
@@ -76,5 +80,11 @@
 messagebox matchstr 'matchstr'
 </pre>
 
+<h2>See also</h2>
+
+<a href="regexoption.html">regexoption</a><br>
+<a href="wait.html">wait</a><br>
+<a href="waitln.html">waitln</a><br>
+
 </body>
 </html>



Ttssh2-commit メーリングリストの案内
Zurück zum Archiv-Index