| 3281 | } |
| 3282 | } |
| 3283 | static int toml_codex_take(const char *data, size_t len, size_t *position, const char *expected) { |
| 3284 | toml_codex_skip_space(data, len, position); |
| 3285 | size_t expected_len = strlen(expected); |
| 3286 | if (expected_len > len - *position || memcmp(data + *position, expected, expected_len) != 0) |
| 3287 | return TOML_EDIT_ERR; |
| 3288 | *position += expected_len; |
| 3289 | return TOML_EDIT_OK; |
| 3290 | } |
| 3291 | static int toml_codex_take_string(const char *data, size_t len, size_t *position, |
| 3292 | toml_string_t *value) { |
| 3293 | toml_codex_skip_space(data, len, position); |
no test coverage detected