diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-04-09 18:49:27 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-04-09 18:49:27 +0200 |
commit | fc0dae9c819a4ee64f4610db1f005dfb841030c5 (patch) | |
tree | caa7e5a358b1a2a8614bcd16be112546994d8d26 | |
parent | bf212e80fb0f1d83902de520e9cee098187383f7 (diff) |
Move unicode/gbrk.h to unicode/string.h
-rw-r--r-- | README | 7 | ||||
-rw-r--r-- | include/unicode/string.h (renamed from include/unicode/gbrk.h) | 6 | ||||
-rw-r--r-- | lib/unicode/string/u8glen.c (renamed from lib/unicode/gbrk/u8glen.c) | 2 | ||||
-rw-r--r-- | lib/unicode/string/u8gnext.c (renamed from lib/unicode/gbrk/u8gnext.c) | 2 |
4 files changed, 6 insertions, 11 deletions
@@ -18,13 +18,8 @@ The headers as of now are: • mbstring.h — multibyte-strings • optparse.h — option parsing functions • rune.h — inttypes.h but for runes - • unicode/gbrk.h — grapheme breaking • unicode/prop.h — unicode character properties - -The headers planned for inclusion are: - • unicode/norm.h — text normalization - • unicode/sbrk.h — sentence breaking - • unicode/wbrk.h — word breaking + • unicode/string.h — unicode string functions DISCLAIMER: diff --git a/include/unicode/gbrk.h b/include/unicode/string.h index 7f21371..c2a99c1 100644 --- a/include/unicode/gbrk.h +++ b/include/unicode/string.h @@ -1,5 +1,5 @@ -#ifndef MLIB_UNICODE_GBRK_H -#define MLIB_UNICODE_GBRK_H +#ifndef MLIB_UNICODE_STRING_H +#define MLIB_UNICODE_STRING_H #include <stddef.h> @@ -9,4 +9,4 @@ size_t u8glen(const char8_t *, size_t); size_t u8gnext(struct u8view *, const char8_t **, size_t *); -#endif /* !MLIB_UNICODE_GBRK_H */ +#endif /* !MLIB_UNICODE_STRING_H */ diff --git a/lib/unicode/gbrk/u8glen.c b/lib/unicode/string/u8glen.c index 763a834..394a62d 100644 --- a/lib/unicode/gbrk/u8glen.c +++ b/lib/unicode/string/u8glen.c @@ -1,4 +1,4 @@ -#include "unicode/gbrk.h" +#include "unicode/string.h" size_t u8glen(const char8_t *s, size_t n) diff --git a/lib/unicode/gbrk/u8gnext.c b/lib/unicode/string/u8gnext.c index f3f7afc..9824abb 100644 --- a/lib/unicode/gbrk/u8gnext.c +++ b/lib/unicode/string/u8gnext.c @@ -3,7 +3,7 @@ #include "__bsearch.h" #include "mbstring.h" #include "unicode/__gbrk.h" -#include "unicode/gbrk.h" +#include "unicode/string.h" struct gbrk_state { enum { |