54 [[nodiscard]] std::vector<Match>
find_all(std::string_view text)
const;
57 [[nodiscard]]
const std::string&
pattern()
const {
return pattern_; }
62 std::unique_ptr<Program> program_;
A compiled pattern, matched leftmost-first with backtracking as Oniguruma (which Hugging Face tokeniz...
Definition unicode_regex.hpp:35
UnicodeRegex(std::string_view pattern)
const std::string & pattern() const
The pattern as given.
Definition unicode_regex.hpp:57
UnicodeRegex(UnicodeRegex &&) noexcept
std::vector< Match > find_all(std::string_view text) const
Every non-overlapping match in valid UTF-8 text, scanning left to right. Empty matches are skipped.
Definition acquisition_functions.hpp:16
A match: a byte range [begin, end) of the subject.
Definition unicode_regex.hpp:44