TCodePageUtils Class Reference
A utility class for Codepage Dll. Controls overflow action. Provides current status of Locale/codepage dll loaded. Provides conversions functions to be used by Codepage Dlls.
Constructor & Destructor Documentation
Member Functions Documentation
CodepageFatUtilityFunctions()
Gets structure to function pointers to the read Codepage conversions functions.
CodepageLoaded()
Returns the type of active codepage.
ConvertFromUnicode(TDes8 &, const TDesC16 &, TOverflowAction)
Convert from Unicode, truncating if there is not enough room in the output.
ConvertFromUnicodeL(TDes8 &, const TDesC16 &, TOverflowAction)
IMPORT_C void | ConvertFromUnicodeL | ( | TDes8 & | aForeign, |
| const TDesC16 & | aUnicode, |
| TOverflowAction | aOverflowAction = EOverflowActionLeave |
| ) | const |
Convert from Unicode, truncating if there is not enough room in the output.
-
leave
- KErrOverflow if aForeign is too short for the output.
ConvertToUnicode(TDes16 &, const TDesC8 &)
ConvertToUnicodeL(TDes16 &, const TDesC8 &, TOverflowAction)
IsCodepageLoaded()
TBool
| IsCodepageLoaded | ( | ) | const |
Returns whether a Codepage dll is loaded.
IsLegalShortNameCharacter(TUint, TBool)
IMPORT_C TBool | IsLegalShortNameCharacter | ( | TUint | aCharacter, |
| TBool | aUseExtendedChars = EFalse |
| ) | const |
Returns true if the input character is legal in a short name.
Parameters
TUint aCharacter | Character, in the foreign character encoding. |
TBool aUseExtendedChars = EFalse | |
LocaleFatUtilityFunctions()
TFatUtilityFunctions * | LocaleFatUtilityFunctions | ( | ) | const |
Gets the function pointer to the read Locale conversions functions.
SetLocaleCodePage(TFatUtilityFunctions *)
void | SetLocaleCodePage | ( | TFatUtilityFunctions * | aFunctions | ) | |
Sets the current codepage to that provided by the current Locale DLL.
Parameters
TFatUtilityFunctions * aFunctions | Pointer to FAT conversion functions to be used. |
Member Enumerations Documentation
Enum TCodepageLoaded
Determines the current status of Locale dll / Codepage dll.
Enumerators
ENone = 0 |
No Locale Dll or Codepage Dll is loaded.
|
ELocaleDll |
Locale Dll is loaded.
|
ECodePageDll |
Codepage Dll is loaded.
|
Enum TOverflowAction
Determines the Overflow action in case of if overflow occurs.
Enumerators
EOverflowActionLeave |
Will leave if an overflow occurs.
|
EOverflowActionTruncate |
Will truncate the data if an overflow occurs.
|
Member Data Documentation
TCodePageFunctions
iCodePageFunctions
Structure to function pointers to the read Codepage conversions functions.
TCodepageLoaded
iCodepageLoaded
Variable to hold the active codepage type.
TFatUtilityFunctions * iLocaleFatUtilityFunctions
TFatUtilityFunctions * | iLocaleFatUtilityFunctions | [private] |
Function pointer to the read Locale conversions functions.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.