TASN1DecTeletexString Class Reference

#include <asn1dec.h>

class TASN1DecTeletexString
Public Member Functions
TASN1DecTeletexString()
IMPORT_C HBufC *DecodeDERL(const TDesC8 &, TInt &)
IMPORT_C HBufC *DecodeDERL(const TASN1DecGeneric &)
Protected Member Functions
IMPORT_C TIntCheckValid(const TDesC8 &)

Detailed Description

Class used for decoding Teletex strings. The TeletexString type is not fully supported by this library. Instead the decode methods perform a direct conversion from 8 to 16bits by adding null characters in the second byte of each character. This will work as expected for cases where the string contains ASCII data. As this is non-destructive, the original data can be retrieved by performing a Copy to an 8-bit descriptor.

Constructor & Destructor Documentation

TASN1DecTeletexString ( )

IMPORT_CTASN1DecTeletexString()

Member Function Documentation

CheckValid ( const TDesC8 & )

IMPORT_C TIntCheckValid(const TDesC8 &aSource)[protected]

DecodeDERL ( const TDesC8 &, TInt & )

IMPORT_C HBufC *DecodeDERL(const TDesC8 &aSource,
TInt &aPos
)

Decodes an ASN.1 format Teletex string.

ParameterDescription
aSourceASN.1 Teletex string to be decoded.
aPosOffset in aSource from where decoding starts.

Returns: On return, a pointer to a buffer containing the raw data converted to 16bits.

DecodeDERL ( const TASN1DecGeneric & )

IMPORT_C HBufC *DecodeDERL(const TASN1DecGeneric &Source)

Decodes an ASN.1 format Teletex string.

ParameterDescription
SourceASN.1 Teletex string to be decoded.

Returns: On return, a pointer to a buffer containing the raw data converted to 16bits.