Text Editing Library
A simple string with utilities for editing, specifically designed to work with non-ASCII strings.
Features
- Provides a
TextLine
struct that represents an editable text line. - Supports efficient insertion, removal, and manipulation of characters and ranges.
- Handles non-ASCII characters correctly, taking into account their multi-byte nature.
- Offers convenient methods for moving the text cursor forward, backward, and skipping over words.
- Implements the
Display
trait for easy conversion to a string.
Documentation
API documentation can be found at docs.rs/text-editing.
Example
use TextLine;
let mut line = from_string;
line.insert;
assert_eq!;
let removed_char = line.remove;
assert_eq!;
assert_eq!;