Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CharsetConverter.cpp File Reference
#include "CharsetConverter.h"
#include "LangInfo.h"
#include "guilib/LocalizeStrings.h"
#include "log.h"
#include "settings/Settings.h"
#include "settings/lib/Setting.h"
#include "settings/lib/SettingDefinitions.h"
#include "utils/StringUtils.h"
#include "utils/Utf8Utils.h"
#include <algorithm>
#include <mutex>
#include <fribidi.h>
#include <iconv.h>

Classes

class  CConverterType
 
class  CCharsetConverter::CInnerConverter
 
struct  charPtrPtrAdapter
 
struct  SCharsetMapping
 

Macros

#define ENDIAN_SUFFIX   "LE"
 
#define UTF16_CHARSET   "UTF-16" ENDIAN_SUFFIX
 
#define UTF32_CHARSET   "UTF-32" ENDIAN_SUFFIX
 
#define UTF8_SOURCE   "UTF-8"
 
#define WCHAR_CHARSET   "WCHAR_T"
 
#define NO_ICONV   ((iconv_t)-1)
 

Enumerations

enum  SpecialCharset { NotSpecialCharset = 0 , SystemCharset , UserCharset , SubtitleCharset }
 
enum  StdConversionType {
  NoConversion = -1 , Utf8ToUtf32 = 0 , Utf32ToUtf8 , Utf32ToW ,
  WToUtf32 , SubtitleCharsetToUtf8 , Utf8ToUserCharset , UserCharsetToUtf8 ,
  Utf32ToUserCharset , WtoUtf8 , Utf16LEtoW , Utf16BEtoUtf8 ,
  Utf16LEtoUtf8 , Utf8toW , Utf8ToSystem , SystemToUtf8 ,
  Ucs2CharsetToUtf8 , MacintoshToUtf8 , NumberOfStdConversionTypes
}
 

Macro Definition Documentation

◆ ENDIAN_SUFFIX

#define ENDIAN_SUFFIX   "LE"

◆ NO_ICONV

#define NO_ICONV   ((iconv_t)-1)

◆ UTF16_CHARSET

#define UTF16_CHARSET   "UTF-16" ENDIAN_SUFFIX

◆ UTF32_CHARSET

#define UTF32_CHARSET   "UTF-32" ENDIAN_SUFFIX

◆ UTF8_SOURCE

#define UTF8_SOURCE   "UTF-8"

◆ WCHAR_CHARSET

#define WCHAR_CHARSET   "WCHAR_T"

Enumeration Type Documentation

◆ SpecialCharset

Enumerator
NotSpecialCharset 
SystemCharset 
UserCharset 
SubtitleCharset 

◆ StdConversionType

Enumerator
NoConversion 
Utf8ToUtf32 
Utf32ToUtf8 
Utf32ToW 
WToUtf32 
SubtitleCharsetToUtf8 
Utf8ToUserCharset 
UserCharsetToUtf8 
Utf32ToUserCharset 
WtoUtf8 
Utf16LEtoW 
Utf16BEtoUtf8 
Utf16LEtoUtf8 
Utf8toW 
Utf8ToSystem 
SystemToUtf8 
Ucs2CharsetToUtf8 
MacintoshToUtf8 
NumberOfStdConversionTypes