Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: 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:
operator &(), operator const TDesC &(), operator const __TRefDesC(), operator()()


Member functions


operator &()

inline const TDesC *operator &() const;

Description

Returns a const TDesC type pointer.

Return value

const TDesC *

A descriptor type pointer to this literal.


operator const TDesC &()

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()()

inline const TDesC &operator()() const;

Description

Returns a const TDesC type reference.

Return value

const TDesC &

A descriptor type reference to this literal


operator const __TRefDesC()

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

See also: