Update UTFConverter.h

pull/4986/head
Kim Kulling 2023-02-28 23:28:24 +01:00 committed by GitHub
parent 60da5e7e96
commit 534ee288c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -3,9 +3,7 @@
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2020, assimp team
Copyright (c) 2006-2023, assimp team
All rights reserved.
@ -56,11 +54,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
namespace AssimpSamples {
namespace SharedCode {
// Used to convert between multibyte and unicode strings.
/// @brief Used to convert between multibyte and unicode strings.
class UTFConverter {
public:
//utf8::utf16to8(start, end, back_inserter(str));
UTFConverter(const char* s) : s_(s), ws_() {
std::vector<unsigned char> str;
utf8::utf8to16(s, s + std::strlen(s) + 1, back_inserter(str));