summaryrefslogtreecommitdiff
path: root/Runtime/Misc/UTF8.h
blob: c21a367108052f9671a044d0b0fb51349c8c40c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

#include "Runtime/Utilities/dynamic_array.h"

typedef UInt16 UnicodeChar;

bool ConvertUTF8toUTF16 (const char* source, int srcLength, UnicodeChar* output, int& outlength);
bool ConvertUTF8toUTF16 (const std::string& source, dynamic_array<UnicodeChar>& utf16);
bool ConvertUTF16toUTF8 (const UInt16* source, int srcLength, char* output, int& outlength);
bool ConvertUTF16toUTF8 (const dynamic_array<UnicodeChar>& source, std::string& utf8);
bool ConvertUTF16toUTF8 (const UInt16* source, int srcLength, char* output, int& outlength);
bool ConvertUTF16toUTF8 (const UInt16 utf16character, std::string& utf8);