]> git.baikalelectronics.ru Git - kernel.git/commit
unicode: implement higher level API for string handling
authorGabriel Krisman Bertazi <krisman@collabora.co.uk>
Thu, 25 Apr 2019 17:51:22 +0000 (13:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 25 Apr 2019 17:51:22 +0000 (13:51 -0400)
commita48834238e4a101287b3001c26c190102a208527
treec123dcc3f2e193f584acc2560a1358d546e66810
parentd1cedb3d28bbe1a8f7fe2d6cded794a5224f96ca
unicode: implement higher level API for string handling

This patch integrates the utf8n patches with some higher level API to
perform UTF-8 string comparison, normalization and casefolding
operations.  Implemented is a variation of NFD, and casefold is
performed by doing full casefold on top of NFD.  These algorithms are
based on the core implemented by Olaf Weber from SGI.

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/unicode/Makefile
fs/unicode/utf8-core.c [new file with mode: 0644]
fs/unicode/utf8-norm.c
fs/unicode/utf8n.h
include/linux/unicode.h [new file with mode: 0644]