commit | a66ad1fdcb8095ca44fa767a51fa2973a4473d98 | [log] [tgz] |
---|---|---|
author | Lasse R.H. Nielsen <lrn@google.com> | Tue Oct 22 16:34:11 2019 +0200 |
committer | GitHub <noreply@github.com> | Tue Oct 22 16:34:11 2019 +0200 |
tree | 7339983864498f1d09883fcb004a017f2f781dd5 | |
parent | 732c3c5b81eb84ba99bfcc9eb014da1488753cfa [diff] |
Change replace to keep its position in the new result. Add a few members. (#8) Add move-operations to character range for selecting everything before or after the current range. Add getters for the characters or strings before and after the current range (and characters of the current range, to complement `current` which returns a string). Change replace operations to return a range on the replaced result which contains the original range post-modification.
NOTE: This package is considered experimental, and breaking API changes are to be expected.
Characters
are strings viewed as sequences of user-perceived characters, also know as Unicode (extended) grapheme clusters.
The Characters
class allows access to the individual characters of a string, and a way to navigate back and forth between them using a CharacterRange
.