summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
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-20Small addition and warning removed in cregex.c. Else refactoring/cleanup.Tyge Løvset
2022-06-12Renamed cregex_find89 => cregex_match()Tyge Løvset
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-08Fixed char mappings again, and simplified.Tyge Løvset
2022-06-08Added cstr case folding methods.Tyge Løvset
2022-06-08Fixed case mappings (final).Tyge Løvset
2022-06-08Fixed utf8 tables again. Separate casefold, toupper, tolower functions.Tyge Løvset
2022-06-07Added back ASCII char classes, like [[:alpha:]].Tyge Løvset
2022-06-07Some improvements in utf8tabs.pyTyge Løvset
2022-06-07Update/Fix utf8tabs.py/utf8tabs.inc.Tyge Løvset
2022-06-07Bugfixed / Updated utf8tabs.* and utf8code.cTyge Lovset
2022-06-03refactored utf8tabs.py, still has a bug thoughTyge Løvset
2022-06-02Improved namings in utf8tabs.py and removed unicode tablesTyge Løvset
2022-06-01Converted all files with DOS line endings to LINUX.Tyge Løvset
2022-06-01Added src/libstc.c which implements all non-templated functions (e.g. from ↵Tyge Løvset
cstr, csview, cbits, crandom), but also clist.h mergesort. - Linking with this object file eliminates the need to define i_implement in one file for these types (or i_extern for non-templated functions in templated container, currently only clist.h)
2022-05-31Added simple utf8 case insensitive wrappers: cstr_iequals(), ↵Tyge Løvset
cstr_istarts_with(), and cstr_iends_with().
2022-05-31Fixed compiler errors of missing updates.Tyge Løvset
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-30Done refactoring:Tyge Løvset
- Non-templated types (cstr, csview, cbits, crandom) have no longer default static linking. Now i_header is defined, i.e. files are as headers only. ==> Define `i_implement` before file inclusion. Still possible to do static linkage by defining `i_static` before inclusion or global STC_STATIC. - Templated containers still have static linkage by default. - Renamed csview_substr(), csview_slice() to csview_substr_ex(), csview_slice_ex(). Added simpler inlined csview_substr(), csview_slice().
2022-05-30Large refactoring on strings / utf8 and some file structure.Tyge Lovset
2022-05-30Added more utf8 features. Changed linking macros in ccommon.h.Tyge Lovset
2022-04-18Converted all example to use cstr_str(&s) instead of s.str to allow SSO ↵Tyge Løvset
string. Fixed misc warnings.
2022-03-24Misc. small internal API renaming/refactoring and additions.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-02-24Switched to the python generated unicode uppercase/lowercase convertionsTyge Løvset
2022-02-23utf8_isspace missed a few codepointsTyge Løvset
2022-02-23Added official unicode tables and python table generator for casefolding.Tyge Løvset
2022-02-18Fixed \x{...} and \Q...\E modes.Tyge Løvset
2022-02-18Some improvements and cleanup: CRegex, CMap.Tyge Løvset
2022-02-16Refactoring. Added size type param to forward_cmap/csmap . Reverted ↵Tyge Løvset
c_autovar macros. Added utf8_encode (not used yet).
2022-02-14cregex minor fixes.Tyge Lovset
2022-02-14Big update on cregex.Tyge Løvset
2022-02-08Small fix.Tyge Løvset
2022-02-08Some more regex improvements.Tyge Løvset
2022-02-08Fix and move POSIX classes to allow to be outside of char class. (non-standard).Tyge Løvset
2022-02-08Make ready for supporting inverse char classes.Tyge Løvset
2022-02-08More cregex improvements. Support for both (?i) and (?-i). Smaller case ↵Tyge Løvset
folding table size.
2022-02-06Misc improvements.Tyge Løvset
2022-02-05Switched to heavily modified version of Rob Pike's plan9 regexp9. -> now ↵Tyge Løvset
renamed to cregex, with new API.