Location:
Gsmuelem.h
Link against: gsmu.lib
class CSmsAlphabetConverter : public CBase;
Utility to provide piecewise character set conversion to / from unpacked user data elements.
CBase
- Base class for all classes to be instantiated on the heap
CSmsAlphabetConverter
- Utility to provide piecewise character set conversion to / from unpacked user data elements
Defined in CSmsAlphabetConverter
:
Alphabet()
, ConvertFromNativeL()
, ConvertToNativeL()
, ESmsAlphabetWidthConversionFixed
, ESmsAlphabetWidthConversionVariable
, NewLC()
, ResetUnconvertedNativeCharacters()
, ResetUnconvertedUDElements()
, TSmsAlphabetConversionProperties
, TSmsAlphabetWidthConversion
, UnconvertedNativeCharacters()
, UnconvertedUDElements()
, ~CSmsAlphabetConverter()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Capability: | Illegal |
static IMPORT_C CSmsAlphabetConverter *NewLC(CCnvCharacterSetConverter &aCharacterSetConverter, RFs &aFs, TSmsDataCodingScheme::TSmsAlphabet
aSmsAlphabet, TBool aIsBinary);
Allocates and creates a CSmsAlphabetConverter object, specifying an Alphabet Coding scheme and a Binary flag.
|
|
Capability: | Illegal |
IMPORT_C TPtrC8 ConvertFromNativeL(const TDesC &aNativeCharacters);
Converts from the native character set to unpacked user data elements of the desired character set.
The function stores the converted data internally.
|
|
Capability: | Illegal |
IMPORT_C TPtrC ConvertToNativeL(const TDesC8 &aUDElements);
Converts the user data elements of the specified character set to the native character set.
|
|
inline void ResetUnconvertedNativeCharacters();
Resets the unconverted native character buffer.
inline void ResetUnconvertedUDElements();
Resets the unconverted user data elements buffer.
inline TPtrC UnconvertedNativeCharacters();
Gets the unconverted native characters.
|
inline TPtrC8 UnconvertedUDElements();
Gets the unconverted user data elements.
|
inline TSmsDataCodingScheme::TSmsAlphabet Alphabet() const;
Gets the coding scheme alphabet.
|
struct TSmsAlphabetConversionProperties;
Holds the number of user data elements required for conversion from a single native character.
This value is applicable only if the iWidthConversion parameter is ESmsAlphabetWidthConversionFixed.
Defined in CSmsAlphabetConverter::TSmsAlphabetConversionProperties
:
iUDElementsPerNativeCharacter
, iWidthConversion
iWidthConversion
TSmsAlphabetWidthConversion iWidthConversion;
Alphabet width conversion.
iUDElementsPerNativeCharacter
TInt iUDElementsPerNativeCharacter;
Number of user data elements required for conversion from a single native character
TSmsAlphabetWidthConversion
Indicates whether there is a fixed relationship between the number of characters and user data elements.
For example, Unicode characters always map to a single SMS UCS2 character, while a Unicode character might map to one, two
or more SMS 7-bit User
Data Elements (extended 7-bit characters).
|