You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use regress::Regex;fnmain(){let string:Vec<_> = "football".encode_utf16().collect();let res = regress::Regex::with_flags("foo","i").unwrap();let matches:Vec<_> = res.find_from_ucs2(&string,0).collect();}
thread 'main' panicked at /home/jedel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/regress-0.10.2/src/cursor.rs:65:5:
Not implemented for non-byte input
The text was updated successfully, but these errors were encountered:
Probably related to #100.
The fix for that issue introduced
Input::CODE_UNITS_ARE_BYTES
, which skips some optimizations as invalid for UTF-16 and UCS2, like:regress/src/cursor.rs
Lines 59 to 78 in ffb373e
However, some parts of the classical backtrack engine still use byte matching even for UTF-16:
regress/src/classicalbacktrack.rs
Lines 570 to 578 in ffb373e
Reproducer
The text was updated successfully, but these errors were encountered: