MCPcopy Create free account
hub / github.com/DFHack/dfhack / mbrtoc32

Function mbrtoc32

library/Console-posix.cpp:148–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146// But wchar_t is 4 bytes that is a good fallback implementation
147using u32string = std::wstring;
148size_t mbrtoc32(u32string::value_type* c,
149 const char* s,
150 std::size_t n,
151 std::mbstate_t* ps)
152{
153 return std::mbrtowc(c, s, n, ps);
154}
155
156size_t c32rtomb(char* mb,
157 u32string::value_type c,

Callers 2

fromLocaleMBFunction · 0.85
prompt_loopMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected