unicode: move utf8cursor to utf8-selftest.c
Only used by the tests, so no need to keep it in the core. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
This commit is contained in:
committed by
Gabriel Krisman Bertazi
parent
9012d79cf0
commit
fbc59d6505
@@ -165,6 +165,12 @@ static ssize_t utf8len(const struct utf8data *data, const char *s)
|
||||
return utf8nlen(data, s, (size_t)-1);
|
||||
}
|
||||
|
||||
static int utf8cursor(struct utf8cursor *u8c, const struct utf8data *data,
|
||||
const char *s)
|
||||
{
|
||||
return utf8ncursor(u8c, data, s, (unsigned int)-1);
|
||||
}
|
||||
|
||||
static void check_utf8_nfdi(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user