A post-modern development environment.

word index: Optimize word extraction

The prior version used the core movement functions. Those operate on chars, though, so we can get odd splits where a word cuts within a grapheme cluster. Instead we want to iterate forward by grapheme clusters. This also lets us reuses the grapheme cursor, which is much more efficient than the one-shot grapheme-aligning functions that the core movement functions use.


Author Michael Davis Committer Blaž Hrastnik Date Commit Parent d15ae846
+124 -39
2 changed files
+124 -39
2 changed files