summaryrefslogtreecommitdiffhomepage
path: root/stc
AgeCommit message (Collapse)Author
2021-05-20Moved stc folder into include folder.Tyge Løvset
2021-05-20Final API changes for csview: Added csview_trimmed*(), removed a few.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-19More cleanups and refinements.Tyge Løvset
2021-05-18Added the new c_defer(), c_with(), c_withvar() macros into the examples.Tyge Løvset
2021-05-18Final improvements before push.Tyge Løvset
2021-05-18Added new file: csview: String ViewTyge 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-15API change: Renamed c_init() to c_var() to better describe it declares and ↵Tyge Løvset
initializes a container variable. Will create a version 2.0 RC release soon.
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-07Reverted c_trivial_*() to c_default_*().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-05-06Added erase() for cvec, cdeq and clist for consistency.Tyge Løvset
2021-05-05Changed some lesser used API in cvec and cdeq to be more consistent. ↵Tyge Løvset
Improved cdeq.
2021-05-05Rewrote cdeq to conform with cvec.Tyge Løvset
2021-05-04Added get() method to cvec, cdeq, clist, cmap, csmap. Restructured ↵Tyge Løvset
emplace/insert api on cvec, will be done on cdeq as well. General internal coding improvements.
2021-04-30Merge pull request #3 from liigo/patch-1Tyge Løvset
rename internal `_c_VA_ARG_SIZE` to `_c_ARG_COUNT`
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-29Added new constructors to carray.h. Made cmap and csmap keys immutable. ↵Tyge Løvset
Added get() method to cmap and csmap.
2021-04-28rename internal `_c_VA_ARG_SIZE` to `_c_ARG_COUNT`Liigo Zhuang
The "size" in `sizeof` means "number of byte", or "byte count". "ARG_COUNT" is more readable. Take account of `cvec_x_size`s, size means "number of elements in the array", "count" also makes sense.
2021-04-27Renamed carray struct member at to data. Improved cdeq_expand_() method.Tyge Løvset
2021-04-27Made clist_X_find_in() arguments consistent with cvec_X_find_in() and ↵Tyge Løvset
cdeq_X_find_in(), i.e. removed self.
2021-04-27Fix on previous commit cdeq: min alloc was too small.Tyge Løvset
2021-04-27Non-critical tweak on cdeq expansion policy.Tyge Løvset
2021-04-26Backported csmap_v1.h. Updated example in csmap.hTyge Løvset
2021-04-26BUGFIX in csmap: Silly bug: assumed cmp function returned -1, 0, 1, but can ↵Tyge Løvset
be any number.
2021-04-26Doc update. Renamed c_new_2() to c_new_n()Tyge Løvset
2021-04-25Another small cleanup after the cdeq fix. Saves memory.Tyge Løvset
2021-04-25Another small cleanup after the cdeq fix.Tyge Løvset
2021-04-24Minor cleanup after cdeq_X_expand_() bugfix.Tyge Løvset
2021-04-24Bugfix and optimization in cdeq_X_expand_()Tyge Løvset
2021-04-23API: Reverted to C_X_erase_at() instead of C_X_erase_it(). Sorry for the ↵Tyge Løvset
mess. Internal reorder of STC_API methods.
2021-04-23Internal restructure of methods declarations. Backported others/clist_v1.h.Tyge Løvset
2021-04-22clist_X_splice*() now returns updated input iter. Added list_splice.c example.Tyge Løvset
2021-04-17Changed c_emplace_items(&cont, ctype, {...}) macro with c_emplace(ctype, ↵Tyge Løvset
cont, {...}): consistent with c_init(ctype, cont, {...}).
2021-04-16Replaced cmap/cset min_load_factor with shrink_to_fit() method.Tyge Løvset
2021-04-16Corrections in cmap.Tyge Løvset
2021-04-16Fixed bug: cmap_erase_it() return iterator. Fixed mem-leak in ↵Tyge Løvset
cdeq_X_insert() and cvec_X_insert(). Added iterator invalidation documentation.
2021-04-15NB! Changed API: *_erase_at(container, it) --> *_erase_it(container, it). ↵Tyge Løvset
cvec and cdeq insert_at() swapped with insert(). Docs update.
2021-04-13Reimplemented csmap_X_erase_range().Tyge Løvset
2021-04-12Improved docs.Tyge Løvset
2021-04-12Fix another issue with local var in csmap_X_erase_at(), and a constness ↵Tyge Løvset
issue in csmap_erase_range(). Reduced iter size.
2021-04-12Fixed bug in csmap_X_erase_at() when erasing last element in map.Tyge Løvset