diff options
author | Christoph Hellwig <hch@lst.de> | 2021-09-15 09:00:02 +0200 |
---|---|---|
committer | Gabriel Krisman Bertazi <krisman@collabora.com> | 2021-10-11 22:01:54 +0200 |
commit | 9012d79cf0c760eb69d54163ee5152c1b504f7aa (patch) | |
tree | a8e422d8e8a21ab0d0329443ce9eee564c3c8195 /fs/unicode/utf8n.h | |
parent | unicode: remove the unused utf8{,n}age{min,max} functions (diff) | |
download | linux-9012d79cf0c760eb69d54163ee5152c1b504f7aa.tar.xz linux-9012d79cf0c760eb69d54163ee5152c1b504f7aa.zip |
unicode: simplify utf8len
Just use the utf8nlen implementation with a (size_t)-1 len argument,
similar to utf8_lookup. Also move the function to utf8-selftest.c, as
it isn't used anywhere else.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Diffstat (limited to 'fs/unicode/utf8n.h')
-rw-r--r-- | fs/unicode/utf8n.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/unicode/utf8n.h b/fs/unicode/utf8n.h index e4c8a767cf7a..41182e5464df 100644 --- a/fs/unicode/utf8n.h +++ b/fs/unicode/utf8n.h @@ -39,7 +39,6 @@ extern const struct utf8data *utf8nfdicf(unsigned int maxage); * Returns 0 if only ignorable code points are present. * Returns -1 if the input is not valid UTF-8. */ -extern ssize_t utf8len(const struct utf8data *data, const char *s); extern ssize_t utf8nlen(const struct utf8data *data, const char *s, size_t len); /* Needed in struct utf8cursor below. */ |