Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

charutil.h File Reference

Character set conversion utilities for PuTTY Symbian OS port. More...

Go to the source code of this file.

Functions

void StringToDes (const char *aStr, TDes &aTarget)
 Converts a null-terminated C string to a descriptor.

TPtr * CreateDes (const char *aStr)
 Creates a new descriptor from a string.

void DeleteDes (TPtr *aDes)
 Deletes a descriptor created with CreateDes().

void DesToString (const TDesC &aDes, char *aTarget)
 Converts a descriptor into a C string.


Detailed Description

Character set conversion utilities for PuTTY Symbian OS port.

Copyright 2002 Petteri Kangaslampi

See license.txt for full copyright and license information.


Function Documentation

TPtr* CreateDes const char *    aStr
 

Creates a new descriptor from a string.

The descriptor is allocated from the PuTTY heap, and should be deallocated using DeleteDes(). The descriptor is valid until it is deallocated or the PuTTY heap is destroyed. FIXME: Currently does not really work for other charsets than US-ASCII.

Parameters:
aStr  The string to convert
Returns:
A new descriptor, built from the input string
See also:
DeleteDes

void DeleteDes TPtr *    aDes
 

Deletes a descriptor created with CreateDes().

Parameters:
aDes  The descriptor to delete. The descriptor is no longer valid.
See also:
CreateDes

void DesToString const TDesC &    aDes,
char *    aTarget
 

Converts a descriptor into a C string.

FIXME: Currently does not really work for other charsets than US-ASCII.

Parameters:
aDes  The descriptor to convert
aTarget  The target string. The string needs to be pre-allocated to the correct size.

void StringToDes const char *    aStr,
TDes &    aTarget
 

Converts a null-terminated C string to a descriptor.

FIXME: Currently does not really work for other charsets than US-ASCII.

Parameters:
aStr  The string to convert
aTarget  The target descriptor. The descriptor needs to be pre-allocated.
See also:
CreateDes


Generated on Sun Feb 9 13:01:29 2003 for PuTTY by doxygen1.2.18