summaryrefslogtreecommitdiff
path: root/include/term/unicode/grapheme.h
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-15 12:38:58 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-15 12:38:58 +0300
commit22345caf457e8d9a4bdb56b696cc5f3694812276 (patch)
tree801bd4f17569fa875e81bc2297a46ecf5176cbc7 /include/term/unicode/grapheme.h
parent6ee9eb37d8e616a972fb29b3fbdbc33991aa844f (diff)
parent212f1cc9109aa0deb9e5d990bb2dba2b167618fb (diff)
Merge branch 'wt/namespace' into api-hardening
Diffstat (limited to 'include/term/unicode/grapheme.h')
-rw-r--r--include/term/unicode/grapheme.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/term/unicode/grapheme.h b/include/term/unicode/grapheme.h
index 5573949..0946bb6 100644
--- a/include/term/unicode/grapheme.h
+++ b/include/term/unicode/grapheme.h
@@ -5,20 +5,20 @@
#include <stddef.h>
#include <stdint.h>
-#define GRAPHEME_MAX_LEN 20
-#define GRAPHEME_HANDLE_BASE 0x7F000000u
+#define TERM_GRAPHEME_MAX_LEN 20
+#define TERM_GRAPHEME_HANDLE_BASE 0x7F000000u
-static inline bool grapheme_is_handle(uint32_t c)
+static inline bool term_grapheme_is_handle(uint32_t c)
{
- return c >= GRAPHEME_HANDLE_BASE;
+ return c >= TERM_GRAPHEME_HANDLE_BASE;
}
-static inline bool grapheme_regional_indicator(uint32_t cp)
+static inline bool term_grapheme_regional_indicator(uint32_t cp)
{
return cp >= 0x1F1E6 && cp <= 0x1F1FF;
}
-static inline bool grapheme_emoji_modifier(uint32_t cp)
+static inline bool term_grapheme_emoji_modifier(uint32_t cp)
{
return cp >= 0x1F3FB && cp <= 0x1F3FF;
}