The end of s[from..n) without its trailing whitespace. */
| 39 | |
| 40 | /* The end of s[from..n) without its trailing whitespace. */ |
| 41 | static size_t ti_trim_end(const char *s, size_t from, size_t n) { |
| 42 | while (n > from && ti_space(s[n - 1])) { |
| 43 | n--; |
| 44 | } |
| 45 | return n; |
| 46 | } |
| 47 | |
| 48 | static size_t ti_word_end(const char *s, size_t i, size_t n) { |
| 49 | while (i < n && ti_word(s[i])) { |
no test coverage detected