summaryrefslogtreecommitdiffhomepage
path: root/src/cregex.c
AgeCommit message (Collapse)Author
2023-08-17Renamed "internal" csview member .str => .buf, as it is not null terminated ↵Tyge Lovset
like crawstr .str member.
2023-08-15Fixed c_i2u() didn't trigger -Wsign-conversion warning.tylov
2023-08-14Reverted csubstr => csview. Sorry about that!Tyge Løvset
Added crawstr to become the null-terminated string view.
2023-08-13API CHANGES:tylov
Changed csview: becomes a null-terminated string view. Added csubview: a null-terminated string view/span, like previous csview. Note that csview works like a csubview, so not much compability issues should arise. However, some functions have changed from _sv suffix to _ss.
2023-08-13Removed csview_null - use csview_init().tylov
2023-07-10Renamed input enum flags for cregex functions.tylov
2023-06-11Added priv/linkage.h and renamed priv/template2.h => priv/template_undef.h.Tyge Løvset
Make all examples c++ compatible, except those using cspan.h Removed: crange_obj() Renamed: crange_make() => crange_init() Renamed: cspan_make() => cspan_init() Renamed: cstr_NULL => cstr_null Renamed: csview_NULL => csview_null
2023-06-09Rename i_extern template flag to i_import. i_extern still available, but ↵Tyge Løvset
deprecated.
2023-06-09Fixed issues with linking params i_implement, i_extern.Tyge Løvset
2023-05-20Fixed two minor things.Tyge Lovset
2023-05-20Bug fix (NB!): cregex_captures() now returns num of cap. group *excluding* ↵Tyge Lovset
the full match group (0).
2023-05-18Huge update: cqueue and cdeq completely rewritten. cvec and cdeq API ↵Tyge Lovset
harmonized. Docs update/improved.
2023-05-01Remove warnings when using -Wextra.Tyge Løvset
2023-02-06Fixed error in cregex_test.c itself.Tyge Løvset
2023-02-05Try to fix cregex leak.Tyge Løvset
2023-02-05- Updated cspan.h to allow for compiling some functions as shared symbols.Tyge Løvset
- Fixed issue #45 warning -Wunused-parameter in clist.h - Fixed some issues with the singleheader.py generator.
2023-02-01Massive update from unsigned sizes and indices to signed.Tyge Lovset
2023-01-31Converted all containers but the maps and examples to signed sizes and indices.Tyge Løvset
2023-01-31Reverted c_MALLOC, c_CALLOC, c_REALLOC and c_FREE to lowercase.Tyge Løvset
2023-01-26Updated API for cregex.Tyge Løvset
2023-01-12Fixed Devanaga => Devanagari Hindi text name.Tyge Løvset
2023-01-11cregex/utf8: Added some language char classes.Tyge Lovset
2023-01-04Bump to 2023Tyge Løvset
2023-01-03Minor improvement to word boundaries \b \B.Tyge Løvset
2023-01-02Finish regex updates.Tyge Løvset
2023-01-02Fixes prev. commit.Tyge Løvset
2023-01-02Added selected unicode character classes.Tyge Lovset
2022-12-31Internally renamed ccommon.h macros to uppercase. Lowercase macros are still ↵Tyge Løvset
supported via include/stc/priv/lowcase.h.
2022-12-29Restructuring of some headers into include/algo folder. Some API changes ↵Tyge Løvset
*_replace*() functions have been renamed, and a few minor API changes.
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-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-18Internal renamings only.Tyge Løvset
2022-10-14Update sso_bench.cpp benchmark, and some internal improvements.Tyge Løvset