summaryrefslogtreecommitdiffhomepage
path: root/stc/cstr.h
AgeCommit message (Collapse)Author
2020-11-22Fixed cstr_find_n(). Renamed cstr_NPOS to cstr_npos.Tyge Løvset
2020-11-16Small update of the new cstr methods.Tyge Løvset
2020-11-16Added cstr_contains(), cstr_begins_with(), cstr_ends_with(), and changed ↵Tyge Løvset
cstr_find*() to take a cstr_t value instead of pointer, because it returns an int position only, not iter reference.
2020-11-10Refactored cstr_fmt().Tyge Løvset
2020-11-07Last fix on getdelim().Tyge Løvset
2020-11-07Another fix of cstr_getdelim()Tyge Løvset
2020-11-07Fix bug in cstr_reserve, discovered in cstr_getdelim().Tyge Løvset
2020-11-03Small API change c_withbuffer() and doc fix.Tyge Løvset
2020-11-02Changed (half)-internal *_INIT to *__init macros. Minor reformatting.Tyge Løvset
2020-10-20Added cfmt.h and some smaller fixes.Tyge Løvset
2020-10-17Internal renaming of STC_IMP to STC_DEF. Removed cstr_INIT. Use cstr_init().Tyge Løvset
2020-10-16Fixed compiling as lib (-DSTC_HEADER) and added c_withbuffer() and ↵Tyge Løvset
c_break_with macros.
2020-10-14Renamed cstr() constructor to cstr_from(), cstr_from() to cstr_from_fmt().Tyge Løvset
2020-10-13Fixed cstr_getdelim()Tyge Løvset
2020-10-10Added cstr_getdelim() / getline() functions.Tyge Løvset
2020-10-08Renamed cdefs.h to ccommon.hTyge Løvset
2020-09-24Changed iter.get to iter.val member. Internal, but used external. Will not ↵Tyge Løvset
change again.
2020-09-20Possible to redefine STC memory allocator globally.Tyge Løvset
2020-09-20Cleanup and renamed c_del_() to c_del() again.Tyge Løvset
2020-09-18Changed <container>_ini macro constant to <container>_INIT, and ↵Tyge Løvset
<container>_destroy() to <container>_del.
2020-09-15New API Change.Tyge Løvset
2020-09-08Updated clist iter.Tyge Løvset
2020-09-08changed c_foreach() macro -> Removed cnt_range() methods, and simplified iters.tylo
2020-09-05Added range iterators.Tyge Løvset
2020-09-03Changed constant <container>_init to <container>_ini to avoid conflict with ↵Tyge Løvset
<container>_init() method. Reverted name cprique back to cpqueue.
2020-09-03Changed itval() taking iter instead of iter address as arg.Tyge Løvset
2020-09-03Added itval() to all containers to allow for generalized access to iterator ↵Tyge Løvset
values.
2020-09-02Updated pqueue_top() API. Added c_destroy() also working for cstr, cbitmap.Tyge Løvset
2020-08-30Renamed cstr_destr to cstr_mdestroy(). Added a few more examples.Tyge Løvset
2020-08-30Added cstr_destr(...) for destroying multiple cstr_t at once.Tyge Løvset
2020-08-30Fixed an important bug in cstr.h append().Tyge Løvset
2020-08-30Minors added.Tyge Løvset
2020-08-26Added valueFromRaw template parameter to cvec and clist. Affects generic ↵tylo
c_push(). Removed warnings cmap and cstr.
2020-08-18Removed two easy-to-misuse cstr functions, and fixed missing ↵tylo
null-termination in pop_back(); Changed API for cstr_find(), and made a general c_strnstr() function.
2020-08-11Fixed two bugs: 1) hash16 not to be used for string. 2) cstr_from(): va_copy ↵tylo
missed
2020-08-08Added cstr_iter_t + begin/next, and cstr_front.Tyge Løvset
2020-08-08Minor tweaks.Tyge Løvset
2020-08-07Optimized malloc sizes.Tyge Løvset
2020-08-07Removed alloca usage.tylo
2020-08-04Simplified cstr insert/replace.Tyge Løvset
2020-08-04Fixed cstr find and replace to follow std:: standard args.Tyge Løvset
2020-08-04Revert c_nullptr to NULL in lib code. Minor cleanup.Tyge Løvset
2020-08-03Improved API.Tyge Løvset
2020-08-03clist refactor.Tyge Løvset
2020-08-02Add c_nullptr to cdefs.hTyge Løvset
2020-08-01Fixed namings in cstr.h and restruct. in cmap: added cmap_try_emplace() macro.Tyge Løvset
2020-07-29Renamed crandom.h to crand.h + Changed API. Renamed coptget.h to copt.h.Tyge Løvset
2020-07-28Lowercase namingTyge Løvset
2020-07-27API CHANGES: Made types all lower case. E.g.: CMap_<tag> => cmap_<tag>, ↵Tyge Løvset
CList_<tag> => clist_<tag>. Note: CStr => cstr_t, CBitset => cbitset_t
2020-07-27Renamed cmap_xx_at() to cmap_xx_insert(). Does insert like c++ ↵Tyge Løvset
std::map::insert(), rust HashMap::insert() Updated cstr_hashRaw() to djb2() algorithm.