From 3297ca7f3a3313e80e49547c857e1593286316b8 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 31 May 2020 14:53:10 -0700 Subject: minor changes --- sys/libn/string.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/libn/string.c') diff --git a/sys/libn/string.c b/sys/libn/string.c index e2cdddf..bf5d645 100644 --- a/sys/libn/string.c +++ b/sys/libn/string.c @@ -34,7 +34,7 @@ enum }; int -utf8·chartorune(rune* r, byte* s) +utf8·bytetorune(rune* r, byte* s) { int c[UTFmax], i; rune l; @@ -72,7 +72,7 @@ bad: } int -utf8·runetochar(byte* s, rune* r) +utf8·runetobyte(byte* s, rune* r) { int i, j; rune c; @@ -105,7 +105,7 @@ int utf8·runelen(rune r) { byte s[10]; - return utf8·runetochar(s, &r); + return utf8·runetobyte(s, &r); } int @@ -142,7 +142,7 @@ utf8·findrune(byte* s, long c) s++; continue; } - n = utf8·chartorune(&r, s); + n = utf8·bytetorune(&r, s); if (r == c) return s; s += n; } @@ -169,7 +169,7 @@ utf8·findrrune(byte* s, long c) s++; continue; } - c1 = utf8·chartorune(&r, s); + c1 = utf8·bytetorune(&r, s); if (r == c) l = s; s += c1; -- cgit v1.2.1