Location:
convplug.h
TInt ConvertToUnicode(CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, TDes16& aUnicode, const TDesC8& aForeign, TInt& aState, TInt& aNumberOfUnconvertibleCharacters, TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter);
Supported from 6.0
A function prototype which must be implemented by a character
conversion plug-in DLL to convert from a foreign character set into Unicode. This function is exported at ordinal position 3 in the plug-in DLL. It is
called by CCnvCharacterSetConverter::ConvertToUnicode().
For many non-complex character sets, the implementation of this
function is trivial. Include convgeneratedcpp.h in the .cpp file to get access
to the SCnvConversionData object called
conversionData. Then call
CCnvCharacterSetConverter::DoConvertToUnicode() specifying
conversionData as the first argument and passing in all other
parameters unchanged.
For complex character sets, you need to create an array of
character conversion methods (CnvUtilities::SMethods or
CnvUtilities::SStates, depending on whether the complex character
set encoding is modal or not), then call
CnvUtilities::ConvertToUnicodeFromHeterogeneousForeign() or
CnvUtilities::ConvertToUnicodeFromModalForeign().
|
|