summaryrefslogtreecommitdiffhomepage
path: root/docs/csview_api.md
AgeCommit message (Collapse)Author
2022-05-29Renamed cstr_replace_first() => cstr_replace_one().Tyge Lovset
cstr.h now #include "utf8.h". Added iterator (utf8) to cstr and other utf8 functions postfixed by _u8(). Also renamed some utf8 functions in csview to better names.
2022-05-20Removed cstr_from_replace_all_sv(), Added cstr_replace_first(). Renamed ↵Tyge Løvset
argument names.
2022-05-13Changed csview c_PRIsv macro. Now must be prefixed with "%", to match with ↵Tyge Løvset
PRIxYYY macros from inttypes.h. E.g. printf("%40" c_PRIsv "\n", c_ARGsv(sv)); to specify 40 character right aligned output of sv. Check your usage.
2022-05-13Added cstr_assign_s(), and changed return type to char* for cstr_assign*() ↵Tyge Løvset
and cstr_append*(), i.e. the pointer to the (possible new) string buffer.
2022-04-25Removed size argument to `i_hash` template parameter and `c_default_hash`. ↵Tyge Løvset
This was a "design error", and is not worth keeping for backward compability. Please update your code where you use i_hash template parameter (simply remove second argument).
2022-04-24Updated docs to use cstr_str(&s) instead of s.strTyge Løvset
2022-04-24Created VERSION 3.5. See News section in docs for changes.Tyge Løvset
2022-03-26Yet another missing line.Tyge Løvset
2022-03-26Final fix of csview docs.Tyge Løvset
2022-03-26Updated csview API docs.Tyge Løvset
2022-01-30Replaced utf8_decode() and friends code.Tyge Løvset
2022-01-14Final utf8 api, and docs.Tyge Løvset
2022-01-14Renamed *_v() methods to *_sv(). Note: this breaks API, hopefully not too ↵Tyge Løvset
intrusive. The change was needed to be consistent in using 'sv' as a shorthand for "string view" everywhere, and is easier to understand than _v().
2022-01-09Removed strings.h.Tyge Løvset
2022-01-08Moved utf8 from cregex.h to separate file. Splitted csview.h into another ↵Tyge Løvset
file strings.h.
2021-12-29Fixed and simplified csview tokensizer call.Tyge Løvset
2021-12-19Global rename of `_equ\b` => `_eq`. In practice `i_equ` must renamed to ↵Tyge Løvset
`i_eq` in user code if used.
2021-12-19First commit for Version 3 of STC. Main changes are consistent rename of ↵Tyge Løvset
'_del' to '_drop' and '_compare' to '_cmp'. Also i_key_ref (earlier i_key_sptr) and i_val_ref replaced by more general i_key_bind/i_val_bind.
2021-12-14Added and renamed some examples.Tyge Løvset
2021-12-13Renamed constructor *cstr_lit()* to `cstr_new(lit)`.Tyge Løvset
Renamed *cstr_assign_fmt()* to `cstr_printf()`. Renamed cbits_from_str() to cbits_from().
2021-10-30Fixed docs alignments.Tyge Løvset
2021-10-29Swapped .._equals() and _equalto() functions for consistencyTyge Løvset
2021-10-29Renamed ..._value_t -> ..._value, etc. Deprecated, still works for cvec, ↵Tyge Løvset
cdeq, cmap, csmap, cslist
2021-09-20Renamed macros: breaking changes for Version 2.0!Tyge Lovset
c_forvar => c_autovar c_forscope => c_autoscope c_forauto => c_auto Removed: c_fordefer(x); use c_forscope(0, x) instead. Added: c_exitauto; // continue
2021-09-11Fixed docs for newstyle.Tyge Løvset
2021-08-28Breaking change cstr and csview renames in order to improve consistency:Tyge Løvset
cstr_equals() => cstr_equalto() cstr_compare_ref() => cstr_compare() cstr_equals_ref() => cstr_equals() cstr_hash_ref() => cstr_hash()
2021-08-25BREAKING CHANGE: c_forvar_initdel() macro renamed to c_forauto().tylo
Updated doc and improved csmap_erase.c example.
2021-06-18Simplified and removed unneeded stuff from csview.hTyge Løvset
2021-06-15Fixed c_strnstrn() and cstr_find_n() bugs. when find string is empty.Tyge Løvset
Added cstr_from_replace_all() and cstr_replace_all_v() to do replace-all from csview inputs.
2021-06-11Improve naming of c_sv() and c_lit() in csview.h: Rename c_sv(cstr) => ↵Tyge Løvset
cstr_sv(cstr), and c_lit(string literal) => c_sv(string literal). Hopefully not too much used yet, as they are fairly new.
2021-06-10Renamed cstr/csview begin_with() to starts_with() : following c++ std namings.Tyge Løvset
2021-06-05Renamed predefined using_cmap_sv*() using_csmap_sv*() macros to ↵Tyge Løvset
using_cmap_strv*(), ...
2021-05-28Merge branch 'master' of https://github.com/tylov/STCTyge Løvset
2021-05-28Changed the csview front() and back() API. Added csview_npos constant.Tyge Løvset
2021-05-27Update csview_api.md examples.Tyge Løvset
2021-05-27Made substr() and slice() only returning csview. Added Both cstr and csview ↵Tyge Løvset
input argument variants. Changed def of cstr_npos.
2021-05-26Removed cstr_trim, csview_trim, Changed cstr_substr to mutable. Allow ↵Tyge Løvset
negative pos on cstr_substr, csview_substr. Added cstr_slice, csview_slice.
2021-05-25Replaced csview cstr_trimmed(cstr s, left, right) with: cstr* ↵Tyge Løvset
cstr_trim(cstr* self, left, right);
2021-05-24Added splitstr.c example. Renamed macro csview_ARG() to csview_arg(): ↵Tyge Løvset
special for printing csviews with "%.*s" format.
2021-05-24Split c_fordefer() into c_forvar() and c_fordefer() macros.Tyge Løvset
2021-05-24Renamed c_with => c_fordefer, and removed c_withvar. Macros were too ↵Tyge Løvset
deceiving and hid the fact that it was for-loops. Now it is more explicit.
2021-05-23Added csmap_find.c example.Tyge Løvset
2021-05-21Added substr() and cleanup of trimmed() API.Tyge Løvset
2021-05-21Update csview_api.mdTyge Løvset
2021-05-21Update csview_api.mdTyge Løvset
2021-05-21Updated string split / tokenizer example in csview docs.Tyge Løvset
2021-05-20Merge branch 'master' of https://github.com/tylo-work/C99Containers into masterTyge Løvset
2021-05-20Updated links to header files in docs.Tyge Løvset
2021-05-20Updated csview tokenizer docs.Tyge Løvset
2021-05-20Added csview tokenizer (split string).Tyge Løvset