summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2022-12-23Experimental uppercase macros.Tyge Løvset
2022-12-20Renamed c_sv() => c_SV() and reverted cstr_new() => cstr_lit(). Old names ↵Tyge Løvset
are deprecated (not removed).
2022-12-19Renames:Tyge Løvset
cstr_null => cstr_NULL csview_null => csview_NULL cstr_npos => c_NPOS csview_npos => c_NPOS c_ARGsv(sv) => c_ARGSV(sv) c_init(x) => c_INIT(x)
2022-12-19Some cleanup in cregex.Tyge Løvset
2022-12-16Added support for \p{..}, \w, \s, etc. within char classes.Tyge Løvset
2022-12-16Fixed another cregex regression and simplified.Tyge Løvset
2022-12-16Fixed regression in cregex handing of escaped \t, \n, etc.Tyge Løvset
2022-12-16Rewrote cregex _nextc() to use for-loop instead of goto.Tyge Løvset
2022-12-15Minor change.Tyge Løvset
2022-12-15More refactoring of cregex _nextc() and _lex().Tyge Løvset
2022-12-15More cregex refactoring, no functional change.Tyge Løvset
2022-12-14cregex optimizations.Tyge Løvset
2022-12-14cregex: renamed enums to all uppercase and prefixed CREG_Tyge Løvset
2022-12-11Merge branch 'master' of github.com:tylov/STCTyge Løvset
2022-12-11FIXED broken cregex caseless matching. The fixed code has also better ↵Tyge Løvset
performance.
2022-12-08Changed/simplified cregex_replace*() API.Tyge Løvset
2022-12-04Support for linking dependant UTF8 and cstr functions and/or cregex.c by ↵Tyge Løvset
defining i_extern before including <stc/cstr.h> and <stc/cregex.h>. I.e. #define i_extern #define i_implement // define cstr functions as shared symbols (static if not defined). #include <stc/cregex.h> // include cstr.h, utf8code.c, cregex.c, unless already included.
2022-11-22Fixes of -Wconversion warnings (not examples).Tyge Løvset
2022-11-21Updated shootout_hashmap.cpp, and fixed some unsigned warnings.Tyge Løvset
2022-11-06Added c_autodrop() macro, and removed c_autobuf() which wasn't that useful ↵Tyge Løvset
(and was undocumented).
2022-11-01Various updates.Tyge Løvset
2022-10-21Swapped two last params in cregex_replace_pattern() and cregex_replace_sv() ↵Tyge Løvset
to always have flags at last (sorry for inconveniences). Fixed a small bug in cregex_find_sv(), and added cre_default flag for readability.
2022-10-19Reverted back to c_forrrange from c_forloop. Still available but deprecated.Tyge Løvset
2022-10-18Internal renamings only.Tyge Løvset
2022-10-14Update sso_bench.cpp benchmark, and some internal improvements.Tyge Løvset
2022-09-26DEPRECATED: c_forrange(): replaced with c_forloop(). This uses 'long long' ↵Tyge Løvset
as iter type, i.e. "%lld" printf format. crange_from() renamed to crange_make(). More docs.
2022-09-22Updated _advance() iter methods. Some have signed offsets.Tyge Løvset
utf8_peek()/utf8_peek_off() added/changed.
2022-09-22Renamed c_forfiltered() back to c_forfilter(), and iter member .count => .takenTyge Løvset
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-13Experimental: Renamed c_autovar => c_with, c_autoscope => c_scope, ↵Tyge Løvset
c_autodefer => c_defer. May or may not be reverted before V4.0 release.
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-09Internal stuff.Tyge Løvset
2022-08-09Two more fixes on csview comparison.Tyge Løvset
2022-08-08Final fix on icmp().Tyge Løvset
2022-08-08Changed cstr_icmp_n() to cstr_icmp_sv(), and FIXED it.Tyge Løvset
2022-08-08Changed *cstr_tolower*/*cstr_toupper* arg from `const cstr*` to `csview`.Tyge Løvset
2022-08-07Internal: moved some functions in csview/cstr to implementation sections.Tyge Løvset
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-20Cleanups, and renamed cregex_replace_fn() => cregex_replace_ex().Tyge Lovset