* fixes #18550 * update the manual to reflect reality
This commit is contained in:
parent
58080525a1
commit
01fc9e58ca
9 changed files with 57 additions and 11 deletions
|
|
@ -171,7 +171,7 @@ proc newWideCString*(s: cstring): WideCStringObj =
|
|||
result = newWideCString(s, s.len)
|
||||
|
||||
proc newWideCString*(s: string): WideCStringObj =
|
||||
result = newWideCString(s, s.len)
|
||||
result = newWideCString(cstring s, s.len)
|
||||
|
||||
proc `$`*(w: WideCString, estimate: int, replacement: int = 0xFFFD): string =
|
||||
result = newStringOfCap(estimate + estimate shr 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue