From: K.Kosako Date: Mon, 26 Mar 2018 01:56:08 +0000 (+0900) Subject: small update for doc/CALLOUTS.BUILTIN X-Git-Tag: v6.8.2^2~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67759a15892f8a8498d8e4d4e0a2ff9157ba9c5b;p=onig small update for doc/CALLOUTS.BUILTIN --- diff --git a/doc/CALLOUTS.BUILTIN b/doc/CALLOUTS.BUILTIN index 0d87887..999e94c 100644 --- a/doc/CALLOUTS.BUILTIN +++ b/doc/CALLOUTS.BUILTIN @@ -12,15 +12,15 @@ CALLOUTS.BUILTIN 2018/03/26 (*MISMATCH) - Terminate Match process. - Continue Search process. + Terminates Match process. + Continues Search process. * ERROR (progress) (*ERROR{n::LONG}) - Terminate Search/Match process. + Terminates Search/Match process. Return value is the argument 'n'. (The value must be less than -1) 'n' is an optional argument. (default value is ONIG_ABORT) @@ -30,10 +30,10 @@ CALLOUTS.BUILTIN 2018/03/26 (*MAX{n::LONG/TAG}) - Restrict the maximum count of success. - If 'n' values are tag, slot 0 value of the tag are used. + Restricts the maximum count of success. + If 'n' type is tag, slot 0 value of the tag are used. - ex. "(?:(*MAX[T]{3})a)*(?:(*MAX{T})c)*" + ex. "(?:(*COUNT[T]{X})a)*(?:(*MAX{T})c)*" [callout data] slot 0: current success count. @@ -79,8 +79,8 @@ CALLOUTS.BUILTIN 2018/03/26 (*CMP{x::TAG/LONG, op::STRING, y::TAG/LONG}) - Compare x value and y value with op operator. - If x and y values are tag, slot 0 value of the tag are used. + Compares x value and y value with op operator. + If x and y types are tag, slot 0 value of the tag are used. op: '==', '!=', '>', '<', '>=', '<=' diff --git a/doc/CALLOUTS.BUILTIN.ja b/doc/CALLOUTS.BUILTIN.ja index cc6e65b..828ace7 100644 --- a/doc/CALLOUTS.BUILTIN.ja +++ b/doc/CALLOUTS.BUILTIN.ja @@ -1,4 +1,4 @@ -CALLOUTS.BUILTIN.ja 2018/03/22 +CALLOUTS.BUILTIN.ja 2018/03/26 * FAIL (前進) @@ -30,7 +30,9 @@ CALLOUTS.BUILTIN.ja 2018/03/22 (*MAX{n::LONG/TAG}) 成功回数を制限する - 'n'の値がTAGのときは、そのTAGのcalloutのslot 0の値が使用される + 'n'がTAGのときは、そのTAGのcalloutのslot 0の値が使用される + + 例: "(?:(*COUNT[T]{X})a)*(?:(*MAX{T})c)*" [callout data] slot 0: 現在の成功回数