---
name: "ACE_OS_WString"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_OS_WString"
---

# ACE\_OS\_WString(3)

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

## NAME

ACE\_OS\_WString -  A lightweight wchar\* to char\* string conversion class.

## SYNOPSIS

```
#include <ace/OS.h>
class ACE_OS_WString
{
  public:
    ACE_OS_WString (const ACE_USHORT16 *s);
    ~ACE_OS_WString (void);
    char *char_rep (void);
  private:
    char *rep_;
    ACE_OS_WString (void);
    ACE_OS_WString (ACE_OS_WString &);
    ACE_OS_WString& operator= (ACE_OS_WString &);
};
```

## DESCRIPTION

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

## PUBLIC MEMBERS

```
ACE_OS_WString (const ACE_USHORT16 *s);
```

Ctor must take a wchar stirng.

```
~ACE_OS_WString (void);
```

Dtor will free up the memory.

```
char *char_rep (void);
```

Return the internal char\* representation.

## PRIVATE MEMBERS

```
char *rep_;
```

Internal pointer to the converted string.

```
ACE_OS_WString (void);
```

```
ACE_OS_WString (ACE_OS_WString &);
```

```
ACE_OS_WString& operator= (ACE_OS_WString &);
```

Disallow these operation.

## AUTHOR

Doug Schmidt schmidt@cs.wustl.edu, Jesper S. M\|ller stophph@diku.dk, and a cast of thousands...

## The ACE\_Sched\_Priority type should be used for platform-

independent thread and process priorities, by convention. int should be used for OS-specific priorities.

## typedef for the \_stat data structure

## Giving unique ACE scoped names for some important

RTSignal-Related constants. Becuase sometimes, different platforms use different names for these constants.

## LIBRARY

ace
