summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_utf8.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-04-04 18:13:05 +0300
committerValentin Bartenev <vbart@nginx.com>2018-04-04 18:13:05 +0300
commit0665896a5593fb41c92cbf164182a058ee40518c (patch)
treed657fac84d35aa3f605d25dc8e0a3c165db93b30 /src/nxt_utf8.h
parent43ba7aad6cadfab2eb45f09e894dec072c93e6cd (diff)
downloadunit-0665896a5593fb41c92cbf164182a058ee40518c.tar.gz
unit-0665896a5593fb41c92cbf164182a058ee40518c.tar.bz2
Style: capitalized letters in hexadecimal literals.
Diffstat (limited to '')
-rw-r--r--src/nxt_utf8.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nxt_utf8.h b/src/nxt_utf8.h
index 92847545..13f42e16 100644
--- a/src/nxt_utf8.h
+++ b/src/nxt_utf8.h
@@ -9,11 +9,11 @@
/*
- * Since the maximum valid Unicode character is 0x0010ffff, the maximum
- * difference between Unicode characters is lesser 0x0010ffff and
- * 0x0eee0eee can be used as value to indicate UTF-8 encoding error.
+ * Since the maximum valid Unicode character is 0x0010FFFF, the maximum
+ * difference between Unicode characters is lesser 0x0010FFFF and
+ * 0x0EEE0EEE can be used as value to indicate UTF-8 encoding error.
*/
-#define NXT_UTF8_SORT_INVALID 0x0eee0eee
+#define NXT_UTF8_SORT_INVALID 0x0EEE0EEE
NXT_EXPORT u_char *nxt_utf8_encode(u_char *p, uint32_t u);
@@ -44,7 +44,7 @@ nxt_utf8_next(const u_char *p, const u_char *end)
*/
c = *p;
- if ((c & 0xc0) != 0x80) {
+ if ((c & 0xC0) != 0x80) {
return p;
}