revert 0944b0f4
This commit is contained in:
parent
842efab8ae
commit
ebaf603c84
10 changed files with 85 additions and 85 deletions
|
|
@ -122,7 +122,7 @@ proc bufSubstr(b: cstring, sPos, ePos: int): string {.inline.} =
|
|||
## Don't assume cstring is '\0' terminated
|
||||
let sz = ePos - sPos
|
||||
result = newString(sz+1)
|
||||
copyMem(addr(result[0]), unsafeAddr(b[sPos]), sz)
|
||||
copyMem(addr(result[0]), unsafeaddr(b[sPos]), sz)
|
||||
result.setLen(sz)
|
||||
|
||||
proc matchOrFind(buf: cstring, pattern: Regex, matches: var openArray[string],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue