|
static bool | logicalToVisualBiDi (const std::u32string &stringSrc, std::u32string &stringDst, FriBidiCharType base=FRIBIDI_TYPE_LTR, const bool failOnBadString=false, int *visualToLogicalMap=nullptr) |
|
static bool | isBidiDirectionRTL (const std::string &stringSrc) |
|
template<class INPUT , class OUTPUT > |
static bool | stdConvert (StdConversionType convertType, const INPUT &strSource, OUTPUT &strDest, bool failOnInvalidChar=false) |
|
template<class INPUT , class OUTPUT > |
static bool | customConvert (const std::string &sourceCharset, const std::string &targetCharset, const INPUT &strSource, OUTPUT &strDest, bool failOnInvalidChar=false) |
|
template<class INPUT , class OUTPUT > |
static bool | convert (iconv_t type, int multiplier, const INPUT &strSource, OUTPUT &strDest, bool failOnInvalidChar=false) |
|
◆ convert()
template<class INPUT , class OUTPUT >
bool CCharsetConverter::CInnerConverter::convert |
( |
iconv_t |
type, |
|
|
int |
multiplier, |
|
|
const INPUT & |
strSource, |
|
|
OUTPUT & |
strDest, |
|
|
bool |
failOnInvalidChar = false |
|
) |
| |
|
static |
◆ customConvert()
template<class INPUT , class OUTPUT >
bool CCharsetConverter::CInnerConverter::customConvert |
( |
const std::string & |
sourceCharset, |
|
|
const std::string & |
targetCharset, |
|
|
const INPUT & |
strSource, |
|
|
OUTPUT & |
strDest, |
|
|
bool |
failOnInvalidChar = false |
|
) |
| |
|
static |
◆ isBidiDirectionRTL()
bool CCharsetConverter::CInnerConverter::isBidiDirectionRTL |
( |
const std::string & |
stringSrc | ) |
|
|
static |
◆ logicalToVisualBiDi()
bool CCharsetConverter::CInnerConverter::logicalToVisualBiDi |
( |
const std::u32string & |
stringSrc, |
|
|
std::u32string & |
stringDst, |
|
|
FriBidiCharType |
base = FRIBIDI_TYPE_LTR , |
|
|
const bool |
failOnBadString = false , |
|
|
int * |
visualToLogicalMap = nullptr |
|
) |
| |
|
static |
◆ stdConvert()
template<class INPUT , class OUTPUT >
bool CCharsetConverter::CInnerConverter::stdConvert |
( |
StdConversionType |
convertType, |
|
|
const INPUT & |
strSource, |
|
|
OUTPUT & |
strDest, |
|
|
bool |
failOnInvalidChar = false |
|
) |
| |
|
static |
◆ m_critSectionFriBiDi
◆ m_stdConversion
Initial value:=
{
CConverterType(
"UTF-16BE",
"UTF-8", CCharsetConverter::m_Utf8CharMaxSize),
CConverterType(
"UTF-16LE",
"UTF-8", CCharsetConverter::m_Utf8CharMaxSize),
CConverterType(
"UCS-2LE",
"UTF-8", CCharsetConverter::m_Utf8CharMaxSize)
}
Definition: utils/CharsetConverter.cpp:82
@ SystemCharset
Definition: utils/CharsetConverter.cpp:76
@ SubtitleCharset
Definition: utils/CharsetConverter.cpp:78
@ UserCharset
Definition: utils/CharsetConverter.cpp:77
#define UTF32_CHARSET
Definition: utils/CharsetConverter.cpp:57
#define UTF8_SOURCE
Definition: utils/CharsetConverter.cpp:58
#define WCHAR_CHARSET
Definition: utils/CharsetConverter.cpp:59
The documentation for this class was generated from the following file: