]> git.baikalelectronics.ru Git - kernel.git/commit
unicode: simplify utf8len
authorChristoph Hellwig <hch@lst.de>
Wed, 15 Sep 2021 07:00:02 +0000 (09:00 +0200)
committerGabriel Krisman Bertazi <krisman@collabora.com>
Mon, 11 Oct 2021 20:01:54 +0000 (17:01 -0300)
commit771f03825f3ac2db238a6e90283c562fc527a45a
treea8e422d8e8a21ab0d0329443ce9eee564c3c8195
parente073b15ee76a22314cbeee0777c1f393ac1bd226
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>
fs/unicode/utf8-norm.c
fs/unicode/utf8-selftest.c
fs/unicode/utf8n.h