| 1510 | } |
| 1511 | |
| 1512 | static void toml_trim(const char *data, size_t *start, size_t *end) { |
| 1513 | while (*start < *end && (data[*start] == ' ' || data[*start] == '\t')) { |
| 1514 | ++*start; |
| 1515 | } |
| 1516 | while (*end > *start && (data[*end - 1] == ' ' || data[*end - 1] == '\t')) { |
| 1517 | --*end; |
| 1518 | } |
| 1519 | } |
| 1520 | |
| 1521 | static int toml_parse_header(const char *data, const toml_line_t *line, const char *target_name, |
| 1522 | toml_header_t *header) { |
no outgoing calls
no test coverage detected