ACE 8.0.5
Loading...
Searching...
No Matches
ACE_NS_WString Class Reference

This class retain the backward compatibility for ACE_Naming_Context and related classes. The only addition to ACE_WString is a very naive "wchar" to "char" conversion function. More...

#include <SString.h>

Inheritance diagram for ACE_NS_WString:
Collaboration diagram for ACE_NS_WString:

Public Member Functions

 ACE_NS_WString (ACE_Allocator *alloc=nullptr)
 Default constructor.
 ACE_NS_WString (const char *s, ACE_Allocator *alloc=nullptr)
 Constructor that copies s into dynamically allocated memory.
 ACE_NS_WString (const ACE_WSTRING_TYPE *s, ACE_Allocator *alloc=nullptr)
 Constructor that copies s into dynamically allocated memory.
 ACE_NS_WString (const ACE_WSTRING_TYPE *s, size_type len, ACE_Allocator *alloc=nullptr)
 ACE_NS_WString (size_type len, ACE_Allocator *alloc=nullptr)
 ACE_NS_WString (const ACE_NS_WString &)=default
 Copy constructor.
ACE_NS_WStringoperator= (const ACE_NS_WString &)=default
 ACE_NS_WString (ACE_WSTRING_TYPE c, ACE_Allocator *alloc=nullptr)
 Constructor that copies c into dynamically allocated memory.
char * char_rep () const
ACE_UINT16ushort_rep () const
Public Member Functions inherited from ACE_String_Base< ACE_WSTRING_TYPE >
 ACE_String_Base (ACE_Allocator *the_allocator=0)
 ACE_String_Base (const ACE_WSTRING_TYPE *s, ACE_Allocator *the_allocator=nullptr, bool release=true)
 ACE_String_Base (const ACE_WSTRING_TYPE *s, size_type len, ACE_Allocator *the_allocator=nullptr, bool release=true)
 ACE_String_Base (const ACE_String_Base< ACE_WSTRING_TYPE > &s)
 ACE_String_Base (ACE_WSTRING_TYPE c, ACE_Allocator *the_allocator=0)
 ACE_String_Base (size_type len, ACE_WSTRING_TYPE c=0, ACE_Allocator *the_allocator=nullptr)
 ~ACE_String_Base ()
const ACE_WSTRING_TYPEoperator[] (size_type slot) const
ACE_WSTRING_TYPEoperator[] (size_type slot)
ACE_String_Base< ACE_WSTRING_TYPE > & operator= (const ACE_WSTRING_TYPE *s)
ACE_String_Base< ACE_WSTRING_TYPE > & operator= (const ACE_String_Base< ACE_WSTRING_TYPE > &s)
ACE_String_Base< ACE_WSTRING_TYPE > & assign_nocopy (const ACE_String_Base< ACE_WSTRING_TYPE > &s)
void set (const ACE_WSTRING_TYPE *s, bool release=true)
void set (const ACE_WSTRING_TYPE *s, size_type len, bool release)
void clear (bool release=false)
void fast_clear ()
ACE_String_Base< ACE_WSTRING_TYPEsubstring (size_type offset, size_type length=npos) const
ACE_String_Base< ACE_WSTRING_TYPEsubstr (size_type offset, size_type length=npos) const
ACE_String_Base< ACE_WSTRING_TYPE > & operator+= (const ACE_String_Base< ACE_WSTRING_TYPE > &s)
ACE_String_Base< ACE_WSTRING_TYPE > & operator+= (const ACE_WSTRING_TYPE *s)
ACE_String_Base< ACE_WSTRING_TYPE > & operator+= (const ACE_WSTRING_TYPE c)
ACE_String_Base< ACE_WSTRING_TYPE > & append (const ACE_WSTRING_TYPE *s, size_type slen)
u_long hash () const
size_type length () const
size_t capacity () const
bool is_empty () const
bool empty () const
ACE_WSTRING_TYPErep () const
const ACE_WSTRING_TYPEfast_rep () const
const ACE_WSTRING_TYPEc_str () const
size_type strstr (const ACE_String_Base< ACE_WSTRING_TYPE > &s) const
size_type find (const ACE_String_Base< ACE_WSTRING_TYPE > &str, size_type pos=0) const
size_type find (const ACE_WSTRING_TYPE *s, size_type pos=0) const
size_type find (ACE_WSTRING_TYPE c, size_type pos=0) const
size_type rfind (ACE_WSTRING_TYPE c, size_type pos=npos) const
bool operator== (const ACE_String_Base< ACE_WSTRING_TYPE > &s) const
bool operator== (const ACE_WSTRING_TYPE *s) const
bool operator< (const ACE_String_Base< ACE_WSTRING_TYPE > &s) const
bool operator> (const ACE_String_Base< ACE_WSTRING_TYPE > &s) const
bool operator!= (const ACE_String_Base< ACE_WSTRING_TYPE > &s) const
bool operator!= (const ACE_WSTRING_TYPE *s) const
int compare (const ACE_String_Base< ACE_WSTRING_TYPE > &s) const
void dump () const
void resize (size_type len, ACE_WSTRING_TYPE c=0)
void fast_resize (size_t len)
void swap (ACE_String_Base< ACE_WSTRING_TYPE > &str)
 Swap the contents of this ACE_String_Base with str.
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const

