summaryrefslogtreecommitdiffhomepage
path: root/docs/cstr_api.md
AgeCommit message (Collapse)Author
2022-06-01Merge branch 'master' of github.com:tylov/STCTyge Løvset
2022-06-01Update docs regarding i_implement for cstr, cview, cbits, ...Tyge Løvset
2022-06-01Update cstr_api.mdTyge Løvset
2022-06-01Added some docs on utf8. API may change for cstr: to take const cstr* args ↵Tyge Løvset
instead of cstr values.
2022-05-30Updated cstr utf8 docs.Tyge Løvset
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-23Renamed cstr_find_n(self, search, pos, nmax) => cstr_find_from(self, pos, ↵Tyge Løvset
search), and cstr_replace_first(self, search, repl) => cstr_replace_first(self, pos, search, repl). // returns pos after replaced str.
2022-05-20Removed cstr_from_replace_all_sv(), Added cstr_replace_first(). Renamed ↵Tyge Løvset
argument names.
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-05-10Renamed (newish) functions expand_uninitialized to expand_uninit. + some ↵Tyge Lovset
minor changes.
2022-05-06Made cstr_buffer() func. public, and docs for cstr_sv() - convert to csview.Tyge Lovset
2022-04-27Added cstr_expand_uninitialized().Tyge Løvset
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-04Updated printf formatting to portable code. This was also to use ↵Tyge Løvset
http://winlibs.com gcc+clang with ucrt runtime-libs without warnings.
2022-01-14Removed cstr iter; => csview iter is now utf8 iter. See utf8.h example.Tyge Løvset
2022-01-05Added docs on checkauto util program. Renamed (mainly internal) c_rawstr ↵Tyge Løvset
type to crawstr.
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-14cstr_printf() now returns int like printf(). Minor updates in sharedptr.c ↵Tyge Løvset
example.
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-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-19Fixed errors caused by gcc -std=c99 -pedantic.Tyge Løvset
2021-09-13Removed most of the case-insensitive cstr methods, as they won't work with ↵Tyge Løvset
utf-8.
2021-08-29Replaced cstr_toraw (deprecated) with cstr_str used to convert from cstr to ↵Tyge Lovset
const char*.
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-19Maintenance update. Added stc32_rand() to crandom.h, doc fixes and cqueue.h ↵Tyge Løvset
updated to have its own size counter.
2021-07-05Some small updates.Tyge Løvset
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-10Renamed cstr/csview begin_with() to starts_with() : following c++ std namings.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-25Fixed Issue #6.Tyge Løvset
2021-05-21Added substr() and cleanup of trimmed() API.Tyge Løvset
2021-05-20Updated links to header files in docs.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-18Internal updates in cstr. Minor API change in carray carrayNX_with_value() ↵Tyge Løvset
=> carrayNX_with_values(). Docs/examples improvements.
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-10Some c_rawstr_*() functions were not updated in documentation.Tyge Løvset
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-07Cleanup, internal renames. API: c_strhash() -> c_string_hash(), added adv() ↵Tyge Løvset
and ind() to cvec and cdeq.
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-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-24Cleanup in documentation.Tyge Løvset
2021-03-19Added clear() to cpque, cstack, cqueue, cbits, even though not in STL. ↵Tyge Løvset
Code/docs formatting.