| 74 | |
| 75 | #ifdef _WIN32 |
| 76 | internal::utf16_to_utf8::utf16_to_utf8(wstring_view s) { |
| 77 | if (int error_code = convert(s)) { |
| 78 | FMT_THROW(windows_error(error_code, |
| 79 | "cannot convert string from UTF-16 to UTF-8")); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | int internal::utf16_to_utf8::convert(wstring_view s) { |
| 84 | if (s.size() > INT_MAX) return ERROR_INVALID_PARAMETER; |
nothing calls this directly
no test coverage detected