feat: RegExp 五 Symbol 入口 live flag 直读与 lastIndex 替换收尾

This commit is contained in:
2026-09-21 07:02:56 +00:00
parent b1fade6afc
commit b4d281d109
4 changed files with 1146 additions and 277 deletions
@@ -59,14 +59,6 @@ impl<'a> MatchText<'a> {
}
}
/// 臂原生长度(Str 臂字节、Units 臂码元)——`slice` 的端点口径。
pub(crate) fn raw_len(&self) -> usize {
match self {
MatchText::Str(s) => s.len(),
MatchText::Units(u) => u.len(),
}
}
/// 借出单元序列(Str 臂一次性编码为 owned;Units 臂借用/浅拷)。
pub(crate) fn units(&self) -> Cow<'a, [u16]> {
match self {