Merge pull request #2260 from oderwat/upd-deprecated-repeats

Updates to remove deprecated repeatStr() and repeatChar() from all files.
This commit is contained in:
Andreas Rumpf 2015-03-04 16:42:13 +01:00
commit 1ca2db0273
27 changed files with 73 additions and 73 deletions

View file

@ -66,7 +66,7 @@ proc rawCompile(pattern: string, flags: cint): PPcre =
offset: cint
result = pcre.compile(pattern, flags, addr(msg), addr(offset), nil)
if result == nil:
raiseInvalidRegex($msg & "\n" & pattern & "\n" & repeatChar(offset) & "^\n")
raiseInvalidRegex($msg & "\n" & pattern & "\n" & spaces(offset) & "^\n")
proc finalizeRegEx(x: Regex) =
# XXX This is a hack, but PCRE does not export its "free" function properly.