PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFXTextEncoding
Class for converting a string from one encoding into another.
#include <SFXTextEncoding.h.hpp>
class SFXTextEncoding;
SFMTYPEDEFCLASS(SFXTextEncoding)

Description

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);

Member

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.

SFXTextEncoding::EUCCNToUTF16BE
Convert Convert EUC-CN to UTF16-BE.
[ public, static ]
SFCError EUCCNToUTF16BE(
    SFXAnsiStringConstRef source   // source string
    SFXWideStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::EUCCNToUTF16LE
Convert EUC-CN into UTF16-LE.
[ public, static ]
SFCError EUCCNToUTF16LE(
    SFXAnsiStringConstRef source   // source string
    SFXWideStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::EUCCNToUTF32BE
Convert EUC-CN into UTF32-BE.
[ public, static ]
SFCError EUCCNToUTF32BE(
    SFXAnsiStringConstRef source   // source string
    SFXBufferPtr destination       //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::EUCCNToUTF32LE
Convert EUC-CN into UTF32-LE.
[ public, static ]
SFCError EUCCNToUTF32LE(
    SFXAnsiStringConstRef source   // source string
    SFXBufferPtr destination       //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::EUCCNToUTF8
Convert EUC-CN into UTF-8.
[ public, static ]
SFCError EUCCNToUTF8(
    SFXAnsiStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::EUCJPToShiftJIS
Convert EUC-JP into Shift_JIS.
[ public, static ]
SFCError EUCJPToShiftJIS(
    SFXAnsiStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::EUCJPToUTF16BE
Convert EUC-JP into UTF16-BE.
[ public, static ]
SFCError EUCJPToUTF16BE(
    SFXAnsiStringConstRef source   // source string
    SFXWideStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::EUCJPToUTF16LE
Convert EUC-JP into UTF16-LE.
[ public, static ]
SFCError EUCJPToUTF16LE(
    SFXAnsiStringConstRef source   // source string
    SFXWideStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::EUCJPToUTF32BE
Convert EUC-JP into UTF32-BE.
[ public, static ]
SFCError EUCJPToUTF32BE(
    SFXAnsiStringConstRef source   // source string
    SFXBufferPtr destination       //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::EUCJPToUTF32LE
Convert EUC-JP into UTF32-LE.
[ public, static ]
SFCError EUCJPToUTF32LE(
    SFXAnsiStringConstRef source   // source string
    SFXBufferPtr destination       //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::EUCJPToUTF8
Convert EUC-JP into UTF-8.
[ public, static ]
SFCError EUCJPToUTF8(
    SFXAnsiStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::ShiftJISToEUCJP
Convert Shift_JIS into EUC-JP.
[ public, static ]
SFCError ShiftJISToEUCJP(
    SFXAnsiStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::ShiftJISToUTF16BE
Convert Shift_JIS into UTF16-BE.
[ public, static ]
SFCError ShiftJISToUTF16BE(
    SFXAnsiStringConstRef source   // source string
    SFXWideStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::ShiftJISToUTF16LE
Convert Shift_JIS into UTF16-LE.
[ public, static ]
SFCError ShiftJISToUTF16LE(
    SFXAnsiStringConstRef source   // source string
    SFXWideStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::ShiftJISToUTF32BE
Convert Shift_JIS into UTF32-BE.
[ public, static ]
SFCError ShiftJISToUTF32BE(
    SFXAnsiStringConstRef source   // source string
    SFXBufferPtr destination       //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::ShiftJISToUTF32LE
Convert Shift_JIS into UTF32-LE.
[ public, static ]
SFCError ShiftJISToUTF32LE(
    SFXAnsiStringConstRef source   // source string
    SFXBufferPtr destination       //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::ShiftJISToUTF8
Convert Shift_JIS into UTF-8.
[ public, static ]
SFCError ShiftJISToUTF8(
    SFXAnsiStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF16BEToEUCCN
Convert UTF16-BE into EUC-CN.
[ public, static ]
SFCError UTF16BEToEUCCN(
    SFXWideStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF16BEToEUCJP
Convert UTF16-BE into EUC-JP.
[ public, static ]
SFCError UTF16BEToEUCJP(
    SFXWideStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF16BEToShiftJIS
Convert UTF16-BE into Shift_JIS.
[ public, static ]
SFCError UTF16BEToShiftJIS(
    SFXWideStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF16BEToUTF32BE
Convert UTF16-BE into UTF32-BE.
[ public, static ]
SFCError UTF16BEToUTF32BE(
    SFXWideStringConstRef source   // source string
    SFXBufferPtr destination       //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF16BEToUTF32LE
Convert UTF16-BE into UTF32-LE.
[ public, static ]
SFCError UTF16BEToUTF32LE(
    SFXWideStringConstRef source   // source string
    SFXBufferPtr destination       //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF16BEToUTF8
Convert UTF16-BE into UTF-8.
[ public, static ]
SFCError UTF16BEToUTF8(
    SFXWideStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF16LEToEUCCN
Convert UTF16-LE into EUC-CN.
[ public, static ]
SFCError UTF16LEToEUCCN(
    SFXWideStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF16LEToEUCJP
Convert UTF16-LE into EUC-JP.
[ public, static ]
SFCError UTF16LEToEUCJP(
    SFXWideStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF16LEToShiftJIS
Convert UTF16-LE into Shift_JIS.
[ public, static ]
SFCError UTF16LEToShiftJIS(
    SFXWideStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF16LEToUTF32BE
Convert UTF16-LE into UTF32-BE.
[ public, static ]
SFCError UTF16LEToUTF32BE(
    SFXWideStringConstRef source   // source string
    SFXBufferPtr destination       //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF16LEToUTF32LE
Convert UTF16-LE into UTF32-LE.
[ public, static ]
SFCError UTF16LEToUTF32LE(
    SFXWideStringConstRef source   // source string
    SFXBufferPtr destination       //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF16LEToUTF8
Convert UTF16-LE into UTF-8.
[ public, static ]
SFCError UTF16LEToUTF8(
    SFXWideStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF32BEToEUCCN
Convert UTF32-BE into EUC-CN.
[ public, static ]
SFCError UTF32BEToEUCCN(
    SFXBufferConstRef source       // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF32BEToEUCJP
Convert UTF32-BE into EUC-JP.
[ public, static ]
SFCError UTF32BEToEUCJP(
    SFXBufferConstRef source       // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF32BEToShiftJIS
Convert UTF32-BE into Shift_JIS.
[ public, static ]
SFCError UTF32BEToShiftJIS(
    SFXBufferConstRef source       // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF32BEToUTF16BE
Convert UTF32-BE into UTF16-BE.
[ public, static ]
SFCError UTF32BEToUTF16BE(
    SFXBufferConstRef source       // source string
    SFXWideStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF32BEToUTF16LE
Convert UTF32-BE into UTF16-LE.
[ public, static ]
SFCError UTF32BEToUTF16LE(
    SFXBufferConstRef source       // source string
    SFXWideStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF32BEToUTF8
Convert UTF32-BE into UTF-8.
[ public, static ]
SFCError UTF32BEToUTF8(
    SFXBufferConstRef source       // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF32LEToEUCCN
Convert UTF32-LE into EUC-CN.
[ public, static ]
SFCError UTF32LEToEUCCN(
    SFXBufferConstRef source       // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF32LEToEUCJP
Convert UTF32-LE into EUC-JP.
[ public, static ]
SFCError UTF32LEToEUCJP(
    SFXBufferConstRef source       // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF32LEToShiftJIS
Convert UTF32-LE into Shift_JIS.
[ public, static ]
SFCError UTF32LEToShiftJIS(
    SFXBufferConstRef source       // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF32LEToUTF16BE
Convert UTF32-LE into UTF16-BE.
[ public, static ]
SFCError UTF32LEToUTF16BE(
    SFXBufferConstRef source       // source string
    SFXWideStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF32LEToUTF16LE
Convert UTF32-LE into UTF16-LE.
[ public, static ]
SFCError UTF32LEToUTF16LE(
    SFXBufferConstRef source       // source string
    SFXWideStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF32LEToUTF8
Convert UTF32-LE into UTF-8.
[ public, static ]
SFCError UTF32LEToUTF8(
    SFXBufferConstRef source       // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF8ToEUCCN
Convert UTF-8 into EUC-CN.
[ public, static ]
SFCError UTF8ToEUCCN(
    SFXAnsiStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF8ToEUCJP
Convert UTF-8 into EUC-JP.
[ public, static ]
SFCError UTF8ToEUCJP(
    SFXAnsiStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF8ToShiftJIS
Convert UTF-8 into Shift_JIS.
[ public, static ]
SFCError UTF8ToShiftJIS(
    SFXAnsiStringConstRef source   // source string
    SFXAnsiStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF8ToUTF16BE
Convert UTF-8 into UTF16-BE.
[ public, static ]
SFCError UTF8ToUTF16BE(
    SFXAnsiStringConstRef source   // source string
    SFXWideStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF8ToUTF16LE
Convert UTF-8 into UTF16-LE.
[ public, static ]
SFCError UTF8ToUTF16LE(
    SFXAnsiStringConstRef source   // source string
    SFXWideStringPtr destination   //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF8ToUTF32BE
Convert UTF-8 into UTF32-BE.
[ public, static ]
SFCError UTF8ToUTF32BE(
    SFXAnsiStringConstRef source   // source string
    SFXBufferPtr destination       //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM

SFXTextEncoding::UTF8ToUTF32LE
Convert UTF-8 into UTF32-LE.
[ public, static ]
SFCError UTF8ToUTF32LE(
    SFXAnsiStringConstRef source   // source string
    SFXBufferPtr destination       //Pointer to the dextination string
);

Return value

  • If succeeds: SFERR_NO_ERROR
  • If insufficient memory: SFERR_NO_MEMOERY
  • If the string specified in the source argument includes an invalid code or the destination argument is null: SFERR_INVALID_PARAM