//! Internal helper utilities for the Ropey-backed buffer.
//!
//! These helpers are kept in a dedicated module to keep higher-level buffer code
//! focused on the public API.
use ;
/// Returns whether a character is considered part of a "word".
///
/// This is intentionally ASCII-focused: `[A-Za-z0-9_]`.
pub
/// Returns the smaller of two positions after clamping them into the buffer.
///
/// Clamping ensures comparisons behave sensibly even if callers pass out-of-range
/// positions.
pub
/// Returns the larger of two positions after clamping them into the buffer.
///
/// Clamping ensures comparisons behave sensibly even if callers pass out-of-range
/// positions.
pub