CResourceLoader Class Reference
class CResourceLoader : public CBase
|
Library to handle resource loading when CCoeEnv is not available.
Nested Classes and Structures
Private Member Functions
|
|
CResourceLoader
()
|
void
|
ConstructL
(const
TDesC
&)
|
TBidiText::TDirectionality
|
DirectionalityL
(const
TDesC
&,
TBool
*)
|
HBufC
*
|
FormatStringL
(const
TDesC
&, const
TDesC
&, const
TDesC
&,
TBidiText::TDirectionality
)
|
HBufC
*
|
FormatStringL
(const
TDesC
&, const
TDesC
&, const
TDesC
&,
TBidiText::TDirectionality
,
TInt
&,
TInt
)
|
TInt
|
Formater
(
TDes
&, const
TDesC
&, const
TDesC
&, const
TDesC
&,
TBidiText::TDirectionality
)
|
TInt
|
GetParamCount
(const
TDesC
&,
TInt
)
|
TInt
|
GetSubStringCount
(const
TDesC
&)
|
void
|
RemoveNoDirMarkers
(
TDes
&)
|
TBidiText::TDirectionality
|
ResolveDirectionality
(
TDes
&,
TBool
*)
|
HBufC
*
|
ResolveSubStringDirsL
(
TDes
&,
TInt
,
TBool
*)
|
HBufC
*
|
ResolveSubStringL
(
TDes
&,
TBool
*)
|
Constructor & Destructor Documentation
CResourceLoader()
CResourceLoader
|
(
|
)
|
[private]
|
~CResourceLoader()
~CResourceLoader
|
(
|
)
|
[virtual]
|
Member Functions Documentation
ConstructL(const TDesC &)
void
|
ConstructL
|
(
|
const
TDesC
&
|
aName
|
)
|
[private]
|
Parameters
const
TDesC
& aName
|
a HTML macro, e.g. lt
|
CreateResourceReaderLC(TResourceReader &, TInt)
DirectionalityL(const TDesC &, TBool *)
FormatStringL(const TDesC &, const TDesC &, const TDesC &, TBidiText::TDirectionality)
Finds the keystring from the source string and replaces it with the replacement string.
FormatStringL(const TDesC &, const TDesC &, const TDesC &, TBidiText::TDirectionality, TInt &, TInt)
Finds the keystring from the source string and replaces it with the replacement string.
Formater(TDes &, const TDesC &, const TDesC &, const TDesC &, TBidiText::TDirectionality)
Finds the keystring from the source string and replaces it with the replacement string. The formated string is stored in the destination descriptor.
GetParamCount(const TDesC &, TInt)
TInt
|
GetParamCount
|
(
|
const
TDesC
&
|
aText,
|
|
TInt
|
aIndex = -1
|
|
)
|
[private]
|
Counts the number of parameters in the text. Needed for correct memory allocations.
GetSubStringCount(const TDesC &)
TInt
|
GetSubStringCount
|
(
|
const
TDesC
&
|
aText
|
)
|
[private]
|
Counts the number of substrings (separated by KSubStringSeparators) in the text. Needed for correct memory allocations.
Load2L(TInt)
Parameters
TInt
aResourceId
|
a resource key of a resource defined as TBUF
|
Load2L(TInt, const TDesC &)
Parameters
TInt
aResourceId
|
a resource key of a resource defined as TBUF
|
const
TDesC
& aString
|
a string value used as parameter in formatting
|
Load2L(TInt, TInt)
Parameters
TInt
aResourceId
|
a resource key of a resource defined as TBUF
|
TInt
aInt
|
a number to be inserted into the string
|
Load2LC(TInt)
IMPORT_C
HBufC
*
|
Load2LC
|
(
|
TInt
|
aResourceId
|
)
|
|
Parameters
TInt
aResourceId
|
a resource key of a resource defined as TBUF
|
Load2LC(TInt, const TDesC &)
Parameters
TInt
aResourceId
|
a resource key of a resource defined as TBUF
|
const
TDesC
& aString
|
a string value used as parameter in formatting
|
Load2LC(TInt, TInt)
Parameters
TInt
aResourceId
|
a resource key of a resource defined as TBUF
|
TInt
aInt
|
a number to be inserted into the string
|
LoadLC(TInt)
Parameters
TInt
aResourceId
|
a resource key of a resource defined as LBUF
|
NewL(const TDesC &)
Parameters
const
TDesC
& aName
|
a resource name
|
RemoveNoDirMarkers(TDes &)
void
|
RemoveNoDirMarkers
|
(
|
TDes
&
|
aText
|
)
|
[private]
|
Removes no dir markers from source text.
ResolveDirectionality(TDes &, TBool *)
Resolves directionality of the given source text. Place-holder strings are removed so that they don't affect the result.
ResolveSubStringDirsL(TDes &, TInt, TBool *)
ResolveSubStringL(TDes &, TBool *)
Resolves sub string and directionality of the sub string. Adds no dir marker if directionality of the string not found.
Member Data Documentation
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.