diff options
| author | Mattias Andrée <m@maandree.se> | 2026-01-24 15:02:15 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-01-24 15:02:15 +0100 |
| commit | eb66f3a037ac18ab51636d160523ba99f050b57a (patch) | |
| tree | 64fe4f3c1d951cce7fd68d38a2c1af01fed21f9a /lib-common.h | |
| parent | Add replacement (diff) | |
| download | charconv-eb66f3a037ac18ab51636d160523ba99f050b57a.tar.gz charconv-eb66f3a037ac18ab51636d160523ba99f050b57a.tar.bz2 charconv-eb66f3a037ac18ab51636d160523ba99f050b57a.tar.xz | |
Make UTF-8 decoding function available to the entire library
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'lib-common.h')
| -rw-r--r-- | lib-common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib-common.h b/lib-common.h new file mode 100644 index 0000000..899418c --- /dev/null +++ b/lib-common.h @@ -0,0 +1,6 @@ +/* See LICENSE file for copyright and license details. */ +#include "libcharconv.h" +#include <strings.h> + + +size_t libcharconv_decode_utf8_(const char *s, size_t slen, uint_least32_t *cp); |
