TASN1DecTeletexString Class Reference

class TASN1DecTeletexString

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.

Public Member Functions
TASN1DecTeletexString ()
IMPORT_C HBufC * DecodeDERL (const TDesC8 &, TInt &)
IMPORT_C HBufC * DecodeDERL (const TASN1DecGeneric &)
Protected Member Functions
IMPORT_C TInt CheckValid (const TDesC8 &)
Private Member Functions
HBufC * DecodeContentsL (const TDesC8 &)

Constructor & Destructor Documentation

TASN1DecTeletexString()

IMPORT_C TASN1DecTeletexString ( )

Member Functions Documentation

CheckValid(const TDesC8 &)

IMPORT_C TInt CheckValid ( const TDesC8 & aSource ) [protected]

Parameters

const TDesC8 & aSource

DecodeContentsL(const TDesC8 &)

HBufC * DecodeContentsL ( const TDesC8 & aSource ) [private]

Parameters

const TDesC8 & aSource

DecodeDERL(const TDesC8 &, TInt &)

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

Decodes an ASN.1 format Teletex string.

Parameters

const TDesC8 & aSource ASN.1 Teletex string to be decoded.
TInt & aPos Offset in aSource from where decoding starts.

DecodeDERL(const TASN1DecGeneric &)

IMPORT_C HBufC * DecodeDERL ( const TASN1DecGeneric & Source )

Decodes an ASN.1 format Teletex string.

Parameters

const TASN1DecGeneric & Source ASN.1 Teletex string to be decoded.