Rule

Search:
Group by:

Types

RuleObj = object
  rule*: Regex
  replace*: string
  file*: string
  count*: int

Procs

proc `$`(r: RuleObj): string {...}{.raises: [ValueError], tags: [].}
Converts Rule object to string.
proc Rule(rule: Regex = re""; replace: string = ""; file: string = "nil"; count: int = 0): RuleObj {...}{.
    raises: [], tags: [].}

Creates new Rule object.

Keyword Arguments:

  • rule -- pattern for rule.
  • replace -- replace for rule.
  • count -- count for use pattern.