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
|
|
@ -1021,9 +1021,9 @@ proc splitData*(TextNode: PText, offset: int): PText =
|
|||
if offset > TextNode.data.len():
|
||||
raise newException(EIndexSizeErr, "Index out of bounds")
|
||||
|
||||
var left: string = TextNode.data.copy(0, offset)
|
||||
var left: string = TextNode.data.substr(0, offset)
|
||||
TextNode.data = left
|
||||
var right: string = TextNode.data.copy(offset, TextNode.data.len())
|
||||
var right: string = TextNode.data.substr(offset, TextNode.data.len())
|
||||
|
||||
if TextNode.FParentNode != nil:
|
||||
for i in low(TextNode.FParentNode.childNodes)..high(TextNode.FParentNode.childNodes):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue