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)
commit9d53690f0d4e5686e80f034ea584b7a822b356d3
treec123dcc3f2e193f584acc2560a1358d546e66810
parenta8384c68797ee022f5fd7bcef5f4cc57863d4042
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]