SophiaFramework UNIVERSE 5.3 |
#include <SFXTextEncoding.h.hpp>
class SFXTextEncoding;
SFMTYPEDEFCLASS(SFXTextEncoding)
The SFXTextEncoding class has the static functions for character encoding conversion.
The pssible converting is as below:
Source: Destination | UTF-8 | UTF-16BE | UTF-16LE | UTF-32BE | UTF-32LE | Shift_JIS | EUC-JP | EUC-CN |
UTF-8 | O | O | O | O | O | O | O | |
UTF-16BE | O | X | O | O | O | O | O | |
UTF-16LE | O | X | O | O | O | O | O | |
UTF-32BE | O | O | O | X | O | O | O | |
UTF-32LE | O | O | O | X | O | O | O | |
Shift_JIS | O | O | O | O | O | O | X | |
EUC-JP | O | O | O | O | O | O | X | |
EUC-CN | O | O | O | O | O | X | X |
How to Use a Function
SFXAnsiString srcString("String"); // source string SFXAnsiString destString; // destination string SFCError error; // error value error = ShiftJISToUTF8(srcString, &destString);
Public Functions | |
---|---|
static SFCError |
EUCCNToUTF16BE(
SFXAnsiStringConstRef source
, SFXWideStringPtr destination
) Convert Convert EUC-CN to UTF16-BE.
|
static SFCError |
EUCCNToUTF16LE(
SFXAnsiStringConstRef source
, SFXWideStringPtr destination
) Convert EUC-CN into UTF16-LE.
|
static SFCError |
EUCCNToUTF32BE(
SFXAnsiStringConstRef source
, SFXBufferPtr destination
) Convert EUC-CN into UTF32-BE.
|
static SFCError |
EUCCNToUTF32LE(
SFXAnsiStringConstRef source
, SFXBufferPtr destination
) Convert EUC-CN into UTF32-LE.
|
static SFCError |
EUCCNToUTF8(
SFXAnsiStringConstRef source
, SFXAnsiStringPtr destination
) Convert EUC-CN into UTF-8.
|
static SFCError |
EUCJPToShiftJIS(
SFXAnsiStringConstRef source
, SFXAnsiStringPtr destination
) Convert EUC-JP into Shift_JIS.
|
static SFCError |
EUCJPToUTF16BE(
SFXAnsiStringConstRef source
, SFXWideStringPtr destination
) Convert EUC-JP into UTF16-BE.
|
static SFCError |
EUCJPToUTF16LE(
SFXAnsiStringConstRef source
, SFXWideStringPtr destination
) Convert EUC-JP into UTF16-LE.
|
static SFCError |
EUCJPToUTF32BE(
SFXAnsiStringConstRef source
, SFXBufferPtr destination
) Convert EUC-JP into UTF32-BE.
|
static SFCError |
EUCJPToUTF32LE(
SFXAnsiStringConstRef source
, SFXBufferPtr destination
) Convert EUC-JP into UTF32-LE.
|
static SFCError |
EUCJPToUTF8(
SFXAnsiStringConstRef source
, SFXAnsiStringPtr destination
) Convert EUC-JP into UTF-8.
|
static SFCError |
ShiftJISToEUCJP(
SFXAnsiStringConstRef source
, SFXAnsiStringPtr destination
) Convert Shift_JIS into EUC-JP.
|
static SFCError |
ShiftJISToUTF16BE(
SFXAnsiStringConstRef source
, SFXWideStringPtr destination
) Convert Shift_JIS into UTF16-BE.
|
static SFCError |
ShiftJISToUTF16LE(
SFXAnsiStringConstRef source
, SFXWideStringPtr destination
) Convert Shift_JIS into UTF16-LE.
|
static SFCError |
ShiftJISToUTF32BE(
SFXAnsiStringConstRef source
, SFXBufferPtr destination
) Convert Shift_JIS into UTF32-BE.
|
static SFCError |
ShiftJISToUTF32LE(
SFXAnsiStringConstRef source
, SFXBufferPtr destination
) Convert Shift_JIS into UTF32-LE.
|
static SFCError |
ShiftJISToUTF8(
SFXAnsiStringConstRef source
, SFXAnsiStringPtr destination
) Convert Shift_JIS into UTF-8.
|
static SFCError |
UTF16BEToEUCCN(
SFXWideStringConstRef source
, SFXAnsiStringPtr destination
) Convert UTF16-BE into EUC-CN.
|
static SFCError |
UTF16BEToEUCJP(
SFXWideStringConstRef source
, SFXAnsiStringPtr destination
) Convert UTF16-BE into EUC-JP.
|
static SFCError |
UTF16BEToShiftJIS(
SFXWideStringConstRef source
, SFXAnsiStringPtr destination
) Convert UTF16-BE into Shift_JIS.
|
static SFCError |
UTF16BEToUTF32BE(
SFXWideStringConstRef source
, SFXBufferPtr destination
) Convert UTF16-BE into UTF32-BE.
|
static SFCError |
UTF16BEToUTF32LE(
SFXWideStringConstRef source
, SFXBufferPtr destination
) Convert UTF16-BE into UTF32-LE.
|
static SFCError |
UTF16BEToUTF8(
SFXWideStringConstRef source
, SFXAnsiStringPtr destination
) Convert UTF16-BE into UTF-8.
|
static SFCError |
UTF16LEToEUCCN(
SFXWideStringConstRef source
, SFXAnsiStringPtr destination
) Convert UTF16-LE into EUC-CN.
|
static SFCError |
UTF16LEToEUCJP(
SFXWideStringConstRef source
, SFXAnsiStringPtr destination
) Convert UTF16-LE into EUC-JP.
|
static SFCError |
UTF16LEToShiftJIS(
SFXWideStringConstRef source
, SFXAnsiStringPtr destination
) Convert UTF16-LE into Shift_JIS.
|
static SFCError |
UTF16LEToUTF32BE(
SFXWideStringConstRef source
, SFXBufferPtr destination
) Convert UTF16-LE into UTF32-BE.
|
static SFCError |
UTF16LEToUTF32LE(
SFXWideStringConstRef source
, SFXBufferPtr destination
) Convert UTF16-LE into UTF32-LE.
|
static SFCError |
UTF16LEToUTF8(
SFXWideStringConstRef source
, SFXAnsiStringPtr destination
) Convert UTF16-LE into UTF-8.
|
static SFCError |
UTF32BEToEUCCN(
SFXBufferConstRef source
, SFXAnsiStringPtr destination
) Convert UTF32-BE into EUC-CN.
|
static SFCError |
UTF32BEToEUCJP(
SFXBufferConstRef source
, SFXAnsiStringPtr destination
) Convert UTF32-BE into EUC-JP.
|
static SFCError |
UTF32BEToShiftJIS(
SFXBufferConstRef source
, SFXAnsiStringPtr destination
) Convert UTF32-BE into Shift_JIS.
|
static SFCError |
UTF32BEToUTF16BE(
SFXBufferConstRef source
, SFXWideStringPtr destination
) Convert UTF32-BE into UTF16-BE.
|
static SFCError |
UTF32BEToUTF16LE(
SFXBufferConstRef source
, SFXWideStringPtr destination
) Convert UTF32-BE into UTF16-LE.
|
static SFCError |
UTF32BEToUTF8(
SFXBufferConstRef source
, SFXAnsiStringPtr destination
) Convert UTF32-BE into UTF-8.
|
static SFCError |
UTF32LEToEUCCN(
SFXBufferConstRef source
, SFXAnsiStringPtr destination
) Convert UTF32-LE into EUC-CN.
|
static SFCError |
UTF32LEToEUCJP(
SFXBufferConstRef source
, SFXAnsiStringPtr destination
) Convert UTF32-LE into EUC-JP.
|
static SFCError |
UTF32LEToShiftJIS(
SFXBufferConstRef source
, SFXAnsiStringPtr destination
) Convert UTF32-LE into Shift_JIS.
|
static SFCError |
UTF32LEToUTF16BE(
SFXBufferConstRef source
, SFXWideStringPtr destination
) Convert UTF32-LE into UTF16-BE.
|
static SFCError |
UTF32LEToUTF16LE(
SFXBufferConstRef source
, SFXWideStringPtr destination
) Convert UTF32-LE into UTF16-LE.
|
static SFCError |
UTF32LEToUTF8(
SFXBufferConstRef source
, SFXAnsiStringPtr destination
) Convert UTF32-LE into UTF-8.
|
static SFCError |
UTF8ToEUCCN(
SFXAnsiStringConstRef source
, SFXAnsiStringPtr destination
) Convert UTF-8 into EUC-CN.
|
static SFCError |
UTF8ToEUCJP(
SFXAnsiStringConstRef source
, SFXAnsiStringPtr destination
) Convert UTF-8 into EUC-JP.
|
static SFCError |
UTF8ToShiftJIS(
SFXAnsiStringConstRef source
, SFXAnsiStringPtr destination
) Convert UTF-8 into Shift_JIS.
|
static SFCError |
UTF8ToUTF16BE(
SFXAnsiStringConstRef source
, SFXWideStringPtr destination
) Convert UTF-8 into UTF16-BE.
|
static SFCError |
UTF8ToUTF16LE(
SFXAnsiStringConstRef source
, SFXWideStringPtr destination
) Convert UTF-8 into UTF16-LE.
|
static SFCError |
UTF8ToUTF32BE(
SFXAnsiStringConstRef source
, SFXBufferPtr destination
) Convert UTF-8 into UTF32-BE.
|
static SFCError |
UTF8ToUTF32LE(
SFXAnsiStringConstRef source
, SFXBufferPtr destination
) Convert UTF-8 into UTF32-LE.
|
[ public, static ] SFCError EUCCNToUTF16BE( SFXAnsiStringConstRef source // source string SFXWideStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError EUCCNToUTF16LE( SFXAnsiStringConstRef source // source string SFXWideStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError EUCCNToUTF32BE( SFXAnsiStringConstRef source // source string SFXBufferPtr destination //Pointer to the dextination string );
[ public, static ] SFCError EUCCNToUTF32LE( SFXAnsiStringConstRef source // source string SFXBufferPtr destination //Pointer to the dextination string );
[ public, static ] SFCError EUCCNToUTF8( SFXAnsiStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError EUCJPToShiftJIS( SFXAnsiStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError EUCJPToUTF16BE( SFXAnsiStringConstRef source // source string SFXWideStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError EUCJPToUTF16LE( SFXAnsiStringConstRef source // source string SFXWideStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError EUCJPToUTF32BE( SFXAnsiStringConstRef source // source string SFXBufferPtr destination //Pointer to the dextination string );
[ public, static ] SFCError EUCJPToUTF32LE( SFXAnsiStringConstRef source // source string SFXBufferPtr destination //Pointer to the dextination string );
[ public, static ] SFCError EUCJPToUTF8( SFXAnsiStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError ShiftJISToEUCJP( SFXAnsiStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError ShiftJISToUTF16BE( SFXAnsiStringConstRef source // source string SFXWideStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError ShiftJISToUTF16LE( SFXAnsiStringConstRef source // source string SFXWideStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError ShiftJISToUTF32BE( SFXAnsiStringConstRef source // source string SFXBufferPtr destination //Pointer to the dextination string );
[ public, static ] SFCError ShiftJISToUTF32LE( SFXAnsiStringConstRef source // source string SFXBufferPtr destination //Pointer to the dextination string );
[ public, static ] SFCError ShiftJISToUTF8( SFXAnsiStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF16BEToEUCCN( SFXWideStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF16BEToEUCJP( SFXWideStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF16BEToShiftJIS( SFXWideStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF16BEToUTF32BE( SFXWideStringConstRef source // source string SFXBufferPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF16BEToUTF32LE( SFXWideStringConstRef source // source string SFXBufferPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF16BEToUTF8( SFXWideStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF16LEToEUCCN( SFXWideStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF16LEToEUCJP( SFXWideStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF16LEToShiftJIS( SFXWideStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF16LEToUTF32BE( SFXWideStringConstRef source // source string SFXBufferPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF16LEToUTF32LE( SFXWideStringConstRef source // source string SFXBufferPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF16LEToUTF8( SFXWideStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF32BEToEUCCN( SFXBufferConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF32BEToEUCJP( SFXBufferConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF32BEToShiftJIS( SFXBufferConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF32BEToUTF16BE( SFXBufferConstRef source // source string SFXWideStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF32BEToUTF16LE( SFXBufferConstRef source // source string SFXWideStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF32BEToUTF8( SFXBufferConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF32LEToEUCCN( SFXBufferConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF32LEToEUCJP( SFXBufferConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF32LEToShiftJIS( SFXBufferConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF32LEToUTF16BE( SFXBufferConstRef source // source string SFXWideStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF32LEToUTF16LE( SFXBufferConstRef source // source string SFXWideStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF32LEToUTF8( SFXBufferConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF8ToEUCCN( SFXAnsiStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF8ToEUCJP( SFXAnsiStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF8ToShiftJIS( SFXAnsiStringConstRef source // source string SFXAnsiStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF8ToUTF16BE( SFXAnsiStringConstRef source // source string SFXWideStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF8ToUTF16LE( SFXAnsiStringConstRef source // source string SFXWideStringPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF8ToUTF32BE( SFXAnsiStringConstRef source // source string SFXBufferPtr destination //Pointer to the dextination string );
[ public, static ] SFCError UTF8ToUTF32LE( SFXAnsiStringConstRef source // source string SFXBufferPtr destination //Pointer to the dextination string );
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |