| 146 | // But wchar_t is 4 bytes that is a good fallback implementation |
| 147 | using u32string = std::wstring; |
| 148 | size_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 | |
| 156 | size_t c32rtomb(char* mb, |
| 157 | u32string::value_type c, |
no outgoing calls
no test coverage detected