ACE 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ACE_Wide_To_Ascii Class Reference

A lightweight wchar* to char* string conversion class. More...

#include <ace_wchar.h>

Public Member Functions

 ACE_Wide_To_Ascii (const wchar_t *s)
 Constructor must take a wchar string.
 
 ~ACE_Wide_To_Ascii ()
 Destructor will free up the memory.
 
charchar_rep ()
 Return the internal char* representation.
 

Static Public Member Functions

static charconvert (const wchar_t *wstr)
 Converts an wchar_t string to ascii and returns a new string.
 

Private Member Functions

 ACE_Wide_To_Ascii ()
 Disallow these operation.
 
 ACE_Wide_To_Ascii (ACE_Wide_To_Ascii &)
 
ACE_Wide_To_Asciioperator= (ACE_Wide_To_Ascii &)
 

Private Attributes

chars_
 Internal pointer to the converted string.
 

Detailed Description

A lightweight wchar* to char* string conversion class.

The purpose of this class is to perform conversion from wchar* to char* strings. It is not intended for general purpose use.

Constructor & Destructor Documentation

◆ ACE_Wide_To_Ascii() [1/3]

ACE_Wide_To_Ascii::ACE_Wide_To_Ascii ( const wchar_t * s)
inline

Constructor must take a wchar string.

◆ ~ACE_Wide_To_Ascii()

ACE_Wide_To_Ascii::~ACE_Wide_To_Ascii ( )
inline

Destructor will free up the memory.

◆ ACE_Wide_To_Ascii() [2/3]

ACE_Wide_To_Ascii::ACE_Wide_To_Ascii ( )
private

Disallow these operation.

◆ ACE_Wide_To_Ascii() [3/3]

ACE_Wide_To_Ascii::ACE_Wide_To_Ascii ( ACE_Wide_To_Ascii & )
private

Member Function Documentation

◆ char_rep()

char * ACE_Wide_To_Ascii::char_rep ( )
inline

Return the internal char* representation.

◆ convert()

char * ACE_Wide_To_Ascii::convert ( const wchar_t * wstr)
inlinestatic

Converts an wchar_t string to ascii and returns a new string.

◆ operator=()

ACE_Wide_To_Ascii & ACE_Wide_To_Ascii::operator= ( ACE_Wide_To_Ascii & )
private

Member Data Documentation

◆ s_

char* ACE_Wide_To_Ascii::s_
private

Internal pointer to the converted string.


The documentation for this class was generated from the following files: