Go to the documentation of this file.
39 # define STAR_ENCODING
83 static bool convert(std::vector<uint8_t>
const &src,
Encoding encoding, std::vector<uint32_t> &dest, std::vector<size_t> &srcPositions);
91 static bool read(std::vector<uint8_t>
const &src,
size_t &pos,
Encoding encoding, std::vector<uint32_t> &dest);
static bool read(std::vector< uint8_t > const &src, size_t &pos, Encoding encoding, std::vector< uint32_t > &dest)
try to read a character and add it to string
Definition: StarEncoding.cxx:173
@ E_EUC_KR
Definition: StarEncoding.hxx:65
@ E_ISO_8859_8
Definition: StarEncoding.hxx:57
@ E_BIG5
Definition: StarEncoding.hxx:64
@ E_ISO_8859_10
Definition: StarEncoding.hxx:65
@ E_MS_1258
Definition: StarEncoding.hxx:61
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
@ E_UTF7
Definition: StarEncoding.hxx:65
@ E_EUC_JP
Definition: StarEncoding.hxx:64
@ E_ISO_8859_13
Definition: StarEncoding.hxx:65
@ E_KOI8_U
Definition: StarEncoding.hxx:68
@ E_APPLE_KOREAN
Definition: StarEncoding.hxx:63
@ E_MS_1251
Definition: StarEncoding.hxx:59
@ E_ISO_8859_1
Definition: StarEncoding.hxx:56
the main class to read/.
Definition: StarEncoding.hxx:50
static bool readKoreanBig5(std::vector< uint8_t > const &src, size_t &pos, StarEncoding::Encoding encoding, std::vector< uint32_t > &dest)
try to read a caracter and add it to string: BIG5_HKSCS
Definition: StarEncodingOtherKorean.cxx:56
@ E_UCS2
Definition: StarEncoding.hxx:72
static bool readChinese1(std::vector< uint8_t > const &src, size_t &pos, StarEncoding::Encoding encoding, std::vector< uint32_t > &dest)
try to read a caracter and add it to string: E_GBK, E_GB_2312, E_EUC_CN, E_GBT_12345,...
Definition: StarEncodingChinese.cxx:56
@ E_MS_932
Definition: StarEncoding.hxx:63
StarEncoding()
constructor
Definition: StarEncoding.cxx:53
static bool readKoreanMS1361(std::vector< uint8_t > const &src, size_t &pos, StarEncoding::Encoding encoding, std::vector< uint32_t > &dest)
try to read a caracter and add it to string: MS_1361
Definition: StarEncodingOtherKorean.cxx:1030
@ E_IBM_775
Definition: StarEncoding.hxx:58
@ E_APPLE_JAPANESE
Definition: StarEncoding.hxx:63
@ E_KOI8_R
Definition: StarEncoding.hxx:65
@ E_ISO_8859_7
Definition: StarEncoding.hxx:57
@ E_ISO_8859_15
Definition: StarEncoding.hxx:57
@ E_APPLE_CROATIAN
Definition: StarEncoding.hxx:61
@ E_APPLE_GREEK
Definition: StarEncoding.hxx:61
@ E_IBM_857
Definition: StarEncoding.hxx:58
@ E_APPLE_CYRILLIC
Definition: StarEncoding.hxx:61
@ E_MS_1255
Definition: StarEncoding.hxx:59
static bool readKorean1(std::vector< uint8_t > const &src, size_t &pos, StarEncoding::Encoding encoding, std::vector< uint32_t > &dest)
try to read a caracter and add it to string: E_MS_949, E_EUC_KR, E_APPLE_KOREAN
Definition: StarEncodingKorean.cxx:56
@ E_DONTKNOW
Definition: StarEncoding.hxx:55
@ E_TIS_620
Definition: StarEncoding.hxx:67
@ E_JIS_X_0208
Definition: StarEncoding.hxx:67
@ E_APPLE_ROMAN
Definition: StarEncoding.hxx:55
@ E_APPLE_CHINTRAD
Definition: StarEncoding.hxx:63
@ E_MS_1252
Definition: StarEncoding.hxx:55
@ E_IBM_863
Definition: StarEncoding.hxx:55
@ E_GBK
Definition: StarEncoding.hxx:64
@ E_IBM_850
Definition: StarEncoding.hxx:55
static bool readJapanese208(std::vector< uint8_t > const &src, size_t &pos, StarEncoding::Encoding encoding, std::vector< uint32_t > &dest)
try to read a caracter and add it to string: JIS_X_0208
Definition: StarEncodingJapanese.cxx:1687
@ E_ISO_8859_4
Definition: StarEncoding.hxx:56
static bool convert(std::vector< uint8_t > const &src, Encoding encoding, std::vector< uint32_t > &dest, std::vector< size_t > &srcPositions)
try to convert a list of character and transforms it a unicode's list
Definition: StarEncoding.cxx:61
@ E_IBM_862
Definition: StarEncoding.hxx:58
@ E_ASCII_US
Definition: StarEncoding.hxx:56
@ E_MS_1361
Definition: StarEncoding.hxx:67
@ E_APPLE_CHINSIMP
Definition: StarEncoding.hxx:63
static bool readJapanese212(std::vector< uint8_t > const &src, size_t &pos, StarEncoding::Encoding encoding, std::vector< uint32_t > &dest)
try to read a caracter and add it to string: JIS_X_0212
Definition: StarEncodingJapanese.cxx:3331
@ E_JIS_X_0201
Definition: StarEncoding.hxx:67
@ E_BIG5_HKSCS
Definition: StarEncoding.hxx:67
@ E_MS_1253
Definition: StarEncoding.hxx:59
@ E_IBM_860
Definition: StarEncoding.hxx:55
@ E_APPLE_UKRAINIAN
Definition: StarEncoding.hxx:62
@ E_MS_1250
Definition: StarEncoding.hxx:59
virtual ~StarEncoding()
destructor
Definition: StarEncoding.cxx:57
static bool readJapanese1(std::vector< uint8_t > const &src, size_t &pos, StarEncoding::Encoding encoding, std::vector< uint32_t > &dest)
try to read a caracter and add it to string: MS932, SHIFT_JIS, APPLE_JAPANESE
Definition: StarEncodingJapanese.cxx:56
@ E_SYMBOL
Definition: StarEncoding.hxx:56
static Encoding getEncodingForId(int id)
return an encoding corresponding to an id
Definition: StarEncoding.cxx:73
@ E_IBM_864
Definition: StarEncoding.hxx:58
@ E_IBM_861
Definition: StarEncoding.hxx:55
@ E_UCS4
Definition: StarEncoding.hxx:72
@ E_GBT_12345
Definition: StarEncoding.hxx:64
@ E_EUC_CN
Definition: StarEncoding.hxx:64
@ E_IBM_869
Definition: StarEncoding.hxx:58
@ E_MS_1256
Definition: StarEncoding.hxx:59
static bool readJapaneseEUC(std::vector< uint8_t > const &src, size_t &pos, StarEncoding::Encoding encoding, std::vector< uint32_t > &dest)
try to read a caracter and add it to string: EUC_JP
Definition: StarEncodingJapanese.cxx:1653
@ E_UTF8
Definition: StarEncoding.hxx:65
@ E_ISO_8859_5
Definition: StarEncoding.hxx:57
@ E_IBM_855
Definition: StarEncoding.hxx:58
@ E_MS_1254
Definition: StarEncoding.hxx:59
@ E_MS_950
Definition: StarEncoding.hxx:63
@ E_MS_936
Definition: StarEncoding.hxx:63
@ E_APPLE_CENTEURO
Definition: StarEncoding.hxx:61
@ E_IBM_852
Definition: StarEncoding.hxx:58
@ E_IBM_437
Definition: StarEncoding.hxx:55
@ E_ISO_8859_9
Definition: StarEncoding.hxx:57
@ E_JIS_X_0212
Definition: StarEncoding.hxx:67
@ E_MS_1257
Definition: StarEncoding.hxx:59
@ E_ISO_8859_2
Definition: StarEncoding.hxx:56
@ E_GB_2312
Definition: StarEncoding.hxx:64
@ E_MS_949
Definition: StarEncoding.hxx:63
@ E_ISO_8859_3
Definition: StarEncoding.hxx:56
@ E_APPLE_ICELAND
Definition: StarEncoding.hxx:62
@ E_APPLE_TURKISH
Definition: StarEncoding.hxx:62
@ E_MS_874
Definition: StarEncoding.hxx:59
static bool readChinese1(std::vector< uint8_t > const &src, size_t &pos, StarEncoding::Encoding encoding, std::vector< uint32_t > &dest)
try to read a caracter and add it to string: E_EUC_CNE_BIG5, E_MS_950, E_APPLE_CHINTRAD
Definition: StarEncodingTradChinese.cxx:56
@ E_ISCII_DEVANAGARI
Definition: StarEncoding.hxx:68
@ E_IBM_737
Definition: StarEncoding.hxx:57
Encoding
the different encoding
Definition: StarEncoding.hxx:54
@ E_SHIFT_JIS
Definition: StarEncoding.hxx:64
@ E_IBM_866
Definition: StarEncoding.hxx:58
@ E_ISO_8859_6
Definition: StarEncoding.hxx:57
@ E_APPLE_ROMANIAN
Definition: StarEncoding.hxx:62
@ E_IBM_865
Definition: StarEncoding.hxx:56
@ E_ISO_8859_14
Definition: StarEncoding.hxx:57
Generated on Sun Apr 5 2020 00:00:00 for libstaroffice by
doxygen 1.8.17