1#ifndef PRISM_INTERNAL_STRINGY_H
2#define PRISM_INTERNAL_STRINGY_H
11static const uint8_t empty_source[] =
"";
17#define PM_STRING_EMPTY ((pm_string_t) { .source = empty_source, .length = 0 })
20#define PM_STRING_LITERAL(name_) ((pm_string_t) { .source = (const uint8_t *) ("" name_), .length = sizeof(name_) - 1 })
25void pm_string_shared_init(
pm_string_t *
string,
const uint8_t *start,
const uint8_t *end);
30bool pm_string_ascii_only_p(
const pm_string_t *
string);
C99 shim for <stdbool.h>.
A view of a sequence of bytes owned by someone else.
A view of a sequence of bytes.