| 264 | } |
| 265 | |
| 266 | std::string Utf16ToUtf8(const char16_t* u16str) { |
| 267 | if (u16str == nullptr) { |
| 268 | return ""; |
| 269 | } |
| 270 | QString qString = QString::fromUtf16(u16str); |
| 271 | return qString.toUtf8().toStdString(); |
| 272 | } |
| 273 | |
| 274 | std::u16string Utf8ToUtf16(const std::string& u8str) { |
| 275 | std::u16string u16str; |
no outgoing calls
no test coverage detected