aboutsummaryrefslogtreecommitdiff
path: root/include/mbstring.h
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-03-07 14:06:34 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-03-07 14:06:34 +0100
commit39ff31be4c955d1fb72b2ac5a0e05531f2377c6c (patch)
treef49d2220cf295a99b138e7deb3c1fb3bb26a2ca7 /include/mbstring.h
parent5c5629ebb387242e99e90ccbd0bb0344c4a393fa (diff)
Formatting fixes
Diffstat (limited to 'include/mbstring.h')
-rw-r--r--include/mbstring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbstring.h b/include/mbstring.h
index cf2d6c5..9545f1a 100644
--- a/include/mbstring.h
+++ b/include/mbstring.h
@@ -16,11 +16,13 @@ struct u8view {
};
#endif
+/* clang-format off */
#define U8_BYTE_1(x) (((x) & 0x80) == 0x00)
#define U8_BYTE_2(x) (((x) & 0xE0) == 0xC0)
#define U8_BYTE_3(x) (((x) & 0xF0) == 0xE0)
#define U8_BYTE_4(x) (((x) & 0xF8) == 0xF0)
#define U8_BYTE_C(x) (((x) & 0xC0) == 0x80)
+/* clang-format on */
static const rune U8_1B_MAX = 0x00007FL;
static const rune U8_2B_MAX = 0x0007FFL;