#include "blocxx/BLOCXX_config.h"
#include "blocxx/String.hpp"
#include "blocxx/Array.hpp"
#include <string>
#include <iconv.h>
Go to the source code of this file.
Namespaces | |
namespace | BLOCXX_NAMESPACE |
namespace | BLOCXX_NAMESPACE::IConv |
Classes | |
class | BLOCXX_NAMESPACE::IConv_t |
The IConv_t class is a wrapper to the UNIX98 iconv(3) functions. More... | |
Functions | |
String | BLOCXX_NAMESPACE::IConv::fromByteString (const String &enc, const char *str, size_t len) |
Converts a C string from the specified encoding into a String object using UTF-8 encoding. | |
String | BLOCXX_NAMESPACE::IConv::fromByteString (const String &enc, const std::string &str) |
Converts a std::string from the specified encoding into a String object using UTF-8 encoding. | |
String | BLOCXX_NAMESPACE::IConv::fromWideString (const String &enc, const std::wstring &str) |
Converts a std::wstring from the specified encoding into a String object using UTF-8 encoding. | |
std::string | BLOCXX_NAMESPACE::IConv::toByteString (const String &enc, const String &utf8) |
Converts a UTF-8 String to the specified encoding casted as a (char based) std::string. | |
std::wstring | BLOCXX_NAMESPACE::IConv::toWideString (const String &enc, const String &utf8) |
Convert a UTF-8 String to the specified encoding casted as a (wchar_t based) std::wstring. |