Location:
convplug.h
TInt ConvertFromUnicode(CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters, const TDesC8& aReplacementForUnconvertibleUnicodeCharacters, TDes8& aForeign, const TDesC16& aUnicode, CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters);
Supported from 6.0
A function prototype which must be implemented by a character
conversion plug-in DLL to convert from Unicode into a foreign character set.
This function is exported at ordinal position 2 in the plug-in DLL.
It is called by
CCnvCharacterSetConverter::ConvertFromUnicode()
.
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::DoConvertFromUnicode()
specifying
conversionData
as the first argument and passing in all parameters
unchanged.
For complex character sets, you need to create an array of
character conversion data objects (CnvUtilities::SCharacterSet
s),
then call CnvUtilities::ConvertFromUnicode()
.
|
|