Remove renderBounds()
A debug proc, it's not really useful and throws warnings anyway.
This commit is contained in:
parent
e5e5970d93
commit
763e902b65
1 changed files with 0 additions and 7 deletions
|
|
@ -383,13 +383,6 @@ proc findAll*(str: string, pattern: Regex, start = 0, endpos = -1): seq[string]
|
||||||
for match in str.findIter(pattern, start, endpos):
|
for match in str.findIter(pattern, start, endpos):
|
||||||
result.add(match.match)
|
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] =
|
proc split*(str: string, pattern: Regex, maxSplit = -1, start = 0): seq[string] =
|
||||||
result = @[]
|
result = @[]
|
||||||
var lastIdx = start
|
var lastIdx = start
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue