summaryrefslogtreecommitdiffhomepage
path: root/examples
AgeCommit message (Collapse)Author
2022-09-26Added .count to c_forfilter() algorithm. Updated prime.c example, and added ↵Tyge Løvset
forloops.c example.
2022-09-26Added c_flt_takewhile() filter to c_forfilter() macro.Tyge Løvset
2022-09-26DEPRECATED: c_forrange(): replaced with c_forloop(). This uses 'long long' ↵Tyge Løvset
as iter type, i.e. "%lld" printf format. crange_from() renamed to crange_make(). More docs.
2022-09-25Added: crange number generator type. (similar to c++ std::iota). Fixed ↵Tyge Løvset
c_forfilter again. Cleanups. Docs added.
2022-09-24Removed deprecated c_forarray, c_autovar, c_autoscope, c_autodefer.Tyge Løvset
Finalized and improved loops.
2022-09-23- Finished c_forfilter() functionality.Tyge Løvset
- Added c_forloop(), similar to c_forrange(), but same access to elements as other c_for-loops, i.e. *i.ref (but also i.val works).
2022-09-23Reverted c_forrange() macro with 3 or more args: swapped 1st and 2nd arg again.Tyge Løvset
2022-09-23Renamed c_forloop* macros to more descriptive c_forwhile*.Tyge Løvset
2022-09-23Deprecated c_forarray, c_forarray_p macros - both replaced by c_forlist, and ↵Tyge Løvset
is consistent with other c_for* macros.
2022-09-22Renamed .idx => .index in c_forfilter() macroTyge Løvset
2022-09-22Updated _advance() iter methods. Some have signed offsets.Tyge Løvset
utf8_peek()/utf8_peek_off() added/changed.
2022-09-22Renamed c_forfiltered() back to c_forfilter(), and iter member .count => .takenTyge Løvset
2022-09-21Added cstr_push(), cstr_pop() - push/pop one utf8 char.Tyge Løvset
Renamed c_forpred() to c_forloop() - used by c_forfiltered().
2022-09-21Recent macro renames:Tyge Løvset
c_foreach_token() => c_fortoken() c_foreach_match() => c_formatch() Added: c_forfiltered() c_forpred()
2022-09-16Maintenance update.Tyge Løvset
2022-09-11Changed cregex API:Tyge Løvset
1) Renamed: cregex_find_pt() -> cregex_find_pattern() cregex_replace_pe() -> cregex_replace_pattern() cregex_replace_ex() -> cregex_replace_sv() 2) Removed: cregex_replace_pt() 3) Moved cregex* (or pattern) to be first parameter.
2022-09-10Renamed template parameter i_cap => i_capacityTyge Løvset
2022-09-10Internal renamings to discourage use of private struct fields.Tyge Løvset
2022-09-06- Added c_foreach_token(it, ...) macro in csview.h.Tyge Løvset
- Changed c_foreach_match(it, ...): to access matches, use it.match[j] - splitstr.c now shows usages of both the above.
2022-09-05Added cstr_append_fmt().Tyge Løvset
2022-09-02Change: carc and cbox defaults to pointer comparison when none of i_cmp, ↵Tyge Løvset
i_less or i_eq is specified. This removes annoying requirement.
2022-09-02Removed cstack_X_push_back(), cstack_X_emplace_back(), cstack_X_pop_back().Tyge Løvset
Added a simple c_erase_if(). Removed deprecated c_apply() macro.
2022-08-18Added cstr_u8_erase(). Renamed cstr_erase_n() => cstr_erase().Tyge Lovset
2022-08-18Some API updates cstr, csview with utf8. Added front()/back() to cstack.Tyge Lovset
2022-08-15More iterator fixes. Make sure cvec/cdeq find_in() return end() iterator if ↵Tyge Løvset
item not found. Small cstr API change to u8_replace*.
2022-08-15Improved docs/ex. Fix range bug when container is empty cvec/cdeq.Tyge Lovset
2022-08-13Experimental: Renamed c_autovar => c_with, c_autoscope => c_scope, ↵Tyge Løvset
c_autodefer => c_defer. May or may not be reverted before V4.0 release.
2022-08-12cstr V4: Changed cstr functions to take pointers to self, not values. This ↵Tyge Løvset
is consistent with the rest of the containers. csview will still use values, as it is designed to be passed by value.
2022-08-12More misc changes carc/cbox, cdeq/cvec.Tyge Lovset
2022-08-11find_if, find_in changed.Tyge Lovset
2022-08-11Added cmp, eq, hash to carc/cbox.Tyge Lovset
2022-08-11Fixed issue with cbox / carc. Minor update some examples.Tyge Løvset
2022-08-10Fixed cdeq_begin(). Optimized c_foreach: only use one iter.Tyge Løvset
2022-08-09Experiment with other type of iterator. Does not compile.Tyge Løvset
2022-08-09Small API change for V4.0:Tyge Løvset
Renamed cregex_find_p() => cregex_find_pt() // pattern Renamed cregex_replace_p() => cregex_replace_pt() // pattern
2022-08-08Changed *cstr_tolower*/*cstr_toupper* arg from `const cstr*` to `csview`.Tyge Løvset
2022-08-08Reverted a minor change in template.hTyge Løvset
2022-08-07Refined template.h when specifying i_key_bind (and i_val_bind): i_keyclone ↵Tyge Løvset
becomes defined `c_derived_keyclone` when i_keyfrom is defined, i.e. you don't have to define both, but you can. Improved cmap docs.
2022-08-06c_apply() deprecated: replaced with c_forarray() macro. Updated and improved ↵Tyge Løvset
README.md docs.
2022-08-05Reduce usage of c_apply() macro.Tyge Løvset
2022-08-02Removed mflags parameter in cregex_is_match(input, re).Tyge Løvset
2022-08-02Improved the cregex_iter type and c_foreach_match() macro.Tyge Løvset
2022-08-02Changed c_foreach_match (m, re, input) to take pointer: cregex* re.Tyge Løvset
2022-08-01fixed up last commitTyge Løvset
2022-08-01start dev on v4, mainly improving APITyge Løvset
2022-07-31VERSION 3.9: API change in c_forrange() with >= 3 args. csview updates.Tyge Løvset
2022-07-31csview: csview_token(sv, sep, &start): now start > sv.size on last token. ↵Tyge Løvset
Removed usage of c_ARGsv() macro in examples => printf formatting ".*s". csview fully inlined.
2022-07-28VERSION 3.8 RC. Added cregex with "final" API + docs. README.md updated with ↵Tyge Løvset
links to cregex, coption. crandom.h: fixed "stc64_with_seq doesn't use seq argument #31" thanks to funny-falcon. Removed deprecated funcs. Added tags for v3.6 and v3.7.
2022-07-28Added back coption.h and coption_api.md docs.Tyge Løvset
2022-07-27VERSION 3.8 BETA: Some changes in cstr / csview APIs: replace* / find*, ↵Tyge Løvset
*_u8(). . See README.md