///////////////////////////////////////////////////////
| 264 | |
| 265 | //////////////////////////////////////////////////////////// |
| 266 | std::wstring String::toWideString(std::optional<wchar_t> replacement) const |
| 267 | { |
| 268 | // Prepare the output string |
| 269 | std::wstring output; |
| 270 | output.reserve(m_string.length() + 1); |
| 271 | |
| 272 | // Convert |
| 273 | Utf32::toWide(m_string.begin(), m_string.end(), std::back_inserter(output), replacement); |
| 274 | |
| 275 | return output; |
| 276 | } |
| 277 | |
| 278 | |
| 279 | //////////////////////////////////////////////////////////// |
no test coverage detected