summaryrefslogtreecommitdiffhomepage
path: root/src/cregex.c
AgeCommit message (Collapse)Author
2022-09-22Updated _advance() iter methods. Some have signed offsets.Tyge Løvset
utf8_peek()/utf8_peek_off() added/changed.
2022-09-16Maintenance update.Tyge Løvset
2022-09-11Changed cregex API:Tyge Løvset
1) Renamed: cregex_find_pt() -> cregex_find_pattern() cregex_replace_pe() -> cregex_replace_pattern() cregex_replace_ex() -> cregex_replace_sv() 2) Removed: cregex_replace_pt() 3) Moved cregex* (or pattern) to be first parameter.
2022-08-12Renamed cdeq/cvec *_range() functions again (revert). Call alloc macros in ↵Tyge Løvset
cregex.
2022-08-09Small API change for V4.0:Tyge Løvset
Renamed cregex_find_p() => cregex_find_pt() // pattern Renamed cregex_replace_p() => cregex_replace_pt() // pattern
2022-08-01start dev on v4, mainly improving APITyge Løvset
2022-07-30Added support for more than 9 capture group replacements, e.g. "$12;". Added ↵Tyge Løvset
an inline function cregex_find_sv().
2022-07-28VERSION 3.8 RC. Added cregex with "final" API + docs. README.md updated with ↵Tyge Løvset
links to cregex, coption. crandom.h: fixed "stc64_with_seq doesn't use seq argument #31" thanks to funny-falcon. Removed deprecated funcs. Added tags for v3.6 and v3.7.
2022-07-23Fixed a few small issues with cregex.c Reverted cregex_match() to ↵Tyge Løvset
cregex_find(). Renamed cre_* flags.
2022-07-22Switched from "\\" as replacement group prefix to '$'. cregex_replace() ↵Tyge Løvset
changed: removed the last two args.
2022-07-22FINAL cregex update for now: optimize/change callback mfun API. Also, ↵Tyge Løvset
cstr_printf() cannot take self as print argument.
2022-07-22Last minor API changes for cregex. Added descriptions in header. Updated RE ↵Tyge Løvset
examples.
2022-07-22Changed / improved cregex API again (as promised). Possible final API.Tyge Lovset
2022-07-21cregex API change: Added cregex_match_ex() and cregex_match() with string ↵Tyge Løvset
pattern input instead of a cregex*, similar to cregex_replace*().
2022-07-21Moved cregex_replace*() implementation to src/cregex.cTyge Løvset
2022-07-20Added cregex_replace*() [implemented in utf8code.c]. Added ↵Tyge Lovset
examples/regex_replace.c. Docs not ready, i.e. API not fixed. Some other refactoring and minor fixes/improvements. cstr_assign_sv() now returns char* like the other cstr_assign*().
2022-06-20Small addition and warning removed in cregex.c. Else refactoring/cleanup.Tyge Løvset
2022-06-12Renamed cregex_find89 => cregex_match()Tyge Løvset
2022-06-11Improving cregex, and minors, e.g. cstr_foldcase=>cstr_casefold.Tyge Lovset
2022-06-07Added back ASCII char classes, like [[:alpha:]].Tyge Løvset
2022-06-01Converted all files with DOS line endings to LINUX.Tyge Løvset
2022-05-31Fixed compiler errors of missing updates.Tyge Løvset
2022-05-30Done refactoring:Tyge Løvset
- Non-templated types (cstr, csview, cbits, crandom) have no longer default static linking. Now i_header is defined, i.e. files are as headers only. ==> Define `i_implement` before file inclusion. Still possible to do static linkage by defining `i_static` before inclusion or global STC_STATIC. - Templated containers still have static linkage by default. - Renamed csview_substr(), csview_slice() to csview_substr_ex(), csview_slice_ex(). Added simpler inlined csview_substr(), csview_slice().
2022-05-30Large refactoring on strings / utf8 and some file structure.Tyge Lovset
2022-03-24Misc. small internal API renaming/refactoring and additions.Tyge Løvset
2022-02-18Fixed \x{...} and \Q...\E modes.Tyge Løvset
2022-02-18Some improvements and cleanup: CRegex, CMap.Tyge Løvset
2022-02-16Refactoring. Added size type param to forward_cmap/csmap . Reverted ↵Tyge Løvset
c_autovar macros. Added utf8_encode (not used yet).
2022-02-14cregex minor fixes.Tyge Lovset
2022-02-14Big update on cregex.Tyge Løvset
2022-02-08Small fix.Tyge Løvset
2022-02-08Some more regex improvements.Tyge Løvset
2022-02-08Fix and move POSIX classes to allow to be outside of char class. (non-standard).Tyge Løvset
2022-02-08Make ready for supporting inverse char classes.Tyge Løvset
2022-02-08More cregex improvements. Support for both (?i) and (?-i). Smaller case ↵Tyge Løvset
folding table size.
2022-02-06Misc improvements.Tyge Løvset
2022-02-05Switched to heavily modified version of Rob Pike's plan9 regexp9. -> now ↵Tyge Løvset
renamed to cregex, with new API.