hare

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

commit d5cc3e3da4fa0eb36d080e37ac54d8258e3d6882
parent 1ecd1920f1c64ae76a9d9406e17d70985dd22dc0
Author: Sebastian <sebastian@sebsite.pw>
Date:   Fri, 13 May 2022 22:23:20 -0400

strings: remove unicode module references

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mstrings/iter.ha | 4++--
Mstrings/sub.ha | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/strings/iter.ha b/strings/iter.ha @@ -53,8 +53,8 @@ export fn riter(src: str) iterator = { // Be aware that a rune is not the minimum lexographical unit of language in // Unicode strings. If you use these runes to construct a new string, // reordering, editing, or omitting any of the runes without careful discretion -// may cause linguistic errors to arise. To avoid this, you may need to use -// [[unicode::graphiter]] instead. +// may cause linguistic errors to arise. To avoid this, you may need to use a +// third-party Unicode module instead. export fn next(iter: *iterator) (rune | void) = { match (iter.push) { case let r: rune => diff --git a/strings/sub.ha b/strings/sub.ha @@ -43,8 +43,8 @@ fn utf8_byte_len_unbounded(iter: *iterator) size = { // substring is the same as that of the original string. // // Note that substringing runewise is not always the correct thing to do, and it -// may cause unexpected linguistic errors to arise. You may need to use -// [[unicode::graphsub]] instead. +// may cause unexpected linguistic errors to arise. You may want to use a +// third-party Unicode module instead. export fn sub(s: str, start: size, end: (size | end)) str = { let iter = iter(s); let starti = utf8_byte_len_bounded(&iter, start);