Commit Graph

28 Commits

Author SHA1 Message Date
Veit Heller
a4f8041288
fix: run ormolu and clang-format (#1312) 2021-09-15 19:49:20 +02:00
guberathome
e412559380
reorganize Pattern library (#1257)
* feat!: implemented Pattern.match which returns start and end indizes of the first match

* fix: Pattern.match now returns correct end index

* feat: moved Pattern.match-str and Pattern.find from C to Carp code

* chore: fix build after merges

* chore: fix build after merges

* feat: moved Pattern.find-all from C to Carp code

* feat: Pattern.global-match-str no longer relies on Pattern.global-match

* docs: updated for Pattern.global-match

* fix: moved str/prn functions into sub module

* fix: removed unused functions from carp_pattern.h (using cflow)

* feat!: renamed (Pattern.global-match) to (Pattern.match-all-groups)

* fix: unit test

* fix: some functions renamed to match Carp style

Co-authored-by: guberatsie <gunnar.bernhardt@siemens.com>
2021-06-23 22:07:56 +02:00
Jorge Acereda
5db1f0101f Remove braces so different clang-formats output the same. 2020-05-30 09:32:50 +02:00
Jorge Acereda
543a90ffa0 Add joinLines. 2020-05-30 09:19:26 +02:00
hellerve
06f7ea4c28 docs: update for refs 2020-05-12 21:50:21 +02:00
Jorge Acereda
9b08b6df3c Merge 2020-05-11 16:10:35 +02:00
hellerve
66431a4c80 pattern: fix captures, add split and global-match-str 2020-02-09 13:42:39 +01:00
hellerve
d7cf3982f8 pattern: fix newline, tab, and carriage return treatment 2020-02-09 12:58:53 +01:00
hellerve
657f6c9d3a all: use snprintf only when checking length 2020-01-27 22:43:11 +01:00
hellerve
1829df07a5 core: do not have short functions on single lines 2019-10-30 11:07:32 +01:00
hellerve
65946224f0 core: add .clang-format (references #499) 2019-10-30 08:47:36 +01:00
Jorge Acereda
c4957020dd Add CARP_REALLOC() so it can be checked with CHECK_ALLOCATIONS 2019-10-13 10:40:54 +02:00
Jorge Acereda
4a4107fffd Preserve includes order in generated output. 2019-10-03 00:23:27 +02:00
Jorge Acereda
bbee702f5e Add some const qualifiers, removed MALLOC() null checks, fixed Float_modf(), use memcpy() instead of memmove(). 2019-06-14 14:38:19 +02:00
Jorge Acereda
bbf8c23281 Use standard NDEBUG instead of OPTIMIZE. 2019-06-13 14:29:47 +02:00
hellerve
e9fcf87ff5 core: remove stringcopy.append 2019-05-27 18:05:44 +02:00
hellerve
0e7bd44dd9 core: make all asserts optional 2019-04-21 08:43:18 +02:00
Erik Svedäng
cd96ccbf39 Tests run again. 2018-11-14 21:21:56 +01:00
hellerve
a451a78f73 core: add Pattern.find-all and optimize String.split-by 2018-11-01 16:20:52 +01:00
Chris Hall
b46b2a39e8 String.append is now by reference, StringCopy.append is by copy/linear
Adding memory leak tests to String.append and StringCopy.append

Issue #94
2018-05-20 14:16:10 +10:00
Thomas Dendale
74c61e468d Fix: Pattern.substitute sprint src & dest overlap = undefined behavior 2018-03-23 18:24:52 +01:00
hellerve
a55eeb98a5 core: rename string and pattern types 2018-03-18 14:53:03 +01:00
hellerve
da91127563 core: add useful string functions 2018-03-13 12:13:29 +01:00
Erik Svedäng
e4978d5a96 Optimization works. 2018-03-07 12:03:59 +01:00
hellerve
ae8b7644aa all: patterns need to be their own typedef 2018-03-04 19:39:00 +01:00
hellerve
fa41129ff3 core: pattern functions are now prefixed 2018-03-03 19:58:53 +01:00
hellerve
dac3bad33a core: regex helper functions are done 2018-03-03 19:19:59 +01:00
hellerve
5c736fd224 core: rename regex to pattern, as @RyanSquared suggested in #192 2018-03-02 15:31:26 +01:00