aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README7
-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
diff --git a/README b/README
index f878f10..bb62e45 100644
--- a/README
+++ b/README
@@ -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 {