diff options
author | Christoph Hellwig <hch@lst.de> | 2021-09-15 10:00:03 +0300 |
---|---|---|
committer | Gabriel Krisman Bertazi <krisman@collabora.com> | 2021-10-11 23:01:58 +0300 |
commit | fbc59d65059ecfea8b746715e920c325cc16cede (patch) | |
tree | ce6dbf5359d4e40ffb3fd67c5222352177b7f87f /fs/unicode/utf8-selftest.c | |
parent | 9012d79cf0c760eb69d54163ee5152c1b504f7aa (diff) | |
download | linux-fbc59d65059ecfea8b746715e920c325cc16cede.tar.xz |
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>
Diffstat (limited to 'fs/unicode/utf8-selftest.c')
-rw-r--r-- | fs/unicode/utf8-selftest.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/unicode/utf8-selftest.c b/fs/unicode/utf8-selftest.c index 80fb7c75acb2..04628b50351d 100644 --- a/fs/unicode/utf8-selftest.c +++ b/fs/unicode/utf8-selftest.c @@ -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; |