From 0be214aea43a94f85f8d63b26324b34fafa124f6 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Wed, 14 Mar 2018 09:46:44 +0900 Subject: [PATCH] small update doc/CALLOUTS.BUILTIN --- doc/CALLOUTS.BUILTIN | 17 +++++------------ doc/CALLOUTS.BUILTIN.ja | 18 ++++++------------ 2 files changed, 11 insertions(+), 24 deletions(-) diff --git a/doc/CALLOUTS.BUILTIN b/doc/CALLOUTS.BUILTIN index b82a41b..c4910a9 100644 --- a/doc/CALLOUTS.BUILTIN +++ b/doc/CALLOUTS.BUILTIN @@ -1,4 +1,4 @@ -CALLOUTS.BUILTIN 2018/03/13 +CALLOUTS.BUILTIN 2018/03/14 * FAIL @@ -8,13 +8,6 @@ CALLOUTS.BUILTIN 2018/03/13 Always fail. -* SUCCESS - - (*SUCCESS) - - Always success. - - * ABORT (*ABORT) @@ -43,7 +36,7 @@ CALLOUTS.BUILTIN 2018/03/13 * COUNT - (*COUNT{c::CHAR = '>'}) + (*COUNT{c::CHAR}) Counter. Depends on 'c' argument, the slot 0 value changes. @@ -62,10 +55,11 @@ CALLOUTS.BUILTIN 2018/03/13 * TOTAL_COUNT - (*TOTAL_COUNT{c::CHAR = '>'}) + (*TOTAL_COUNT{c::CHAR}) It's the almost same as COUNT. But the counts are integrated in a search process. + Default 'c' value is '>'. [callout data] slot 0: '>': progress count, '<': retraction count, 'X': success count @@ -81,8 +75,7 @@ CALLOUTS.BUILTIN 2018/03/13 op: '==', '!=', '>', '<', '>=', '<=' - ex. "(?:(*MAX[A]{7})a|(*MAX[B]{5})b)*(*CMP{A,>=,4})" - + ex. "(?:(*MAX[TA]{7})a|(*MAX[TB]{5})b)*(*CMP{TA,>=,4})" [callout data] slot 0: op value (enum OP_CMP in src/regexec.c) diff --git a/doc/CALLOUTS.BUILTIN.ja b/doc/CALLOUTS.BUILTIN.ja index 0a115b9..45a958a 100644 --- a/doc/CALLOUTS.BUILTIN.ja +++ b/doc/CALLOUTS.BUILTIN.ja @@ -1,4 +1,4 @@ -CALLOUTS.BUILTIN.ja 2018/03/13 +CALLOUTS.BUILTIN.ja 2018/03/14 * FAIL @@ -8,13 +8,6 @@ CALLOUTS.BUILTIN.ja 2018/03/13 常に失敗する -* SUCCESS - - (*SUCCESS) - - 常に成功する - - * ABORT (*ABORT) @@ -43,7 +36,7 @@ CALLOUTS.BUILTIN.ja 2018/03/13 * COUNT - (*COUNT{c::CHAR = '>'}) + (*COUNT{c::CHAR}) カウンタ 'c'引数の値によって、slot 0の値が変化する @@ -62,10 +55,11 @@ CALLOUTS.BUILTIN.ja 2018/03/13 * TOTAL_COUNT - (*TOTAL_COUNT{c::CHAR = '>'}) + (*TOTAL_COUNT{c::CHAR}) これはCOUNTとほとんど同じ しかし、カウントが検索過程で積算される + デフォルトの'c'の値は '>' [callout data] slot 0: '>': 前進回数, '<': 後退回数, 'X': 成功回数 @@ -78,11 +72,11 @@ CALLOUTS.BUILTIN.ja 2018/03/13 (*CMP{x::TAG/LONG, op::STRING, y::TAG/LONG}) xの値とyの値をop演算子で比較する + x, yがTAGのときにはそのcalloutのslot 0の値が参照される op: '==', '!=', '>', '<', '>=', '<=' - 例: "(?:(*MAX[A]{7})a|(*MAX[B]{5})b)*(*CMP{A,>=,4})" - + 例: "(?:(*MAX[TA]{7})a|(*MAX[TB]{5})b)*(*CMP{TA,>=,4})" [callout data] slot 0: op値 (src/regexec.c の中の enum OP_CMP) -- 2.40.0