diff options
author | Steven G. Johnson <stevenj@mit.edu> | 2015-05-29 22:58:12 -0400 |
---|---|---|
committer | Steven G. Johnson <stevenj@mit.edu> | 2015-05-29 22:58:12 -0400 |
commit | 59b69142ea2ab2cca250a3c92a887ee5e2531680 (patch) | |
tree | aff90af7a3890bed7679ee46e3f290fd9df03dac /utf8proc.h | |
parent | 35ec8e32e7e9ccbc7bc12da6eec5b11e72a9e674 (diff) | |
parent | a8fb4b17727651beadfa2c7c4d899fd0f4947c5a (diff) | |
download | libutf8proc-59b69142ea2ab2cca250a3c92a887ee5e2531680.tar.gz libutf8proc-59b69142ea2ab2cca250a3c92a887ee5e2531680.tar.bz2 |
Merge pull request #40 from JuliaLang/casefuncs
add toupper/tolower functions
Diffstat (limited to 'utf8proc.h')
-rw-r--r-- | utf8proc.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -511,6 +511,21 @@ UTF8PROC_DLLEXPORT utf8proc_ssize_t utf8proc_reencode(utf8proc_int32_t *buffer, */ UTF8PROC_DLLEXPORT utf8proc_bool utf8proc_grapheme_break(utf8proc_int32_t codepoint1, utf8proc_int32_t codepoint2); + +/** + * Given a codepoint `c`, return the codepoint of the corresponding + * lower-case character, if any; otherwise (if there is no lower-case + * variant, or if `c` is not a valid codepoint) return `c`. + */ +UTF8PROC_DLLEXPORT utf8proc_int32_t utf8proc_tolower(utf8proc_int32_t c); + +/** + * Given a codepoint `c`, return the codepoint of the corresponding + * upper-case character, if any; otherwise (if there is no upper-case + * variant, or if `c` is not a valid codepoint) return `c`. + */ +UTF8PROC_DLLEXPORT utf8proc_int32_t utf8proc_toupper(utf8proc_int32_t c); + /** * Given a codepoint, return a character width analogous to `wcwidth(codepoint)`, * except that a width of 0 is returned for non-printable codepoints |