logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

unicode::iconvert::fromu - template for converting text sequence from unicode

Author

SamVarshavchik
           Author

Courier Unicode Library                            05/18/2024                            UNICODE::ICONVERT::F(3)

Description

       These template functions convert unicode characters to text in the given character set.  beg_iter and
       end_iter define an input sequence of char32_ts. They get converted to unicode characters.  output_iter is
       an output iterator that convert() iterates over chars in the specified character set.  convert() returns
       the value of the output iterator after iterating over the converted character sequence.  err_flag gets
       set to true if unicode text could not be converted to the requested character set, or false for a
       successful conversion.

       An overloaded convert() puts the text string into a std::string, instead of using an output iterator.
       Finally, a single std::u32string specifies the character string, instead of a beginning and an ending
       iterator.

Name

       unicode::iconvert::fromu - template for converting text sequence from unicode

See Also

courier-unicode(7), unicode::convert::convert(3), unicode_convert(3), iconv(3).

Synopsis

#include<courier-unicode.h>output_iter_tunicode::iconvert::fromu::convert(input_iter_tbeg_iter,input_iter_tend_iter,conststd::string&charset,output_iter_toutput_iter,bool&errflag);voidunicode::iconvert::fromu::convert(input_iter_tbeg_iter,input_iter_tend_iter,conststd::string&charset,std::string&out_buf,bool&errflag);std::pair<std::string,bool>unicode::iconvert::fromu::convert(conststd::u32string&text,conststd::string&charset);

See Also