Unexpose implementation detail

This commit is contained in:
Flaviu Tamas 2015-01-12 20:57:20 -05:00
commit 1652cdbaff

View file

@ -277,7 +277,7 @@ proc initRegex*(pattern: string, options = "Sx"): Regex =
result.captureNameToId = result.getNameToNumberTable() result.captureNameToId = result.getNameToNumberTable()
# }}} # }}}
proc matchImpl*(str: string, pattern: Regex, start, endpos: int, flags: int): Option[RegexMatch] = proc matchImpl(str: string, pattern: Regex, start, endpos: int, flags: int): Option[RegexMatch] =
var result: RegexMatch var result: RegexMatch
new(result) new(result)
result.pattern = pattern result.pattern = pattern