summaryrefslogtreecommitdiffhomepage
path: root/include/stc/utf8.h
AgeCommit message (Collapse)Author
2023-08-14Reverted csubstr => csview. Sorry about that!Tyge Løvset
Added crawstr to become the null-terminated string view.
2023-08-13API CHANGES:tylov
Changed csview: becomes a null-terminated string view. Added csubview: a null-terminated string view/span, like previous csview. Note that csview works like a csubview, so not much compability issues should arise. However, some functions have changed from _sv suffix to _ss.
2023-06-13Added cco_closue(Ret, Closure) to define coroutine closure.Tyge Løvset
Added back cco_await_on(child) calls.
2023-06-11Added priv/linkage.h and renamed priv/template2.h => priv/template_undef.h.Tyge Løvset
Make all examples c++ compatible, except those using cspan.h Removed: crange_obj() Renamed: crange_make() => crange_init() Renamed: cspan_make() => cspan_init() Renamed: cstr_NULL => cstr_null Renamed: csview_NULL => csview_null
2023-06-11More internal structuringTyge Løvset
2023-06-09Rename i_extern template flag to i_import. i_extern still available, but ↵Tyge Løvset
deprecated.
2023-06-09Fixed issues with linking params i_implement, i_extern.Tyge Løvset
2023-02-13Removed support for uppercase version of c_sv() (i.e c_SV => c_sv).Tyge Løvset
Renamed c_ARGSV => c_SV. Old name is still working.
2023-02-05Fixed linking parameters i_extern.Tyge Løvset
2023-02-01Massive update from unsigned sizes and indices to signed.Tyge Lovset
2023-01-31Converted all containers but the maps and examples to signed sizes and indices.Tyge Løvset
2023-01-24Added python single-header generator + fixed include mistake.Tyge Løvset
2023-01-12docs and utf8 updates.Tyge Løvset
2023-01-12Fixed Devanaga => Devanagari Hindi text name.Tyge Løvset
2023-01-11cregex/utf8: Added some language char classes.Tyge Lovset
2023-01-03Fix compilation error in utf8code.c due to predeclaring a static array with ↵Tyge Løvset
unspecified size.
2023-01-02Finish regex updates.Tyge Løvset
2023-01-02Fixes prev. commit.Tyge Løvset
2023-01-02Added selected unicode character classes.Tyge Lovset
2022-12-20Minor docs changes.Tyge Løvset
2022-12-20Renamed c_sv() => c_SV() and reverted cstr_new() => cstr_lit(). Old names ↵Tyge Løvset
are deprecated (not removed).
2022-12-04Support for linking dependant UTF8 and cstr functions and/or cregex.c by ↵Tyge Løvset
defining i_extern before including <stc/cstr.h> and <stc/cregex.h>. I.e. #define i_extern #define i_implement // define cstr functions as shared symbols (static if not defined). #include <stc/cregex.h> // include cstr.h, utf8code.c, cregex.c, unless already included.
2022-11-22Fixes of -Wconversion warnings (not examples).Tyge Løvset
2022-09-22Updated _advance() iter methods. Some have signed offsets.Tyge Løvset
utf8_peek()/utf8_peek_off() added/changed.
2022-08-09Internal stuff.Tyge Løvset
2022-08-08Final fix on icmp().Tyge Løvset
2022-08-08Changed cstr_icmp_n() to cstr_icmp_sv(), and FIXED it.Tyge Løvset
2022-08-07Internal: moved some functions in csview/cstr to implementation sections.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-06-11Improving cregex, and minors, e.g. cstr_foldcase=>cstr_casefold.Tyge Lovset
2022-06-10removed cstr_length() and csview_length() -> use .._size().Tyge Løvset
2022-06-10utf8 fixes and improvements. Some api changes.Tyge Løvset
2022-06-09Added utf8_peek()Tyge Løvset
2022-06-08Fixed utf8 tables again. Separate casefold, toupper, tolower functions.Tyge Løvset
2022-06-01Converted all files with DOS line endings to LINUX.Tyge 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-311) REMOVED files/modules not relevant: makes lib more focused:Tyge Løvset
- threads.h/threads.c (external lib) - coptions.h - will be kept as a gist. - more will follow, (examples, some benchmarks, etc). 2) Replaced UTF8 decoder with Björn Höhrmann's DFA decoder.
2022-05-31cleanup of icmp impl.Tyge Lovset
2022-05-31Generalized utf8_icmp_n() and added cstr_icmp(), csview_icmp().Tyge Lovset
2022-05-30Added utf8_icmp_n() case insensitive comparison.Tyge Lovset
2022-05-30Updated benchmarks and renamed utf8utils.c to utf8code.cTyge Løvset
2022-05-30Large refactoring on strings / utf8 and some file structure.Tyge Lovset
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-27Some changes in utf8.hTyge Løvset
2022-05-27Small optimizes in utf8.hTyge Løvset
2022-05-24Reverted back to some older codeTyge Løvset
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-04-28_i_implement moved to user-level template parameter as i_implement. Removed ↵Tyge Løvset
i_opt flag c_implement. Removed OLD include/alt/clist.h
2022-04-17alt/cstr.h (sso string): added cstr_replace_all(). Header examples updated ↵Tyge Løvset
to use cstr_str(&s) instead of s.str. Some docs updates.
2022-03-24Misc. small internal API renaming/refactoring and additions.Tyge Løvset