aboutsummaryrefslogtreecommitdiff
path: root/src/utf8.hh
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-05-15 22:08:10 -0400
committercorvid <corvid@lavabit.com>2009-05-15 22:08:10 -0400
commit1436c193233f3fb38b8c9f3fb9c8091e370a0738 (patch)
treec0a6b36afb61e990990f8a1c3fa4477fe1371643 /src/utf8.hh
parentd7e0c535340fa9f77416b9de7f6887780944d898 (diff)
Refactor: isolate calls to utf8 functions into a single source file.
Diffstat (limited to 'src/utf8.hh')
-rw-r--r--src/utf8.hh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/utf8.hh b/src/utf8.hh
new file mode 100644
index 00000000..f4d4bced
--- /dev/null
+++ b/src/utf8.hh
@@ -0,0 +1,16 @@
+#ifndef __UTF8_HH__
+#define __UTF8_HH__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+int a_Utf8_encode(unsigned int ucs, char *buf);
+int a_Utf8_test(const char* src, unsigned int srclen);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __UTF8_HH__ */
+