compile-time-regular-expressions
compile-time-regular-expressions copied to clipboard
Compile Time Regular Expression in C++
Atomic groups much like possessive modifiers assist in preventing excessive backtracking. If I'm not too far off I think this roughly models an atomic group*. How to modify pcre.hpp to...
Implements `(?|(a)|(b))`, which treats`(a)` and `(b)` as the same capture number.
In testing, compiles faster and generates assembly similar to -O3 even with -Os. Treats regexs similar to: `(a|b|c)` as `([abc])`
if you try to compile this code : https://pastebin.pl/view/e830efd6 (source also attached) the Gnu g++ Version 10.2 will run with high CPU load and gets finally killed. Linux Version: Linux...
Optimizes string matching by allowing memcmp like functionality (even on utf8 sequences) comparison: https://compiler-explorer.com/z/Tz3KhG Rough idea is that ordinarily per character we're doing two comparisons, one to check iterators and...
First, thanks for this wonderful library. I am amazed at how fast it can match and isolate groups! I was evaluating using ctre for some datetime parsing, like you have...
In the process of writing this optimization it seems like there may be an opportunity to parallelize select's by processing the first atoms at the same time perhaps with simd....
Using release version 3.3.4 with GCC 10.2.0 under Arch LInux. My testing command is: ```bash # assume extracted source under "src/ctre/" cmake -S src/ctre -B src/ctre/build cmake --build src/ctre/build --config...
Adds a bit of machinery to try to extract a leading string if we're about to search. Things to improve on - better string extraction, currently very simple only looks...
WIP for #142