Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <e32cmn.h>

Class TLitC

class TLitC;

Description

Encapsulates literal text.

This is always constructed using an _LIT macro.

This class is build independent; i.e. for a non-Unicode build, an 8-bit build variant is generated; for a Unicode build, a 16 bit build variant is generated.

The class has no explicit constructors. See the _LIT macro definition.

Members

Defined in TLitC:


Member functions


operator &()const

inline const TDesC* operator &() const;

Description

Returns a const TDesC type pointer.

Return value

const TDesC16 *

A descriptor type pointer to this literal.


operator const TDesC &()const

inline operator const TDesC &() const;

Description

Invoked by the compiler when a TLitC<TInt> type is passed to a function which is prototyped to take a const TDesC& type.

Return value


operator()()const

inline const TDesC& operator()() const;

Description

Returns a const TDesC type reference.

Return value

const TDesC16 &

A descriptor type reference to this literal


operator const __TRefDesC()const

inline operator const __TRefDesC() const;

Description

Invoked by the compiler when a TLitC<TInt> type is passed to a function which is prototyped to take a const TRefByValue<const TDesC> type.

Return value