| 176 | } |
| 177 | // A CJK punctuation token forms a word of its own (attached to nothing), |
| 178 | // so a subsequent run never absorbs it and boundaries can land on it. |
| 179 | if (is_cjk_punctuation_delimiter(spans[span_pos].text)) { |
| 180 | words.push_back({ |
| 181 | span_pos, |
| 182 | span_pos + 1, |
| 183 | spans[span_pos].start, |
| 184 | spans[span_pos].end, |
| 185 | is_sentence_break(spans[span_pos].text), |
| 186 | is_clause_break(spans[span_pos].text), |
| 187 | }); |
| 188 | span_pos += 1; |
| 189 | continue; |
| 190 | } |
| 191 | const size_t word_start = span_pos; |
no test coverage detected