Additional Inherited Members

Public Types inherited from ACE_String_Base< ACE_WSTRING_TYPE >
typedef ACE_String_Base_Iterator< ACE_WSTRING_TYPEITERATOR
typedef ACE_String_Base_Const_Iterator< ACE_WSTRING_TYPECONST_ITERATOR
typedef ACE_String_Base_Iterator< ACE_WSTRING_TYPEiterator
typedef ACE_String_Base_Const_Iterator< ACE_WSTRING_TYPEconst_iterator
typedef ACE_Allocator::size_type size_type
Public Types inherited from ACE_String_Base_Const
typedef ACE_Allocator::size_type size_type
Public Attributes inherited from ACE_String_Base< ACE_WSTRING_TYPE >
 ACE_ALLOC_HOOK_DECLARE
Static Public Attributes inherited from ACE_String_Base_Const
static size_type const npos
Protected Attributes inherited from ACE_String_Base< ACE_WSTRING_TYPE >
ACE_Allocatorallocator_
size_type len_
size_type buf_len_
ACE_WSTRING_TYPErep_
bool release_
Static Protected Attributes inherited from ACE_String_Base< ACE_WSTRING_TYPE >
static ACE_WSTRING_TYPE NULL_String_

Detailed Description

This class retain the backward compatibility for ACE_Naming_Context and related classes. The only addition to ACE_WString is a very naive "wchar" to "char" conversion function.

Constructor & Destructor Documentation

◆ ACE_NS_WString() [1/7]

ACE_NS_WString::ACE_NS_WString ( ACE_Allocator * alloc = nullptr)
inline

Default constructor.

◆ ACE_NS_WString() [2/7]

ACE_NS_WString::ACE_NS_WString ( const char * s,
ACE_Allocator * alloc = nullptr )

Constructor that copies s into dynamically allocated memory.

◆ ACE_NS_WString() [3/7]

ACE_NS_WString::ACE_NS_WString ( const ACE_WSTRING_TYPE * s,
ACE_Allocator * alloc = nullptr )
inline

Constructor that copies s into dynamically allocated memory.

◆ ACE_NS_WString() [4/7]

ACE_NS_WString::ACE_NS_WString ( const ACE_WSTRING_TYPE * s,
size_type len,
ACE_Allocator * alloc = nullptr )
inline

Constructor that copies len ACE_WSTRING_TYPE's of s into dynamically allocated memory (will NUL terminate the result).

◆ ACE_NS_WString() [5/7]

ACE_NS_WString::ACE_NS_WString ( size_type len,
ACE_Allocator * alloc = nullptr )
inline

Constructor that dynamically allocates memory for len + 1 ACE_WSTRING_TYPE characters. The newly created memory is set memset to 0.

◆ ACE_NS_WString() [6/7]

ACE_NS_WString::ACE_NS_WString ( const ACE_NS_WString & )
default

Copy constructor.

◆ ACE_NS_WString() [7/7]

ACE_NS_WString::ACE_NS_WString ( ACE_WSTRING_TYPE c,
ACE_Allocator * alloc = nullptr )
inline

Constructor that copies c into dynamically allocated memory.

Member Function Documentation

◆ char_rep()

char * ACE_NS_WString::char_rep ( ) const

Transform into a copy of the ASCII character representation. (caller must delete)

◆ operator=()

ACE_NS_WString & ACE_NS_WString::operator= ( const ACE_NS_WString & )
default

◆ ushort_rep()

ACE_UINT16 * ACE_NS_WString::ushort_rep ( ) const

Transform into a copy of a USHORT16 representation (caller must delete). Note, behavior is undefined when sizeof (wchar_t) != 2.


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