unicode_uc man page

unicode_uc, unicode_lc, unicode_tc, unicode_convert_tocase — unicode uppercase, lowercase, and titlecase character lookup

Synopsis

#include <courier-unicode.h>

unicode_char unicode_uc(unicode_char c);

unicode_char unicode_lc(unicode_char c);

unicode_char unicode_tc(unicode_char c);

char *unicode_convert_tocase(const char *str, const char *charset, unicode_char (*first_char_func)(uncode_char), unicode_char (*char_func)(uncode_char));

Description

unicode_uc(), unicode_lc(), unicode_tc() return the uppercase, lowercase, or the titlecase equivalent of the unicode character c. If this character does not have an uppercase, lowercase, or a titlecase equivalent, these functions return c, the same character.

unicode_convert_tocase() takes the string str in the character set charset. first_char_func and char_func, each, should be unicode_uc, unicode_lc, or unicode_tc. unicode_convert_tocase() returns a malloc()ed buffer. The first unicode character in str gets processed by first_char_func, and all other characters by char_func.

See Also

courier-unicode(7), unicode_convert(3), unicode_default_chset(3), unicode_html40ent_lookup(3), unicode_category_lookup(3), unicode_grapheme_break(3), unicode_word_break(3), unicode_line_break(3).

Author

Sam Varshavchik

Author

Referenced By

courier-unicode(7), unicode_category_lookup(3), unicode_default_chset(3), unicode_grapheme_break(3), unicode_html40ent_lookup(3), unicode::tolower(3), unicode_u_ucs4_native(3), unicode_wb_init(3).

unicode_convert_tocase(3), unicode_lc(3) and unicode_tc(3) are aliases of unicode_uc(3).

07/29/2015 Courier Unicode Library Courier Unicode Library