diff options
author | Patrick Simianer <p@simianer.de> | 2014-01-27 10:39:36 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-01-27 10:39:36 +0100 |
commit | 64e135092c140310345bb7fcf3dffc8072e652d3 (patch) | |
tree | 127636a2820fb9a7a522157ea4de55cdc0c3c0bd /utils | |
parent | 58be95f557d2f6a006cc98a23de98125e6b83a32 (diff) | |
parent | 5ab6eb44d67a48ea5b366d8b2878f3da7ef960e4 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'utils')
-rw-r--r-- | utils/stringlib.h | 2 |
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; } |