Blame doc/CALLOUTS.BUILTIN

Packit Service bd74e6
CALLOUTS.BUILTIN               2018/03/26
Packit Service bd74e6
Packit Service bd74e6
Packit Service bd74e6
* FAIL    (progress)
Packit Service bd74e6
Packit Service bd74e6
  (*FAIL)
Packit Service bd74e6
Packit Service bd74e6
  Always fail.
Packit Service bd74e6
Packit Service bd74e6
Packit Service bd74e6
* MISMATCH    (progress)
Packit Service bd74e6
Packit Service bd74e6
  (*MISMATCH)
Packit Service bd74e6
Packit Service bd74e6
  Terminates Match process.
Packit Service bd74e6
  Continues Search process.
Packit Service bd74e6
Packit Service bd74e6
Packit Service bd74e6
* ERROR    (progress)
Packit Service bd74e6
Packit Service bd74e6
  (*ERROR{n::LONG})
Packit Service bd74e6
Packit Service bd74e6
  Terminates Search/Match process.
Packit Service bd74e6
Packit Service bd74e6
  Return value is the argument 'n'. (The value must be less than -1)
Packit Service bd74e6
  'n' is an optional argument. (default value is ONIG_ABORT)
Packit Service bd74e6
Packit Service bd74e6
Packit Service bd74e6
* MAX    (progress/retraction)
Packit Service bd74e6
Packit Service bd74e6
  (*MAX{n::LONG/TAG, c::CHAR})
Packit Service bd74e6
Packit Service bd74e6
  Restricts the maximum count of success(default), progress or retraction.
Packit Service bd74e6
  If 'n' type is tag, slot 0 value of the tag are used.
Packit Service bd74e6
  Depends on 'c' argument, the slot 0 value changes.
Packit Service bd74e6
  'c' is an optional argument, default value is 'X'.
Packit Service bd74e6
Packit Service bd74e6
  (* success count = progress count - retraction count)
Packit Service bd74e6
Packit Service bd74e6
Packit Service bd74e6
  ex. "(?:(*COUNT[T]{X})a)*(?:(*MAX{T})c)*"
Packit Service bd74e6
Packit Service bd74e6
  [callout data]
Packit Service bd74e6
  slot 0: '>': progress count, '<': retraction count, 'X': success count (default)
Packit Service bd74e6
Packit Service bd74e6
Packit Service bd74e6
* COUNT    (progress/retraction)
Packit Service bd74e6
Packit Service bd74e6
  (*COUNT{c::CHAR})
Packit Service bd74e6
Packit Service bd74e6
  Counter.
Packit Service bd74e6
  Depends on 'c' argument, the slot 0 value changes.
Packit Service bd74e6
  'c' is an optional argument, default value is '>'.
Packit Service bd74e6
Packit Service bd74e6
  [callout data]
Packit Service bd74e6
  slot 0: '>': progress count (default), '<': retraction count, 'X': success count
Packit Service bd74e6
  slot 1: progress count
Packit Service bd74e6
  slot 2: retraction count
Packit Service bd74e6
Packit Service bd74e6
  ** If option ONIG_OPTION_FIND_LONGEST or ONIG_OPTION_FIND_NOT_EMPTY is used,
Packit Service bd74e6
     counts are not accurate.
Packit Service bd74e6
Packit Service bd74e6
Packit Service bd74e6
* TOTAL_COUNT    (progress/retraction)
Packit Service bd74e6
Packit Service bd74e6
  (*TOTAL_COUNT{c::CHAR})
Packit Service bd74e6
Packit Service bd74e6
  It's the almost same as COUNT.
Packit Service bd74e6
  But the counts are integrated in a search process.
Packit Service bd74e6
  'c' is an optional argument, default value is '>'.
Packit Service bd74e6
Packit Service bd74e6
  [callout data]
Packit Service bd74e6
  slot 0: '>': progress count (default), '<': retraction count, 'X': success count
Packit Service bd74e6
  slot 1: progress count
Packit Service bd74e6
  slot 2: retraction count
Packit Service bd74e6
Packit Service bd74e6
  ** If option ONIG_OPTION_FIND_LONGEST or ONIG_OPTION_FIND_NOT_EMPTY is used,
Packit Service bd74e6
     counts are not accurate.
Packit Service bd74e6
Packit Service bd74e6
Packit Service bd74e6
* CMP    (progress)
Packit Service bd74e6
Packit Service bd74e6
  (*CMP{x::TAG/LONG, op::STRING, y::TAG/LONG})
Packit Service bd74e6
Packit Service bd74e6
  Compares x value and y value with op operator.
Packit Service bd74e6
  If x and y types are tag, slot 0 value of the tag are used.
Packit Service bd74e6
Packit Service bd74e6
  op: '==', '!=', '>', '<', '>=', '<='
Packit Service bd74e6
Packit Service bd74e6
  ex. "(?:(*MAX[TA]{7})a|(*MAX[TB]{5})b)*(*CMP{TA,>=,4})"
Packit Service bd74e6
Packit Service bd74e6
  [callout data]
Packit Service bd74e6
  slot 0: op value (enum OP_CMP in src/regexec.c)
Packit Service bd74e6
Packit Service bd74e6
//END