summaryrefslogtreecommitdiffhomepage
path: root/stc/cstr.h
AgeCommit message (Collapse)Author
2021-05-20Moved stc folder into include folder.Tyge Løvset
2021-05-20Changed new API: c_sv(literal) => c_sv(cstr), cstr_new(literal) => ↵Tyge Løvset
cstr_lit(literal), csview_new() => csview_lit(). Added c_lit(literal) alias to csview_lit(literal).
2021-05-18Added the new c_defer(), c_with(), c_withvar() macros into the examples.Tyge Løvset
2021-05-18Internal updates in cstr. Minor API change in carray carrayNX_with_value() ↵Tyge Løvset
=> carrayNX_with_values(). Docs/examples improvements.
2021-05-15Renamed newly introduced internal c_cast() to c_make() for c++ ↵Tyge Løvset
compatability. Added usage.
2021-05-13Updated cstr: Added cstr_new(literal), Renamed cstr_assign_s() to ↵Tyge Løvset
cstr_copy(). Fixed and added minors in ccommon.h
2021-05-11Removed cstr_append_fmt(): use cstr_assign_fmt(&s, "%s%s", s.str, "appended ↵Tyge Løvset
string") for that.
2021-05-10added multimap example.Tyge Løvset
2021-05-10Allow cstr len and n arguments to be larger than the string size it refers ↵Tyge Løvset
to, like in STL.
2021-05-10cstr: Added cstr_replace_all(), cstr_append_fmt(). Renamed cstr_fmt() to ↵Tyge Løvset
cstr_assign_fmt(). Note that getdelim(), replace_all() and others may be placed in a separate using_cstr_utils() macro later.
2021-05-07Forgot to remove.Tyge Løvset
2021-05-07Rename to use c_rawstr_*() instead of c_rstr_*().Tyge Løvset
2021-05-07Cleanup, internal renames. API: c_strhash() -> c_string_hash(), added adv() ↵Tyge Løvset
and ind() to cvec and cdeq.
2021-04-30Internal only: Removed cstr_t and cbits_t: only use cstr and cbits. Finished ↵Tyge Løvset
backporting of csmap_v1.h
2021-04-23Internal restructure of methods declarations. Backported others/clist_v1.h.Tyge Løvset
2021-04-08Big change set to simplify the internal templating implementations. Shorter ↵Tyge Løvset
and more readable code. Removed C_X_itval() as they are no longer needed. API is to use *it.ref
2021-03-13Fixed some doc errors in csmap and cmap. Added some inline funcs to cstr. ↵Tyge Løvset
Added read.c example.
2021-03-06Cleanups and internal renames. Backported csmap_v1.h in examples to match ↵Tyge Løvset
csmap.h
2021-03-02Fixed: renamed reserved symbols/names.Tyge Løvset
2021-02-25Some cstr doc minors.Tyge Løvset
2021-02-23Updated cstr doc.Tyge Løvset
2021-02-20Internal renaming improvements.Tyge Løvset
2021-02-18Minor cleanupTyge Løvset
2021-02-17Fix a dependency issue.Tyge Løvset
2021-02-16Fixed hash API.Tyge Løvset
2021-02-16Tweaked.Tyge Løvset
2021-02-16Fix/simplify c_memccpy()Tyge Løvset
2021-02-15Added fast posix memccpy() - c_memccpy().Tyge Løvset
2021-02-14Refinements.Tyge Løvset
2021-02-13Replaced default hash for cmap.Tyge Løvset
2021-02-05Rewrote to use c_container_of() instead of size_t offset.Tyge Løvset
2021-02-05Upgraded cstr impl.Tyge Løvset
2021-01-30Internal changes: removed use of cmap_inits and set_inits. Use cmap_x_init() ↵Tyge Løvset
and cset_X_init(). Minor changes in cvec, csmap, cstr, crandom.
2021-01-19String docs updated.Tyge Løvset
2021-01-17Removed cset.h - alias of cmap.h. Updated year copyright.Tyge Løvset
2021-01-12Added iter_data() instead of changing user_data() to preserve backward comp. ↵Tyge Løvset
and keep global user_data().
2021-01-09Added cmap benchmark and external picobenchmark.hppTyge Løvset
Updated cstr.h
2021-01-02Major upgrade: Added 'clone' template parameters to containers. Reorganized ↵Tyge Løvset
arg positions. Renamed csptr_X_share() to csptr_X_clone()
2020-12-17API change: Reverted back to original name used for .val in iterators to .refTyge Løvset
2020-12-08Updated api for with clone()Tyge Løvset
2020-12-08Added clone() to stack, cpqueue and queue.Tyge Løvset
Renamed erase_at() to erase_n() in cvec and cstr to improve consistency.
2020-12-08- Added clone() to cvec and clistTyge Løvset
- Renamed cstr_erase(s, pos, n) to cstr_erase_at(s, pos, n) - Changed cvec_erase_at(v, pos) to cvec_erase_at(v, pos, n).
2020-12-02Improved docs for using_*() macros.Tyge Løvset
2020-12-01Added numbers before functions in cstr docs.Tyge Løvset
2020-12-01Fixed docs, some minor changes in cstr.h and cmap.h as well.Tyge Løvset
2020-11-27Docs and minor update of cstr.hTyge Løvset
2020-11-27Added and renamed case insensitive search functions.Tyge Løvset
2020-11-24Forgot #include <ctype.h> required by tolower().Tyge Løvset
2020-11-24Added case insensitive compare: c_strcasecmp(), cstr_casecmp(), ↵Tyge Løvset
cstr_equals_caseins().
2020-11-24Fixed return value from cstr_find_n(), and added cstr_length() alias to ↵Tyge Løvset
cstr_size().