From KAAtheWise to ~sircmpwn/alpine-aports
--- testing/circumflex/APKBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 testing/circumflex/APKBUILD diff --git a/testing/circumflex/APKBUILD b/testing/circumflex/APKBUILD new file mode 100644 index 00000000000..349a89c02de --- /dev/null +++ b/testing/circumflex/APKBUILD @@ -0,0 +1,31 @@ # Contributor: KAA the Wise <KAAtheWise@protonmail.com> # Maintainer: KAA the Wise <KAAtheWise@protonmail.com> pkgname=circumflex[message trimmed]
From KAAtheWise to ~sircmpwn/hare-dev
If the end type is passed as the left bound, the length of the string in chars can be determined using len instead of iterating over it. Signed-off-by: KAA the Wise <KAAtheWise@protonmail.com> --- strings/sub.ha | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/strings/sub.ha b/strings/sub.ha index 5690f2f6..5f069a59 100644 --- a/strings/sub.ha +++ b/strings/sub.ha @@ -22,21 +22,6 @@ fn utf8_byte_len_bounded(iter: *iterator, end: size) size = { return pos; [message trimmed]
From KAAtheWise to ~sircmpwn/alpine-aports
A port for the SCC SLOC/CLOC counter. --- testing/scc/APKBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 testing/scc/APKBUILD diff --git a/testing/scc/APKBUILD b/testing/scc/APKBUILD new file mode 100644 index 00000000000..a7a313f954c --- /dev/null +++ b/testing/scc/APKBUILD @@ -0,0 +1,29 @@ # Contributor: KAA the Wise <KAAtheWise@protonmail.com> # Maintainer: KAA the Wise <KAAtheWise@protonmail.com>[message trimmed]
From KAAtheWise to ~sircmpwn/hare-dev
If the end type is passed as the end bound, the length of the string in chars can be determined without iteration by using len. --- strings/sub.ha | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/strings/sub.ha b/strings/sub.ha index 5690f2f6..5f069a59 100644 --- a/strings/sub.ha +++ b/strings/sub.ha @@ -22,21 +22,6 @@ fn utf8_byte_len_bounded(iter: *iterator, end: size) size = { return pos; }; [message trimmed]
From KAAtheWise to ~vladh/hare-project-library
--- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f5b8cf8..c512437 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ If you're interested specifically in 3D graphics, check out * [~chrisppy/hare-scfg](https://git.sr.ht/~chrisppy/hare-scfg): A Hare library for a simple configuration file format * [~ecs/hare-stl](https://git.d2evs.net/~ecs/hare-stl): STL implementation for Hare * [~jfentker/hare-csv](https://git.sr.ht/~jfentker/hare-csv): CSV support for Hare * [~kaathewise/hare-regex](https://git.sr.ht/~kaathewise/hare-regex): Hare regex engine with wider functionality * [~phw/hare-discid](https://git.sr.ht/~phw/hare-discid/): Hare bindings for MusicBrainz libdiscid [message trimmed]
From KAAtheWise to ~sircmpwn/hare-dev
Changed range expressions to cast runes to u32 instead of u8. This means the range expressions now support multibyte codepoints. Also added tests for different alphabets. It includes Cyrillic/Polish/Thai alphabets. In addition, edited the testing code to use rune length instead of byte length. Signed-off-by: Andrey Kolchin <kaathewise@protonmail.com> --- regex/+test.ha | 30 +++++++++++++++++++++++++++++- regex/regex.ha | 16 +++++----------- 2 files changed, 34 insertions(+), 12 deletions(-) diff --git a/regex/+test.ha b/regex/+test.ha [message trimmed]
From KAAtheWise to ~sircmpwn/hare-users
Regex is an interesting topic! I'll try to contribute it once I get better at the language.
From KAAtheWise to ~sircmpwn/hare-users
Understood, thanks!
From KAAtheWise to ~sircmpwn/hare-users
Good day! Is there anywhere I can read about limitations on Hare's standard regex implementation, besides the docs and the blog post about it? I want to check wherever using multiple alterations is allowed. My program aborts when I test again the regex "(a|b|c)", with the following error: Abort: /usr/src/hare/stdlib/regex/regex.ha:502:4: slice or array access out of bounds And compiling a regex from "a|b|c" returns this error description: