hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 009a8e873b688038aaf3c5e5e0b75c9205be56f5
parent 9fec2b3347b20d6e16d0e2ccaf30cdbe27bf353d
Author: Autumn! <autumnull@posteo.net>
Date:   Sun, 13 Aug 2023 17:27:47 +0000

strings: rename runes() to torunes()

Signed-off-by: Autumn! <autumnull@posteo.net>

Diffstat:
Mregex/+test.ha | 2+-
Mstrings/runes.ha | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/regex/+test.ha b/regex/+test.ha @@ -635,7 +635,7 @@ fn run_rawreplace_case( const start = cases[i].3; const end = if (cases[i].4 == -1) { // workaround to get the length in codepoints - let runes = strings::runes(string); + let runes = strings::torunes(string); defer free(runes); yield len(runes): int; } else { diff --git a/strings/runes.ha b/strings/runes.ha @@ -4,7 +4,7 @@ use encoding::utf8; // Returns a slice of runes for a string in O(n). The caller must free the // return value. -export fn runes(s: str) []rune = { +export fn torunes(s: str) []rune = { let sl: []rune = alloc([], len(s)); let iter = iter(s); for (true) {