Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CCharsetConverter::CInnerConverter Class Reference

Static Public Member Functions

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)
 

Static Public Attributes

static CConverterType m_stdConversion [NumberOfStdConversionTypes]
 
static CCriticalSection m_critSectionFriBiDi
 

Member Function Documentation

◆ 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

Member Data Documentation

◆ m_critSectionFriBiDi

CCriticalSection CCharsetConverter::CInnerConverter::m_critSectionFriBiDi
static

◆ m_stdConversion

CConverterType CCharsetConverter::CInnerConverter::m_stdConversion
static
Initial value:
=
{
CConverterType(UTF32_CHARSET, "UTF-8", CCharsetConverter::m_Utf8CharMaxSize),
CConverterType(SubtitleCharset, "UTF-8", CCharsetConverter::m_Utf8CharMaxSize),
CConverterType(UserCharset, "UTF-8", CCharsetConverter::m_Utf8CharMaxSize),
CConverterType(WCHAR_CHARSET, "UTF-8", CCharsetConverter::m_Utf8CharMaxSize),
CConverterType("UTF-16BE", "UTF-8", CCharsetConverter::m_Utf8CharMaxSize),
CConverterType("UTF-16LE", "UTF-8", CCharsetConverter::m_Utf8CharMaxSize),
CConverterType("UCS-2LE", "UTF-8", CCharsetConverter::m_Utf8CharMaxSize),
CConverterType("macintosh", "UTF-8", CCharsetConverter::m_Utf8CharMaxSize)
}
Definition utils/CharsetConverter.cpp:83
@ SystemCharset
Definition utils/CharsetConverter.cpp:77
@ SubtitleCharset
Definition utils/CharsetConverter.cpp:79
@ UserCharset
Definition utils/CharsetConverter.cpp:78
#define UTF32_CHARSET
Definition utils/CharsetConverter.cpp:58
#define UTF8_SOURCE
Definition utils/CharsetConverter.cpp:59
#define WCHAR_CHARSET
Definition utils/CharsetConverter.cpp:60

The documentation for this class was generated from the following file: