summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorarmatthews <armatthe@cmu.edu>2014-01-23 00:50:03 -0500
committerarmatthews <armatthe@cmu.edu>2014-01-23 00:50:03 -0500
commit5ab6eb44d67a48ea5b366d8b2878f3da7ef960e4 (patch)
tree9ed5d541220c95ba24e801ca93f0d8acaea70e4c /utils
parente2f66f6014a0bc50de89b0ce4640d6aac7355e7f (diff)
parent20f843f96bfe520d3993ed4f56449ff2035b7695 (diff)
Merge branch 'master' of https://github.com/redpony/cdec
Diffstat (limited to 'utils')
-rw-r--r--utils/stringlib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/stringlib.h b/utils/stringlib.h
index 1bb533d8..f60b7867 100644
--- a/utils/stringlib.h
+++ b/utils/stringlib.h
@@ -265,6 +265,8 @@ inline unsigned int UTF8Len(unsigned char x) {
else if ((x >> 5) == 0x06) return 2;
else if ((x >> 4) == 0x0e) return 3;
else if ((x >> 3) == 0x1e) return 4;
+ else if ((x >> 2) == 0x3e) return 5;
+ else if ((x >> 1) == 0x7e) return 6;
else return 0;
}