2 * This file is part of cparser.
3 * Copyright (C) 2012 Matthias Braun <matze@braunis.de>
10 enum string_encoding_t {
12 STRING_ENCODING_CHAR16,
13 STRING_ENCODING_CHAR32,
17 typedef enum string_encoding_t string_encoding_t;
19 typedef struct string_t {
20 char const *begin; /**< UTF-8 encoded string, the last character is guaranteed to be \0. */
21 size_t size; /**< size of string in bytes (not characters), without terminating \0. */
22 string_encoding_t encoding;
25 size_t get_string_len(string_t const *str);