From 711fe47a7f651f38e090c9a20ecef11feba6f705 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 19 Jul 2021 19:40:43 -0700 Subject: Overhaul of word boundaries/edges. Now they use \b, which is implemented in C, and the C code understands UTF8 id chars. --- utf8.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utf8.h') diff --git a/utf8.h b/utf8.h index ae2df2a..9c43f13 100644 --- a/utf8.h +++ b/utf8.h @@ -12,6 +12,10 @@ __attribute__((nonnull, pure)) const char *next_char(file_t *f, const char *str); __attribute__((nonnull, pure)) const char *prev_char(file_t *f, const char *str); +__attribute__((nonnull, pure)) +bool isidstart(file_t *f, const char *str); +__attribute__((nonnull, pure)) +bool isidcontinue(file_t *f, const char *str); #endif // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 -- cgit v1.2.3