]>
exis.tech > repos - linux.git/blob - include/linux/unicode.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_UNICODE_H
3 #define _LINUX_UNICODE_H
5 #include <linux/init.h>
6 #include <linux/dcache.h>
13 int utf8_validate(const struct unicode_map
*um
, const struct qstr
*str
);
15 int utf8_strncmp(const struct unicode_map
*um
,
16 const struct qstr
*s1
, const struct qstr
*s2
);
18 int utf8_strncasecmp(const struct unicode_map
*um
,
19 const struct qstr
*s1
, const struct qstr
*s2
);
20 int utf8_strncasecmp_folded(const struct unicode_map
*um
,
21 const struct qstr
*cf
,
22 const struct qstr
*s1
);
24 int utf8_normalize(const struct unicode_map
*um
, const struct qstr
*str
,
25 unsigned char *dest
, size_t dlen
);
27 int utf8_casefold(const struct unicode_map
*um
, const struct qstr
*str
,
28 unsigned char *dest
, size_t dlen
);
30 struct unicode_map
*utf8_load(const char *version
);
31 void utf8_unload(struct unicode_map
*um
);
33 #endif /* _LINUX_UNICODE_H */