aboutsummaryrefslogtreecommitdiff
path: root/lout/unicode.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2013-04-19 18:38:37 +0000
committercorvid <corvid@lavabit.com>2013-04-19 18:38:37 +0000
commit31cb72fdf49546055d77a85a6f6bda1e6faad705 (patch)
tree7aec6b43b3d4b97fa3ace90bf012b1b3c845a89a /lout/unicode.cc
parent794907e571d19dca3c2e093c5964c157ffbc6342 (diff)
trim some spaces
Diffstat (limited to 'lout/unicode.cc')
-rw-r--r--lout/unicode.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lout/unicode.cc b/lout/unicode.cc
index 77bd8077..4f0f0b3b 100644
--- a/lout/unicode.cc
+++ b/lout/unicode.cc
@@ -92,7 +92,7 @@ const char *nextUtf8Char (const char *s)
const char *r;
if (s == NULL || s[0] == 0)
- r = NULL;
+ r = NULL;
else if((s[0] & 0x80) == 0)
r = s + 1;
else if((s[0] & 0xe0) == 0xc0 && (s[1] & 0xc0) == 0x80)
@@ -118,7 +118,7 @@ const char *nextUtf8Char (const char *s, int len)
const char *r;
if (s == NULL || len <= 0)
- r = NULL;
+ r = NULL;
else if(len >= 1 && (s[0] & 0x80) == 0)
r = s + 1;
else if(len >= 2 && (s[0] & 0xe0) == 0xc0 && (s[1] & 0xc0) == 0x80)