diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-10-30 01:51:14 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-10-30 01:51:14 +0100 |
commit | 042e43247f396a9000fead59d9bff87bf12806d6 (patch) | |
tree | e902784464cbe9ce3c5114d513b016523e7e4b29 /vendor/librune/include/utf8.h | |
parent | 170b8a92434233241c990c3e9432786de3262bcd (diff) |
Completely revamp the grab source code
Some of the (many) few changes are:
- Multithreading for significantly faster performance
- The -p/--predicate flag
- Byte offsets as the default
- No customizable colors (maybe this will come back later)
- Newer edition of mlib (formerly librune)
Diffstat (limited to 'vendor/librune/include/utf8.h')
-rw-r--r-- | vendor/librune/include/utf8.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/vendor/librune/include/utf8.h b/vendor/librune/include/utf8.h deleted file mode 100644 index f39e1bd..0000000 --- a/vendor/librune/include/utf8.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef RUNE_UTF8_H -#define RUNE_UTF8_H - -#include "internal/qmacros.h" -#define _RUNE_NEEDS_U8VIEW 1 -#include "internal/types.h" /* IWYU pragma: export */ - -#define U8_LEN_MAX (4) - -int u8tor(rune *, const char8_t *); -int u8tor_uc(rune *, const char8_t *); - -int rtou8(char8_t *, rune, size_t); -size_t u8set(char8_t *, rune, size_t); - -char8_t *u8chk(const char8_t *, size_t); -[[unsequenced]] bool u8chkr(rune); - -[[unsequenced]] int u8wdth(rune); - -size_t u8len(const char8_t *, size_t); - -int u8next(rune *, const char8_t **, size_t *); -int u8prev(rune *, const char8_t **, const char8_t *); - -char8_t *u8chr(const char8_t *, rune, size_t); -char8_t *u8rchr(const char8_t *, rune, size_t); - -size_t u8spn(const char8_t *, size_t, const rune *, size_t); -size_t u8bspn(const char8_t *, size_t, const rune *, size_t); -size_t u8cspn(const char8_t *, size_t, const rune *, size_t); -size_t u8cbspn(const char8_t *, size_t, const rune *, size_t); - -#if _RUNE_MACRO_WRAP -# define u8chk(s, n) _RUNE_Q_PTR(u8chk, (s), (s), (n)) -# define u8chr(s, ch, n) _RUNE_Q_PTR(u8chr, (s), (s), (ch), (n)) -# define u8rchr(s, ch, n) _RUNE_Q_PTR(u8rchr, (s), (s), (ch), (n)) -#endif - -#endif /* !RUNE_UTF8_H */ |