Added UTF-8 functions.
[nssm.git] / utf8.h
diff --git a/utf8.h b/utf8.h
new file mode 100644 (file)
index 0000000..ccc535a
--- /dev/null
+++ b/utf8.h
@@ -0,0 +1,13 @@
+#ifndef UTF8_H
+#define UTF8_H
+
+void setup_utf8();
+void unsetup_utf8();
+int to_utf8(const wchar_t *, char **, unsigned long *);
+int to_utf8(const char *, char **, unsigned long *);
+int to_utf16(const char *, wchar_t **utf16, unsigned long *);
+int to_utf16(const wchar_t *, wchar_t **utf16, unsigned long *);
+int from_utf8(const char *, TCHAR **, unsigned long *);
+int from_utf16(const wchar_t *, TCHAR **, unsigned long *);
+
+#endif