diff options
author | Christoph Hellwig <hch@lst.de> | 2021-09-15 10:00:05 +0300 |
---|---|---|
committer | Gabriel Krisman Bertazi <krisman@collabora.com> | 2021-10-12 17:41:39 +0300 |
commit | 2b3d047870120bcd46d7cc257d19ff49328fd585 (patch) | |
tree | 246aaddfd7767703c9d3cc8a8828c6f064298d09 /include/linux/unicode.h | |
parent | 6ca99ce756c27852d1ea1e555045de1c920f30ed (diff) | |
download | linux-2b3d047870120bcd46d7cc257d19ff49328fd585.tar.xz |
unicode: Add utf8-data module
utf8data.h contains a large database table which is an auto-generated
decodification trie for the unicode normalization functions.
Allow building it into a separate module.
Based on a patch from Shreeya Patel <shreeya.patel@collabora.com>.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Diffstat (limited to 'include/linux/unicode.h')
-rw-r--r-- | include/linux/unicode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/unicode.h b/include/linux/unicode.h index 526ca8b8391a..4d39e6e11a95 100644 --- a/include/linux/unicode.h +++ b/include/linux/unicode.h @@ -6,6 +6,7 @@ #include <linux/dcache.h> struct utf8data; +struct utf8data_table; #define UNICODE_MAJ_SHIFT 16 #define UNICODE_MIN_SHIFT 8 @@ -49,6 +50,7 @@ enum utf8_normalization { struct unicode_map { unsigned int version; const struct utf8data *ntab[UTF8_NMAX]; + const struct utf8data_table *tables; }; int utf8_validate(const struct unicode_map *um, const struct qstr *str); |