![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Section Contents
Not applicable
e32des8.h
euser.lib
A TLitC8<TInt S> object contains literal text. Such an object is normally constructed by coding an _LIT8 macro.
This class is build independent; i.e. an explicit 8 bit build variant is generated for both a non-Unicode and a Unicode build.
The class has no explicit constructors. See the _LIT8 macro definition.
operator const TDesC8& () const;
This conversion operator is invoked by the compiler when a TLitC8<TInt S> type is passed to a function which is prototyped to take a const TDesC8& type.
operator const TRefByValue<const TDesC8>() const;
This conversion operator is invoked by the compiler when a TLitC8<TInt S> type is passed to a function which is prototyped to take a const TRefByValue<const TDesC8> type.
const TDesC8* operator&();
Use this operator to return a const TDesC8 type pointer
const TDesC8* |
A descriptor type pointer to this literal. |
The following code fragment shows the operator in use:
class CX... { void Foo(const TDesC8* aDesC); }; ... _LIT8(KLiteral,"some text"); ... CX* anx; ... anx->Foo(&KLiteral); ...
const TDesC8& operator()();
Use this operator to return a const TDesC8 type reference.
const TDesC8& |
A descriptor type reference to this literal |
The following code fragment shows the operator in use:
_LIT8(KKeywordSelect,"select"); if (KKeywordSelect().CompareF(token)<0) ...
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |