What's the Nim equivalent for wchar_t in C?
On my system, sizeof(wchar_t) is 4 (same as Rune), but WideCString in Nim is for UTF-16.
Should I use something like
type WChar {.importc: "wchar_t", header: "<wchar.h>".} = object
What should its name be? WChar, wchar_t, or cwchar_t?
I would use
type Char32 {.importc: "wchar_t", header: "<wchar.h>".} = object
I don't know by which logic it is mapped to 16 or 32 bits
There must be some historical reasons, I think. I'm trying to wrap some C functions.