mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 14:25:23 +00:00
NIR: progress (#22817)
Done: - [x] Implement conversions to openArray/varargs. - [x] Implement index/range checking.
This commit is contained in:
@@ -206,6 +206,9 @@ proc nimAddStrV1(s: var NimStringV2; src: NimStringV2) {.compilerRtl, inl.} =
|
||||
prepareAdd(s, src.len)
|
||||
appendString s, src
|
||||
|
||||
proc nimDestroyStrV1(s: NimStringV2) {.compilerRtl, inl.} =
|
||||
frees(s)
|
||||
|
||||
func capacity*(self: string): int {.inline.} =
|
||||
## Returns the current capacity of the string.
|
||||
# See https://github.com/nim-lang/RFCs/issues/460
|
||||
|
||||
Reference in New Issue
Block a user