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>
Showing
- fs/unicode/Makefile 3 additions, 1 deletionfs/unicode/Makefile
- fs/unicode/utf8-core.c 187 additions, 0 deletionsfs/unicode/utf8-core.c
- fs/unicode/utf8-norm.c 6 additions, 0 deletionsfs/unicode/utf8-norm.c
- fs/unicode/utf8n.h 1 addition, 0 deletionsfs/unicode/utf8n.h
- include/linux/unicode.h 30 additions, 0 deletionsinclude/linux/unicode.h
Loading
Please register or sign in to comment