add widestrs.newWideCString overload (#16860)
This commit is contained in:
parent
def1f99289
commit
777888fdea
1 changed files with 3 additions and 0 deletions
|
|
@ -142,6 +142,9 @@ iterator runes(s: cstring, L: int): int =
|
|||
fastRuneAt(s, i, L, result, true)
|
||||
yield result
|
||||
|
||||
proc newWideCString*(size: int): WideCStringObj =
|
||||
createWide(result, size * 2 + 2)
|
||||
|
||||
proc newWideCString*(source: cstring, L: int): WideCStringObj =
|
||||
createWide(result, L * 2 + 2)
|
||||
var d = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue