1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vlib: add a new module builtin.wchar, to ease dealing with C APIs that accept wchar_t* (#18794)

This commit is contained in:
Delyan Angelov
2023-07-07 02:40:11 +03:00
committed by GitHub
parent de392003be
commit ded6c38061
5 changed files with 167 additions and 4 deletions

View File

@ -295,7 +295,7 @@ fn C.SymCleanup(hProcess voidptr)
fn C.MultiByteToWideChar(codePage u32, dwFlags u32, lpMultiMyteStr &char, cbMultiByte int, lpWideCharStr &u16, cchWideChar int) int
fn C.wcslen(str &u16) int
fn C.wcslen(str voidptr) usize
fn C.WideCharToMultiByte(codePage u32, dwFlags u32, lpWideCharStr &u16, cchWideChar int, lpMultiByteStr &char, cbMultiByte int, lpDefaultChar &char, lpUsedDefaultChar &int) int