deprecated system.copy: use system.substr instead
This commit is contained in:
parent
32241aa9fe
commit
3e9dcc8be5
31 changed files with 122 additions and 109 deletions
|
|
@ -1106,7 +1106,7 @@ proc getNextTok(r: var TSrcGen, kind: var TTokType, literal: var string) =
|
|||
if r.idx < len(r.tokens):
|
||||
kind = r.tokens[r.idx].kind
|
||||
var length = r.tokens[r.idx].length
|
||||
literal = copy(r.buf, r.pos + 0, r.pos + 0 + length - 1)
|
||||
literal = substr(r.buf, r.pos + 0, r.pos + 0 + length - 1)
|
||||
inc(r.pos, length)
|
||||
inc(r.idx)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue