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.
6 files changed
tree: 7339983864498f1d09883fcb004a017f2f781dd5
  1. .vscode/
  2. benchmark/
  3. lib/
  4. test/
  5. third_party/
  6. .gitignore
  7. .travis.yml
  8. AUTHORS
  9. CHANGELOG.md
  10. LICENSE
  11. pubspec.yaml
  12. README.md
README.md

Build Status

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.