aboutsummaryrefslogtreecommitdiff
path: root/sys/libn/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libn/string.c')
-rw-r--r--sys/libn/string.c10
1 files changed, 5 insertions, 5 deletions
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;