summaryrefslogtreecommitdiff
path: root/Source/modules/asura-base/Misc/UTF8.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/modules/asura-base/Misc/UTF8.h')
-rw-r--r--Source/modules/asura-base/Misc/UTF8.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/modules/asura-base/Misc/UTF8.h b/Source/modules/asura-base/Misc/UTF8.h
new file mode 100644
index 0000000..269ad36
--- /dev/null
+++ b/Source/modules/asura-base/Misc/UTF8.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <string>
+
+#include "../Type.h"
+#include "../Classes.h"
+#include "../Utilities/dynamic_array.h"
+
+namespace_begin(AsuraEngine)
+
+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);
+
+namespace_end \ No newline at end of file