---
name: "ACE_OS_CString"
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_CString"
---

# ACE\_OS\_CString(3)

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

## NAME

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

## SYNOPSIS

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

## DESCRIPTION

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

## PUBLIC MEMBERS

```
ACE_OS_CString (const char *s);
```

Ctor must take a wchar stirng.

```
~ACE_OS_CString (void);
```

Dtor will free up the memory.

```
ACE_USHORT16 *wchar_rep (void);
```

Return the internal char\* representation.

## PRIVATE MEMBERS

```
ACE_USHORT16 *rep_;
```

Internal pointer to the converted string.

```
ACE_OS_CString (void);
```

```
ACE_OS_CString (ACE_OS_CString &);
```

```
ACE_OS_CString operator= (ACE_OS_CString &);
```

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
