/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2020 Ben Vanik. All rights reserved. * * Released under the BSD license - see LICENSE in the root for more details. * ****************************************************************************** */ #include "xenia/base/string.h" #include #include #define UTF_CPP_CPLUSPLUS 201703L #include "third_party/utfcpp/source/utf8.h" namespace utfcpp = utf8; namespace xe { std::string to_utf8(const std::u16string_view source) { return utfcpp::utf16to8(source); } std::u16string to_utf16(const std::string_view source) { return utfcpp::utf8to16(source); } } // namespace xe