| 357 | /////////////////////////////////////////// |
| 358 | |
| 359 | bool next_separator(const char* start, int32_t start_len, const char **out_next, int32_t *out_next_length, char sep) { |
| 360 | const char* end = start + start_len; |
| 361 | if (*out_next == nullptr) { |
| 362 | *out_next = start; |
| 363 | *out_next_length = 0; |
| 364 | } else { |
| 365 | *out_next = *out_next + *out_next_length + 1; |
| 366 | *out_next_length = 0; |
| 367 | } |
| 368 | const char* curr = *out_next; |
| 369 | while (curr < end && *curr != sep) curr++; |
| 370 | *out_next_length = (int32_t)(curr - *out_next); |
| 371 | return *out_next < end; |
| 372 | } |
| 373 | |
| 374 | /////////////////////////////////////////// |
| 375 |
no outgoing calls
no test coverage detected