ron2/util/
mod.rs

1// Grapheme-aware span substring utilities.
2//
3// This module provides methods for extracting substrings from source text using
4// Position and Span (line/column based), handling Unicode grapheme clusters correctly.
5//
6// This is feature-gated because:
7// 1. It requires the `unicode-segmentation` dependency
8// 2. Most use cases can use `Span::slice()` with byte offsets directly
9// 3. Grapheme iteration is more expensive than byte slicing
10//
11// Enable with: `features = ["internal-span-substring-test"]`
12#[cfg(feature = "internal-span-substring-test")]
13pub mod span_substring;