summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cstr.h
AgeCommit message (Collapse)Author
2023-09-08Merge branch 'stclib:master' into modifiedHEADmodified_Tradam
2023-09-05Swapped two parameters in newly renamed "internal" function stc_strnstrn().Tyge Løvset
2023-09-05Renamed (half)internal functions:Tyge Løvset
cfasthash() => stc_hash() cstrhash() => stc_strhash() cnextpow2() => stc_nextpow2()
2023-09-05Renamed (half) internal function cfasthash() => cbytehash().Tyge Løvset
Fixed missing parameter in call of i_hash().
2023-08-17Simplified access to utf8 character .chr in cstr / csview / crawstr ↵tylov
iterators. Backward compatibility kept, but deprecated.
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-15Reverting some internal variable names.Tyge Lovset
2023-08-14Reverted csubstr => csview. Sorry about that!Tyge Løvset
Added crawstr to become the null-terminated string view.
2023-08-14Finished last commit (cleanup, fixes).tylov
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-06Improved Installation section in README.mdtylov
2023-07-20Added Task-object to coroutines and true stackless execution.tylov
2023-07-10- Fixed meta-programming bug in carc and cbox hash function def (regression).tylov
- Reverted to allow static linking of cstr and csview. Still defaults to shared linking + inlines.
2023-06-29Usage change: comparison is no longer enabled when specifying i_val for ↵Tyge Lovset
cvec, cdeq and clist (like cstack and cqueue). Comparison functions are still required when specifying i_valclass. For fundamental/native types like integers, floats etc., define i_native_cmp along with i_val instead of i_less/i_cmp/i_eq.
2023-06-21Update of cstr_append_uninit().Tyge Løvset
2023-06-13Added cco_closue(Ret, Closure) to define coroutine closure.Tyge Løvset
Added back cco_await_on(child) calls.
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-11More internal structuringTyge Løvset
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-06-08More small adjustments.Tyge Lovset
2023-05-21NB! Made cstr.h header-only by default. Now requires #define i_static, ↵Tyge Lovset
i_implement or i_extern (includes utf8code.c) to implement non-inline functions (or link with libstc).
2023-05-20Fixed two minor things.Tyge Lovset
2023-03-11added a varg param variant of cstr_from_fmtrealtradam
2023-02-16Reverted and removed maps put function. Renamed clist node api functions. ↵Tyge Løvset
Minor fix in template.h
2023-02-13Removed support for uppercase version of c_sv() (i.e c_SV => c_sv).Tyge Løvset
Renamed c_ARGSV => c_SV. Old name is still working.
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-29Some method renaming in cspan: cspan_multidim() ctor => cspan_md(). ↵Tyge Løvset
cspan_atN() => cspan_submdN(). cstr_replace_ex() merged as overload of cstr_replace().
2023-01-27(Reverted) c_COMPOUND() to c_LITERAL().Tyge Løvset
2023-01-19Finish last commit. Most safe function macros are now preferred lowercase, ↵Tyge Løvset
whereas flow control macros (c_FOREACH, ..) are preferred uppercase.
2023-01-04Renamed (half)-internal c_strlen_lit() to crawstr_len().Tyge Lovset
2023-01-04Bump to 2023Tyge Løvset
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 (reverted) cstr_new(lit) => cstr_lit(lit). Old name is deprecated ↵Tyge Løvset
(supported for now).
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-04Fixed BUG in cstr_tocase().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-27Removed dependence to STC_CSTR_V1.Tyge Løvset
2022-11-22Fixes of -Wconversion warnings (not examples).Tyge Løvset
2022-11-05Fixed examples/make.sh. Also some -Wextra warnings in cstr removed.Tyge Løvset
2022-10-28Renamed some semi-internal functions which appeared to be macros by their name.Tyge Løvset
2022-10-28Renamed semi-internal macro (used for c++ compability) c_make => c_init.Tyge Løvset
2022-10-28Changed internal rep. for cstr to support 22 bytes small string instead of ↵Tyge Løvset
23, in order to have 0-initialized strings to be valid empty strings.
2022-09-25Added: crange number generator type. (similar to c++ std::iota). Fixed ↵Tyge Løvset
c_forfilter again. Cleanups. Docs added.