-
- Downloads
unicode: cache the normalization tables in struct unicode_map
Instead of repeatedly looking up the version add pointers to the NFD and NFD+CF tables to struct unicode_map, and pass a unicode_map plus index to the functions using the normalization tables. Signed-off-by:Christoph Hellwig <hch@lst.de> Signed-off-by:
Gabriel Krisman Bertazi <krisman@collabora.com>
Showing
- fs/unicode/utf8-core.c 19 additions, 18 deletionsfs/unicode/utf8-core.c
- fs/unicode/utf8-norm.c 20 additions, 25 deletionsfs/unicode/utf8-norm.c
- fs/unicode/utf8-selftest.c 33 additions, 47 deletionsfs/unicode/utf8-selftest.c
- fs/unicode/utf8n.h 6 additions, 4 deletionsfs/unicode/utf8n.h
- include/linux/unicode.h 19 additions, 0 deletionsinclude/linux/unicode.h
Loading
Please register or sign in to comment