diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-09-04 19:34:56 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-09-23 21:55:29 +0200 |
commit | b5130a81251d338be96e02134d6fca7c00229e07 (patch) | |
tree | 2569d4a46d4a4a7ce392edf778969e9526b80cd6 /include/charset.h | |
parent | 5b2118a2ad3bd1b75dd1650db193a2f6182fa3de (diff) |
lib: charset: upper/lower case conversion
Provide functions for upper and lower case conversion.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/charset.h')
-rw-r--r-- | include/charset.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/charset.h b/include/charset.h index 90870513ef..686db5a1fe 100644 --- a/include/charset.h +++ b/include/charset.h @@ -143,6 +143,22 @@ int utf16_utf8_strncpy(char **dst, const u16 *src, size_t count); #define utf16_utf8_strcpy(d, s) utf16_utf8_strncpy((d), (s), SIZE_MAX) /** + * utf_to_lower() - convert a Unicode letter to lower case + * + * @code: letter to convert + * Return: lower case letter or unchanged letter + */ +s32 utf_to_lower(const s32 code); + +/** + * utf_to_upper() - convert a Unicode letter to upper case + * + * @code: letter to convert + * Return: upper case letter or unchanged letter + */ +s32 utf_to_upper(const s32 code); + +/** * u16_strlen - count non-zero words * * This function matches wsclen() if the -fshort-wchar compiler flag is set. |