Remove renderBounds()

A debug proc, it's not really useful and throws warnings anyway.
This commit is contained in:
Flaviu Tamas
2015-03-05 10:42:37 -05:00
parent e5e5970d93
commit 763e902b65

View File

@@ -383,13 +383,6 @@ proc findAll*(str: string, pattern: Regex, start = 0, endpos = -1): seq[string]
for match in str.findIter(pattern, start, endpos):
result.add(match.match)
proc renderBounds(str: string, bounds: Slice[int]): string =
result = " " & str & "\n"
for i in -1 .. <bounds.a:
result.add(" ")
for i in bounds.a .. bounds.b:
result.add("^")
proc split*(str: string, pattern: Regex, maxSplit = -1, start = 0): seq[string] =
result = @[]
var lastIdx = start