|
Serene Runtime 1.0.0
C runtime for the Serene programming language
|
#include <stddef.h>#include <stdlib.h>#include <stdint.h>Go to the source code of this file.
Macros | |
| #define | UTF8_ATTRIBUTE(a) |
| #define | utf8_null 0 |
| #define | utf8_constexpr14 utf8_weak |
| #define | utf8_constexpr14_impl |
Typedefs | |
| typedef int32_t | utf8_int32_t |
| typedef char | utf8_int8_t |
Functions | |
| utf8_constexpr14 utf8_nonnull utf8_pure int | utf8casecmp (const utf8_int8_t *src1, const utf8_int8_t *src2) |
| utf8_nonnull utf8_weak utf8_int8_t * | utf8cat (utf8_int8_t *utf8_restrict dst, const utf8_int8_t *utf8_restrict src) |
| utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t * | utf8chr (const utf8_int8_t *src, utf8_int32_t chr) |
| utf8_constexpr14 utf8_nonnull utf8_pure int | utf8cmp (const utf8_int8_t *src1, const utf8_int8_t *src2) |
| utf8_nonnull utf8_weak utf8_int8_t * | utf8cpy (utf8_int8_t *utf8_restrict dst, const utf8_int8_t *utf8_restrict src) |
| utf8_constexpr14 utf8_nonnull utf8_pure size_t | utf8cspn (const utf8_int8_t *src, const utf8_int8_t *reject) |
| utf8_weak utf8_int8_t * | utf8dup (const utf8_int8_t *src) |
| utf8_constexpr14 utf8_nonnull utf8_pure size_t | utf8len (const utf8_int8_t *str) |
| utf8_constexpr14 utf8_nonnull utf8_pure size_t | utf8nlen (const utf8_int8_t *str, size_t n) |
| utf8_constexpr14 utf8_nonnull utf8_pure int | utf8ncasecmp (const utf8_int8_t *src1, const utf8_int8_t *src2, size_t n) |
| utf8_nonnull utf8_weak utf8_int8_t * | utf8ncat (utf8_int8_t *utf8_restrict dst, const utf8_int8_t *utf8_restrict src, size_t n) |
| utf8_constexpr14 utf8_nonnull utf8_pure int | utf8ncmp (const utf8_int8_t *src1, const utf8_int8_t *src2, size_t n) |
| utf8_nonnull utf8_weak utf8_int8_t * | utf8ncpy (utf8_int8_t *utf8_restrict dst, const utf8_int8_t *utf8_restrict src, size_t n) |
| utf8_weak utf8_int8_t * | utf8ndup (const utf8_int8_t *src, size_t n) |
| utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t * | utf8pbrk (const utf8_int8_t *str, const utf8_int8_t *accept) |
| utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t * | utf8rchr (const utf8_int8_t *src, int chr) |
| utf8_constexpr14 utf8_nonnull utf8_pure size_t | utf8size (const utf8_int8_t *str) |
| utf8_constexpr14 utf8_nonnull utf8_pure size_t | utf8size_lazy (const utf8_int8_t *str) |
| utf8_constexpr14 utf8_nonnull utf8_pure size_t | utf8nsize_lazy (const utf8_int8_t *str, size_t n) |
| utf8_constexpr14 utf8_nonnull utf8_pure size_t | utf8spn (const utf8_int8_t *src, const utf8_int8_t *accept) |
| utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t * | utf8str (const utf8_int8_t *haystack, const utf8_int8_t *needle) |
| utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t * | utf8casestr (const utf8_int8_t *haystack, const utf8_int8_t *needle) |
| utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t * | utf8valid (const utf8_int8_t *str) |
| utf8_constexpr14 utf8_nonnull utf8_pure utf8_int8_t * | utf8nvalid (const utf8_int8_t *str, size_t n) |
| utf8_nonnull utf8_weak int | utf8makevalid (utf8_int8_t *str, const utf8_int32_t replacement) |
| utf8_constexpr14 utf8_nonnull utf8_int8_t * | utf8codepoint (const utf8_int8_t *utf8_restrict str, utf8_int32_t *utf8_restrict out_codepoint) |
| utf8_constexpr14 utf8_nonnull size_t | utf8codepointcalcsize (const utf8_int8_t *str) |
| utf8_constexpr14 size_t | utf8codepointsize (utf8_int32_t chr) |
| utf8_nonnull utf8_weak utf8_int8_t * | utf8catcodepoint (utf8_int8_t *str, utf8_int32_t chr, size_t n) |
| utf8_constexpr14 int | utf8islower (utf8_int32_t chr) |
| utf8_constexpr14 int | utf8isupper (utf8_int32_t chr) |
| utf8_nonnull utf8_weak void | utf8lwr (utf8_int8_t *utf8_restrict str) |
| utf8_nonnull utf8_weak void | utf8upr (utf8_int8_t *utf8_restrict str) |
| utf8_constexpr14 utf8_int32_t | utf8lwrcodepoint (utf8_int32_t cp) |
| utf8_constexpr14 utf8_int32_t | utf8uprcodepoint (utf8_int32_t cp) |
| utf8_constexpr14 utf8_nonnull utf8_int8_t * | utf8rcodepoint (const utf8_int8_t *utf8_restrict str, utf8_int32_t *utf8_restrict out_codepoint) |
| utf8_weak utf8_int8_t * | utf8dup_ex (const utf8_int8_t *src, utf8_int8_t *(*alloc_func_ptr)(utf8_int8_t *, size_t), utf8_int8_t *user_data) |
| utf8_weak utf8_int8_t * | utf8ndup_ex (const utf8_int8_t *src, size_t n, utf8_int8_t *(*alloc_func_ptr)(utf8_int8_t *, size_t), utf8_int8_t *user_data) |
| utf8_constexpr14_impl int | utf8coll (const utf8_int8_t *src1, const utf8_int8_t *src2) |
| utf8_constexpr14_impl utf8_int8_t * | utf8fry (const utf8_int8_t *str) |
| typedef int32_t utf8_int32_t |
| typedef char utf8_int8_t |
| utf8_constexpr14_impl int utf8casecmp | ( | const utf8_int8_t * | src1, |
| const utf8_int8_t * | src2 ) |
Definition at line 319 of file utf8.h.
| utf8_constexpr14_impl utf8_int8_t * utf8casestr | ( | const utf8_int8_t * | haystack, |
| const utf8_int8_t * | needle ) |
Definition at line 994 of file utf8.h.
| utf8_int8_t * utf8cat | ( | utf8_int8_t *utf8_restrict | dst, |
| const utf8_int8_t *utf8_restrict | src ) |
Definition at line 349 of file utf8.h.
| utf8_int8_t * utf8catcodepoint | ( | utf8_int8_t * | str, |
| utf8_int32_t | chr, | ||
| size_t | n ) |
Definition at line 1262 of file utf8.h.
| utf8_constexpr14_impl utf8_int8_t * utf8chr | ( | const utf8_int8_t * | src, |
| utf8_int32_t | chr ) |
Definition at line 368 of file utf8.h.
| utf8_constexpr14_impl int utf8cmp | ( | const utf8_int8_t * | src1, |
| const utf8_int8_t * | src2 ) |
| utf8_constexpr14_impl utf8_int8_t * utf8codepoint | ( | const utf8_int8_t *utf8_restrict | str, |
| utf8_int32_t *utf8_restrict | out_codepoint ) |
Definition at line 1209 of file utf8.h.
| utf8_constexpr14_impl size_t utf8codepointcalcsize | ( | const utf8_int8_t * | str | ) |
Definition at line 1234 of file utf8.h.
| utf8_constexpr14_impl size_t utf8codepointsize | ( | utf8_int32_t | chr | ) |
| utf8_constexpr14_impl int utf8coll | ( | const utf8_int8_t * | src1, |
| const utf8_int8_t * | src2 ) |
| utf8_int8_t * utf8cpy | ( | utf8_int8_t *utf8_restrict | dst, |
| const utf8_int8_t *utf8_restrict | src ) |
Definition at line 429 of file utf8.h.
| utf8_constexpr14_impl size_t utf8cspn | ( | const utf8_int8_t * | src, |
| const utf8_int8_t * | reject ) |
Definition at line 445 of file utf8.h.
| utf8_int8_t * utf8dup | ( | const utf8_int8_t * | src | ) |
Definition at line 496 of file utf8.h.
| utf8_int8_t * utf8dup_ex | ( | const utf8_int8_t * | src, |
| utf8_int8_t *(* | alloc_func_ptr )(utf8_int8_t *, size_t), | ||
| utf8_int8_t * | user_data ) |
Definition at line 500 of file utf8.h.
| utf8_constexpr14_impl utf8_int8_t * utf8fry | ( | const utf8_int8_t * | str | ) |
| utf8_constexpr14_impl int utf8islower | ( | utf8_int32_t | chr | ) |
| utf8_constexpr14_impl int utf8isupper | ( | utf8_int32_t | chr | ) |
| utf8_constexpr14_impl size_t utf8len | ( | const utf8_int8_t * | str | ) |
Definition at line 539 of file utf8.h.
| void utf8lwr | ( | utf8_int8_t *utf8_restrict | str | ) |
Definition at line 1314 of file utf8.h.
| utf8_constexpr14_impl utf8_int32_t utf8lwrcodepoint | ( | utf8_int32_t | cp | ) |
Definition at line 1348 of file utf8.h.
| int utf8makevalid | ( | utf8_int8_t * | str, |
| const utf8_int32_t | replacement ) |
Definition at line 1143 of file utf8.h.
| utf8_constexpr14_impl int utf8ncasecmp | ( | const utf8_int8_t * | src1, |
| const utf8_int8_t * | src2, | ||
| size_t | n ) |
Definition at line 573 of file utf8.h.
| utf8_int8_t * utf8ncat | ( | utf8_int8_t *utf8_restrict | dst, |
| const utf8_int8_t *utf8_restrict | src, | ||
| size_t | n ) |
Definition at line 647 of file utf8.h.
| utf8_constexpr14_impl int utf8ncmp | ( | const utf8_int8_t * | src1, |
| const utf8_int8_t * | src2, | ||
| size_t | n ) |
| utf8_int8_t * utf8ncpy | ( | utf8_int8_t *utf8_restrict | dst, |
| const utf8_int8_t *utf8_restrict | src, | ||
| size_t | n ) |
Definition at line 685 of file utf8.h.
| utf8_int8_t * utf8ndup | ( | const utf8_int8_t * | src, |
| size_t | n ) |
Definition at line 722 of file utf8.h.
| utf8_int8_t * utf8ndup_ex | ( | const utf8_int8_t * | src, |
| size_t | n, | ||
| utf8_int8_t *(* | alloc_func_ptr )(utf8_int8_t *, size_t), | ||
| utf8_int8_t * | user_data ) |
Definition at line 726 of file utf8.h.
| utf8_constexpr14_impl size_t utf8nlen | ( | const utf8_int8_t * | str, |
| size_t | n ) |
Definition at line 543 of file utf8.h.
| utf8_constexpr14_impl size_t utf8nsize_lazy | ( | const utf8_int8_t * | str, |
| size_t | n ) |
| utf8_constexpr14_impl utf8_int8_t * utf8nvalid | ( | const utf8_int8_t * | str, |
| size_t | n ) |
Definition at line 1044 of file utf8.h.
| utf8_constexpr14_impl utf8_int8_t * utf8pbrk | ( | const utf8_int8_t * | str, |
| const utf8_int8_t * | accept ) |
Definition at line 841 of file utf8.h.
| utf8_constexpr14_impl utf8_int8_t * utf8rchr | ( | const utf8_int8_t * | src, |
| int | chr ) |
Definition at line 769 of file utf8.h.
| utf8_constexpr14_impl utf8_int8_t * utf8rcodepoint | ( | const utf8_int8_t *utf8_restrict | str, |
| utf8_int32_t *utf8_restrict | out_codepoint ) |
Definition at line 1675 of file utf8.h.
| utf8_constexpr14_impl size_t utf8size | ( | const utf8_int8_t * | str | ) |
Definition at line 889 of file utf8.h.
| utf8_constexpr14_impl size_t utf8size_lazy | ( | const utf8_int8_t * | str | ) |
Definition at line 893 of file utf8.h.
| utf8_constexpr14_impl size_t utf8spn | ( | const utf8_int8_t * | src, |
| const utf8_int8_t * | accept ) |
Definition at line 905 of file utf8.h.
| utf8_constexpr14_impl utf8_int8_t * utf8str | ( | const utf8_int8_t * | haystack, |
| const utf8_int8_t * | needle ) |
Definition at line 959 of file utf8.h.
| void utf8upr | ( | utf8_int8_t *utf8_restrict | str | ) |
Definition at line 1331 of file utf8.h.
| utf8_constexpr14_impl utf8_int32_t utf8uprcodepoint | ( | utf8_int32_t | cp | ) |
Definition at line 1511 of file utf8.h.
| utf8_constexpr14_impl utf8_int8_t * utf8valid | ( | const utf8_int8_t * | str | ) |
Definition at line 1040 of file utf8.h.