1 Commits
Author SHA1 Message Date
3198405e98 common: add partial regex support (#12808)
* move string_find_partial_stop & string_ends_with to common

* add common_regex (supports partial matches)

Co-authored-by: Georgi Gerganov <[email protected]>

* Update common/regex-partial.cpp

Co-authored-by: Georgi Gerganov <[email protected]>

* Update common/regex-partial.cpp

Co-authored-by: Georgi Gerganov <[email protected]>

* Update common/regex-partial.h

Co-authored-by: Georgi Gerganov <[email protected]>

* partial regex: add missing iterator end checks

* string utils: use string_views

* direct throw to avoid ggml.h include

* regex-partial: replace missed ggml_asserts

---------

Co-authored-by: ochafik <[email protected]>
Co-authored-by: Georgi Gerganov <[email protected]>
2025-05-14 19:50:57 +01:00