1UNICODE::ICONVERT::C(3)     Courier Unicode Library    UNICODE::ICONVERT::C(3)
2
3
4

NAME

6       unicode::iconvert::convert_tocase - unicode uppercase, lowercase, and
7       titlecase conversion
8

SYNOPSIS

10       #include <courier-unicode.h>
11
12       std::string unicode::iconvert::convert_tocase(const std::string &text,
13                                                     const std::string &charset,
14                                                     char32_t (*first_char_func)(char32_t),
15                                                     char32_t (*char_func)(char32_t));
16
17       std::string unicode::iconvert::convert_tocase(const std::string &text,
18                                                     const std::string &charset,
19                                                     bool &err,
20                                                     char32_t (*first_char_func)(char32_t),
21                                                     char32_t (*char_func)(char32_t));
22

DESCRIPTION

24       The overloaded unicode::convert::convert_tocase() function converts the
25       text parameter, in the charset characters to lowercase, uppercase, and
26       titlecase.  text gets converted, internally, into unicode.
27       first_char_func and char_func are either: unicode_lc, unicode_uc, or
28       unicode_tc. If the converted text string is not empty, first_char_func
29       converts the first unicode character in the text string, and char_func
30       converts any remaining characters.  unicode_lc converts its character
31       to lowercase, unicode_uc to uppercase, and unicode_tc to titlecase.
32       Finally, the unicode string gets converted back to charset, which gets
33       returned.
34
35       The optional err parameter gets set to true if an error was encounted
36       converting the text string to or from unicode.
37

SEE ALSO

39       courier-unicode(7), unicode::convert::convert(3), unicode_convert(3),
40       iconv(3)[1].
41

AUTHOR

43       Sam Varshavchik
44           Author
45

NOTES

47        1.
48
49                      iconv(3)
50           https://manpages.courier-mta.org/htmlman3/iconv.3.html
51
52
53
54Courier Unicode Library           04/16/2022           UNICODE::ICONVERT::C(3)
Impressum