utf32ToUtf8 overloads
Declared in <bdlde_charconvertutf32.h>
Convert the UTF-32 srcString into UTF-8 in dstString.
static
int
utf32ToUtf8(
bsl::string* dstString,
unsigned int const* srcString,
std::size_t* numCodePointsWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
Convert the UTF-32 source into UTF-8 in the destination string.
static
int
utf32ToUtf8(
std::pmr::string* dstString,
unsigned int const* srcString,
std::size_t* numCodePointsWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
Convert the UTF-32 source into UTF-8 in the destination string.
static
int
utf32ToUtf8(
std::string* dstString,
unsigned int const* srcString,
std::size_t* numCodePointsWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
Convert the UTF-32 srcString into UTF-8 in dstVector.
static
int
utf32ToUtf8(
bsl::vector<char>* dstVector,
unsigned int const* srcString,
std::size_t* numCodePointsWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
Convert the UTF-32 source into UTF-8 in the destination vector.
static
int
utf32ToUtf8(
std::pmr::vector<char>* dstVector,
unsigned int const* srcString,
std::size_t* numCodePointsWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
Convert the UTF-32 source into UTF-8 in the destination vector.
static
int
utf32ToUtf8(
std::vector<char>* dstVector,
unsigned int const* srcString,
std::size_t* numCodePointsWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
Convert the UTF-32 source of given length into UTF-8 in dstString.
static
int
utf32ToUtf8(
bsl::string* dstString,
unsigned int const* srcString,
std::size_t srcStringLength,
std::size_t* numCodePointsWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
Convert the UTF-32 source of given length into UTF-8 in dstString.
static
int
utf32ToUtf8(
std::pmr::string* dstString,
unsigned int const* srcString,
std::size_t srcStringLength,
std::size_t* numCodePointsWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
Convert the UTF-32 source of given length into UTF-8 in dstString.
static
int
utf32ToUtf8(
std::string* dstString,
unsigned int const* srcString,
std::size_t srcStringLength,
std::size_t* numCodePointsWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
Convert the UTF-32 source of given length into UTF-8 in dstVector.
static
int
utf32ToUtf8(
bsl::vector<char>* dstVector,
unsigned int const* srcString,
std::size_t srcStringLength,
std::size_t* numCodePointsWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
Convert the UTF-32 source of given length into UTF-8 in dstVector.
static
int
utf32ToUtf8(
std::pmr::vector<char>* dstVector,
unsigned int const* srcString,
std::size_t srcStringLength,
std::size_t* numCodePointsWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
Convert the UTF-32 source of given length into UTF-8 in dstVector.
static
int
utf32ToUtf8(
std::vector<char>* dstVector,
unsigned int const* srcString,
std::size_t srcStringLength,
std::size_t* numCodePointsWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
Convert UTF-32 from srcString into UTF-8 in dstBuffer.
static
int
utf32ToUtf8(
char* dstBuffer,
std::size_t dstCapacity,
unsigned int const* srcString,
std::size_t* numCodePointsWritten = 0,
std::size_t* numBytesWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
Convert the UTF-32 source of given length into UTF-8 in dstBuffer.
static
int
utf32ToUtf8(
char* dstBuffer,
std::size_t dstCapacity,
unsigned int const* srcString,
std::size_t srcStringLength,
std::size_t* numCodePointsWritten = 0,
std::size_t* numBytesWritten = 0,
unsigned char errorByte = '?',
ByteOrder::Enum byteOrder = ByteOrder::e_HOST);
» more...
CharConvertStatus::k_INVALID_INPUT_BIT on invalid inputCharConvertStatus flags otherwise| Name | Description |
|---|---|
| dstString | destination for the UTF-8 conversion result |
| srcString | null-terminated UTF-32 source string to convert |
| numCodePointsWritten | if non-null, receives the number of UTF-8 code points written (including terminator) |
| errorByte | optional substitute for invalid UTF-32 values; 0 writes nothing |
| byteOrder | byte order of the UTF-32 input (host by default) |
| dstVector | destination for the null-terminated UTF-8 result |
| srcStringLength | number of UTF-32 values to convert |
| dstBuffer | buffer for the UTF-8 conversion result |
| dstCapacity | capacity of dstBuffer in bytes |
| numBytesWritten | if non-null, receives the number of bytes written |