summaryrefslogtreecommitdiffhomepage
path: root/src/utf8code.c
AgeCommit message (Collapse)Author
2023-08-17Renamed "internal" csview member .str => .buf, as it is not null terminated ↵Tyge Lovset
like crawstr .str member.
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-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-09Fixed issues with linking params i_implement, i_extern.Tyge Løvset
2023-03-27Some missing files.Tyge Løvset
2023-02-05- Updated cspan.h to allow for compiling some functions as shared symbols.Tyge Løvset
- Fixed issue #45 warning -Wunused-parameter in clist.h - Fixed some issues with the singleheader.py generator.
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-25Updates on cspan ++.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-02Replaced c_STATIC_ASSERT() which works for C99 (also multiple on same line).Tyge Løvset
Some regex updates.
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-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-09-22Renamed c_forfiltered() back to c_forfilter(), and iter member .count => .takenTyge Løvset
2022-08-09Internal stuff.Tyge Løvset
2022-08-09Two more fixes on csview comparison.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-08Changed *cstr_tolower*/*cstr_toupper* arg from `const cstr*` to `csview`.Tyge Løvset
2022-07-21Moved cregex_replace*() implementation to src/cregex.cTyge Løvset
2022-07-20Cleanups, and renamed cregex_replace_fn() => cregex_replace_ex().Tyge Lovset
2022-07-20Added cregex_replace*() [implemented in utf8code.c]. Added ↵Tyge Lovset
examples/regex_replace.c. Docs not ready, i.e. API not fixed. Some other refactoring and minor fixes/improvements. cstr_assign_sv() now returns char* like the other cstr_assign*().
2022-06-11Improving cregex, and minors, e.g. cstr_foldcase=>cstr_casefold.Tyge Lovset
2022-06-10Fixed mistake.Tyge Løvset
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-10Some changes to utf8 cstr methods.Tyge Løvset
2022-06-09Added utf8_peek()Tyge Løvset
2022-06-09Removed adding circled letters and roman numerics from toupper/tolowerTyge Løvset
2022-06-08Added cstr case folding methods.Tyge Løvset
2022-06-08Fixed utf8 tables again. Separate casefold, toupper, tolower functions.Tyge Løvset
2022-06-07Some improvements in utf8tabs.pyTyge Løvset
2022-06-07Bugfixed / Updated utf8tabs.* and utf8code.cTyge Lovset
2022-05-31Added simple utf8 case insensitive wrappers: cstr_iequals(), ↵Tyge Løvset
cstr_istarts_with(), and cstr_iends_with().
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