Functions | |
Cpp16BitString | ulxr::utf8ToUnicode (const Cpp8BitString &val) |
Returns a string in utf8 as 16bit Unicode. | |
Cpp8BitString | ulxr::unicodeToUtf8 (const Cpp16BitString &val) |
Returns a string in 16bit Unicode as utf8. | |
Cpp8BitString | ulxr::asciiToUtf8 (const Cpp8BitString &val) |
Returns a string in 8bit extended ascii as utf8. | |
Cpp8BitString | ulxr::utf8ToAscii (const Cpp8BitString &val) |
Returns a string in utf8 as 8bit ascii. | |
Cpp8BitString | ulxr::unicodeToUtf8 (const unsigned c) |
Returns a character in 16bit Unicode as utf8. | |
Cpp8BitString | ulxr::encodingToUtf8 (const Cpp8BitString &val, const char *encoding) |
Returns a string in a user encoding as utf8. | |
Cpp8BitString | ulxr::utf8ToEncoding (const Cpp8BitString &val, const char *encoding) |
Returns a string in utf8 as user encoding. | |
Cpp8BitString | ulxr::convertEncoding (const Cpp8BitString &val, iconv_t con) |
Returns a string converted from and to a user encoding. | |
Cpp16BitString | ulxr::getUnicode (const std::string &latin1) |
Converts a string from latin1 to unicode. | |
Cpp16BitString | ulxr::getUnicode (const Cpp16BitString &uni) |
Converts a string from unicode to unicode. | |
std::string | ulxr::getLatin1 (const Cpp16BitString &uni) |
Converts a string from unicode to latin1. | |
std::string | ulxr::getLatin1 (const std::string &latin1) |
Converts a string from latin1 to latin1. |
Cpp8BitString ulxr::asciiToUtf8 | ( | const Cpp8BitString & | val | ) |
Returns a string in 8bit extended ascii as utf8.
This function transforms every single 8bit wide character into its utf8 equivalent. Needed because uxmlrpcpp internally works either in unicode or utf8 depending on ULXR_UNICODE
.
utf8ToAscii()
. val | string in 8bit encoding |
Definition at line 843 of file ulxmlrpcpp.cpp.
References ulxr::unicodeToUtf8().
Referenced by ulxr::Log4JSender::send().
Cpp8BitString ulxr::convertEncoding | ( | const Cpp8BitString & | val, | |
iconv_t | con | |||
) |
Returns a string converted from and to a user encoding.
Useful when you have to convert a lot of strings as you have to generate the conversion descriptor only once. See "man 3 iconv_open()". Works only good with two 8bit encodings as "string" is used for both input and output.
val | input string in first user encoding | |
con | conversion descriptor |
Definition at line 933 of file ulxmlrpcpp.cpp.
References ICONV_CONST, ulxr::SystemError, ulxr_i18n, and ULXR_PCHAR.
Cpp8BitString ulxr::encodingToUtf8 | ( | const Cpp8BitString & | val, | |
const char * | encoding | |||
) |
Returns a string in a user encoding as utf8.
Works only good with an 8bit encoding as "string" is used for both input and output.
val | string in user encoding | |
encoding | name of user encoding according to "man 3 iconv_open" |
Definition at line 963 of file ulxmlrpcpp.cpp.
References ulxr::convertEncoding().
std::string ulxr::getLatin1 | ( | const std::string & | latin1 | ) | [inline] |
Converts a string from latin1 to latin1.
Dummy function to avoid error messages.
latin1 | string in ISO8859-1 encoding |
Definition at line 619 of file ulxmlrpcpp.h.
std::string ulxr::getLatin1 | ( | const Cpp16BitString & | uni | ) |
Converts a string from unicode to latin1.
Since latin1 is the first unicode page the charcters are just "reduced" from "wchar_t" to "char". Characters beyond this range are undefined.
uni | string in unicode |
Definition at line 164 of file ulxmlrpcpp.cpp.
Referenced by funtik::MultiProcessRpcServer::blockSigchld(), ulxr::FileResource::clear(), ulxr::FileResource::close(), ulxr::HttpProtocol::determineContentLength(), ulxr::Double::Double(), ulxr::HtmlFormHandler::extractFormElements(), ulxr::HttpClient::fileGET(), ulxr::HttpClient::filePUT(), ulxr::TcpIpConnection::getHostAdress(), ulxr::HtmlFormHandler::getLong(), ulxr::getVersion(), ulxr::TcpIpConnection::init(), ulxr::Integer::Integer(), ulxr::FileResource::open(), ulxr::Log4JSender::send(), ulxr::HttpProtocol::splitHeaderLine(), funtik::SSLConnectionException::SSLConnectionException(), funtik::MultiProcessRpcServer::storeFuncResult(), funtik::MultiProcessRpcServer::unblockSigchld(), and funtik::MultiProcessRpcServer::waitChildren().
Cpp16BitString ulxr::getUnicode | ( | const Cpp16BitString & | uni | ) | [inline] |
Converts a string from unicode to unicode.
Dummy function to avoid error messages.
uni | string in unicode |
Definition at line 597 of file ulxmlrpcpp.h.
Cpp16BitString ulxr::getUnicode | ( | const std::string & | latin1 | ) |
Converts a string from latin1 to unicode.
Since latin1 is the first unicode page the charcters are just "expanded" from "char" to "wchar_t".
latin1 | string in ISO8859-1 encoding |
Definition at line 154 of file ulxmlrpcpp.cpp.
Referenced by ulxr::RpcString::setString(), and funtik::SSLConnectionException::why().
Cpp8BitString ulxr::unicodeToUtf8 | ( | const unsigned | c | ) |
Returns a character in 16bit Unicode as utf8.
c | unicode character |
Definition at line 856 of file ulxmlrpcpp.cpp.
References ulxr::ApplicationError, ulxr::HtmlFormHandler::makeHexNumber(), ulxr_i18n, and ULXR_PCHAR.
Cpp8BitString ulxr::unicodeToUtf8 | ( | const Cpp16BitString & | val | ) |
Returns a string in 16bit Unicode as utf8.
val | wstring in unicode |
Definition at line 829 of file ulxmlrpcpp.cpp.
Referenced by ulxr::asciiToUtf8(), ulxr::HtmlFormHandler::encodeForHtml(), ulxr::getWbXmlString(), ulxr::resolveCharRef(), ulxr::Log4JSender::send(), ulxr::HttpProtocol::sendNegativeResponse(), ulxr::HttpProtocol::sendRequestHeader(), ulxr::HttpProtocol::sendResponseHeader(), ulxr::Protocol::sendRpcCall(), ulxr::HttpProtocol::sendRpcCall(), ulxr::Protocol::sendRpcResponse(), ulxr::HttpProtocol::sendRpcResponse(), ulxr::HttpProtocol::tryConnect(), and ulxr::Value::Value().
Cpp8BitString ulxr::utf8ToAscii | ( | const Cpp8BitString & | val | ) |
Returns a string in utf8 as 8bit ascii.
This function transforms an utf8 string into its extended 8bit wide string equivalent. Needed because uxmlrpcpp internally works either in unicode or utf8 depending on ULXR_UNICODE
.
asciiToUtf8()
. val | string in utf8 |
Definition at line 780 of file ulxmlrpcpp.cpp.
References ulxr::ApplicationError, ulxr::decodeUtf8Group(), ulxr::HtmlFormHandler::makeHexNumber(), ulxr_i18n, and ULXR_PCHAR.
Cpp8BitString ulxr::utf8ToEncoding | ( | const Cpp8BitString & | val, | |
const char * | encoding | |||
) |
Returns a string in utf8 as user encoding.
Works only good with an 8bit encoding as "string" is used for both input and output.
val | string in utf8 | |
encoding | name of user encoding according to "man 3 iconv_open" |
Definition at line 969 of file ulxmlrpcpp.cpp.
References ulxr::convertEncoding().
Cpp16BitString ulxr::utf8ToUnicode | ( | const Cpp8BitString & | val | ) |
Returns a string in utf8 as 16bit Unicode.
val | string in utf8 |
Definition at line 801 of file ulxmlrpcpp.cpp.
References ulxr::ApplicationError, ulxr::decodeUtf8Group(), ulxr::HtmlFormHandler::makeHexNumber(), ulxr_i18n, and ULXR_PCHAR.
Referenced by ulxr::XmlParserBase::ParserState::appendCharData(), ulxr::HtmlFormHandler::encodeFromHtml(), ulxr::RpcString::getUnicodeString(), and ulxr::wbXmlToString().