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

NAME

6       unicode::iconvert::fromu - template for converting text sequence from
7       unicode
8

SYNOPSIS

10       #include <courier-unicode.h>
11
12       output_iter_t unicode::iconvert::fromu::convert(input_iter_t beg_iter,
13                                                       input_iter_t end_iter,
14                                                       const std::string &charset,
15                                                       output_iter_t output_iter,
16                                                       bool &errflag);
17
18       void unicode::iconvert::fromu::convert(input_iter_t beg_iter,
19                                              input_iter_t end_iter,
20                                              const std::string &charset,
21                                              std::string &out_buf,
22                                              bool &errflag);
23
24       std::pair<std::string, bool>
25                                                                      unicode::iconvert::fromu::convert(const std::u32string &text,
26                                                                      const std::string &charset);
27

DESCRIPTION

29       These template functions convert unicode characters to text in the
30       given character set.  beg_iter and end_iter define an input sequence of
31       char32_ts. They get converted to unicode characters.  output_iter is an
32       output iterator that convert() iterates over chars in the specified
33       character set.  convert() returns the value of the output iterator
34       after iterating over the converted character sequence.  err_flag gets
35       set to true if unicode text could not be converted to the requested
36       character set, or false for a successful conversion.
37
38       An overloaded convert() puts the text string into a std::string,
39       instead of using an output iterator. Finally, a single std::u32string
40       specifies the character string, instead of a beginning and an ending
41       iterator.
42

SEE ALSO

44       courier-unicode(7), unicode::convert::convert(3), unicode_convert(3),
45       iconv(3)[1].
46

AUTHOR

48       Sam Varshavchik
49           Author
50

NOTES

52        1.
53
54                      iconv(3)
55           http://manpages.courier-mta.org/htmlman3/iconv.3.html
56
57
58
59Courier Unicode Library           03/11/2017           UNICODE::ICONVERT::F(3)
Impressum