from small one page howto to huge articles all in one place
 

search text in:





Poll
Which kernel version do you use?





poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

130414

userrating:

average rating: 1.7 (87 votes) (1=very good 6=terrible)


May 25th. 2007:
Words

486

Views

238380

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

119237

userrating:

average rating: 1.3 (28 votes) (1=very good 6=terrible)


April, 26th. 2006:

Druckversion
You are here: manpages





UNICODE::ICONVERT::C

Section: Courier Unicode Library (3)
Updated: 07/29/2015
Index Return to Main Contents
 

NAME

unicode::iconvert::convert, unicode::ucs_4, unicode::ucs_2, unicode::utf_8, unicode::iso_8859_1 - unicode character set conversion  

SYNOPSIS

#include <courier-unicode.h>

extern const char unicode::ucs_4[];
extern const char unicode::ucs_2[];
extern const char unicode::utf_8[];
extern const char unicode::iso_8859_1[];
std::string unicode::iconvert::convert(const std::string &text, const std::string &srccharset, const std::string &dstcharset);
std::string unicode::iconvert::convert(const std::string &text, const std::string &srccharset, const std::string &dstcharset, bool &errflag);
std::string unicode::iconvert::convert(const std::vector<unicode_char> &text, const std::string &dstcharset);
std::string unicode::iconvert::convert(const std::vector<unicode_char> &text, const std::string &dstcharset, bool &errflag);
bool unicode::iconvert::convert(const std::string &text, const std::string &charset, std::vector<unicode_char> &text);
 

DESCRIPTION

The overloaded unicode::convert::convert() functions convert:

* A text string between two different character sets, returning the new string.

* A vector of unicode characters (not null-terminated) to a character string in a supported character set.

* Initialize a vector of unicode characters, passed by reference, by converting a text string in a given character set to unicode.

These functions use iconv(3), and can use any character set that's supported by iconv(3). Use unicode::ucs_2 and unicode::ucs_4 to specify the 16 and the 32 bit unicode octet in native byte order. Use unicode::utf_8 and unicode::iso_8859_1 to specify these two standard character sets. The overloaded versions that pass a reference to a bool set the flag to true if some characters could not be converted. The overloaded version that initializes a unicode vector returns the bool flag, instead.  

SEE ALSO

courier-unicode(7), unicode::convert::convert_tocase(3), unicode_convert(3), m[blue]iconv(3)m[][1].  

AUTHOR

Sam Varshavchik

Author
 

NOTES

1.

         iconv(3)

http://manpages.courier-mta.org/htmlman3/iconv.3.html


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
AUTHOR
NOTES





Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2018 Sascha Nitsch Unternehmensberatung UG(haftungsbeschränkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 3.1 ms