| 73 | } |
| 74 | |
| 75 | std::string utf8_to_string(const char *source) { |
| 76 | auto bytes = convert("UTF-8", "CHAR//IGNORE", source, strlen(source), utf8_length(source) + 1); |
| 77 | if (bytes.empty()) |
| 78 | return {}; |
| 79 | return bytes.data(); |
| 80 | } |
| 81 | |
| 82 | // This function is more or less transferred from gcc source |
| 83 | bool match_special_char(wchar_t *dest, const wchar_t *&source) { |
nothing calls this directly
no test coverage detected