aboutsummaryrefslogtreecommitdiff
path: root/sys/libn/string.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-05-31 14:53:10 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-05-31 14:53:10 -0700
commit3297ca7f3a3313e80e49547c857e1593286316b8 (patch)
treee3fc9e24e7ca89be75c1d1981107de8a01d0fe61 /sys/libn/string.c
parentb6291927ffb898e37fd482b08669b3577e4d669a (diff)
minor changes
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;