princjef / regex-rust

A regular expression library implemented natively in Rust using Pike VM
MIT License
2 stars 0 forks source link

Adding single byte escape \C #11

Closed rbk2kb closed 10 years ago

rbk2kb commented 10 years ago

Adds the escape \C which matches a single byte of any encoding. In order to implement this, the VM in exec had to be rewritten to go through the input byte by byte with each thread saving its own sp rather than character by character with a central sp. Might be worthwhile to benchmark this before merging to make sure I didn't just break the performance.

rbk2kb commented 10 years ago

Closes this issue #11