summaryrefslogtreecommitdiff
path: root/lout/unicode.hh
diff options
context:
space:
mode:
authorsgeerken <devnull@localhost>2012-07-12 13:15:20 +0200
committersgeerken <devnull@localhost>2012-07-12 13:15:20 +0200
commit2e9c1b2b921a249743b139e7cea3449e642ae30e (patch)
tree256f8b387dda15ded6d9407c98711ccca4760a2a /lout/unicode.hh
parentfa1c054f17f6c71a5314e4c3e638c15aa33ec09c (diff)
new file "unicode.hh" and "unicode.cc" for Unicode and UTF-8 issues
Diffstat (limited to 'lout/unicode.hh')
-rw-r--r--lout/unicode.hh20
1 files changed, 20 insertions, 0 deletions
diff --git a/lout/unicode.hh b/lout/unicode.hh
new file mode 100644
index 00000000..123e7aa3
--- /dev/null
+++ b/lout/unicode.hh
@@ -0,0 +1,20 @@
+#ifndef __UNICODE_HH__
+#define __UNICODE_HH__
+
+namespace lout {
+
+/**
+ * \brief Stuff dealing with Unicode characters: UTF-8, character classes etc.
+ *
+ */
+namespace unicode {
+
+bool isAlpha (int ch);
+
+int decodeUtf8 (char *s);
+
+} // namespace lout
+
+} // namespace unicode
+
+#endif // __UNICODE_HH__