deprecated system.copy: use system.substr instead

This commit is contained in:
Araq 2011-05-14 01:13:44 +02:00
commit 3e9dcc8be5
31 changed files with 122 additions and 109 deletions

View file

@ -216,7 +216,7 @@ proc LLStreamReadAll(s: PLLStream): string =
result = ""
of llsString:
if s.rd == 0: result = s.s
else: result = copy(s.s, s.rd + 0)
else: result = substr(s.s, s.rd)
s.rd = len(s.s)
of llsFile:
result = newString(bufSize)