ACE 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for ACE_NS_WString:
Collaboration graph
[legend]

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.
 
charchar_rep () const
 
ACE_UINT16ushort_rep () const
 
- Public Member Functions inherited from ACE_String_Base< ACE_CHAR_T >
 ACE_String_Base (ACE_Allocator *the_allocator=0)
 
 ACE_String_Base (const ACE_CHAR_T *s, ACE_Allocator *the_allocator=nullptr, bool release=true)
 
 ACE_String_Base (const ACE_CHAR_T *s, size_type len, ACE_Allocator *the_allocator=nullptr, bool release=true)
 
 ACE_String_Base (const ACE_String_Base< ACE_CHAR_T > &s)
 
 ACE_String_Base (ACE_CHAR_T c, ACE_Allocator *the_allocator=0)
 
 ACE_String_Base (size_type len, ACE_CHAR_T c=0, ACE_Allocator *the_allocator=nullptr)
 
 ~ACE_String_Base ()
 
const ACE_CHAR_Toperator[] (size_type slot) const
 
ACE_CHAR_Toperator[] (size_type slot)
 
ACE_String_Base< ACE_CHAR_T > & operator= (const ACE_CHAR_T *s)
 
ACE_String_Base< ACE_CHAR_T > & operator= (const ACE_String_Base< ACE_CHAR_T > &s)
 
ACE_String_Base< ACE_CHAR_T > & assign_nocopy (const ACE_String_Base< ACE_CHAR_T > &s)
 
void set (const ACE_CHAR_T *s, bool release=true)
 
void set (const ACE_CHAR_T *s, size_type len, bool release)
 
void clear (bool release=false)
 
void fast_clear ()
 
ACE_String_Base< ACE_CHAR_Tsubstring (size_type offset, size_type length=npos) const
 
ACE_String_Base< ACE_CHAR_Tsubstr (size_type offset, size_type length=npos) const
 
ACE_String_Base< ACE_CHAR_T > & operator+= (const ACE_String_Base< ACE_CHAR_T > &s)
 
ACE_String_Base< ACE_CHAR_T > & operator+= (const ACE_CHAR_T *s)
 
ACE_String_Base< ACE_CHAR_T > & operator+= (const ACE_CHAR_T c)
 
ACE_String_Base< ACE_CHAR_T > & append (const ACE_CHAR_T *s, size_type slen)
 
u_long hash () const
 
size_type length () const
 
size_t capacity () const
 
bool is_empty () const
 
bool empty () const
 
ACE_CHAR_Trep () const
 
const ACE_CHAR_Tfast_rep () const
 
const ACE_CHAR_Tc_str () const
 
size_type strstr (const ACE_String_Base< ACE_CHAR_T > &s) const
 
size_type find (const ACE_String_Base< ACE_CHAR_T > &str, size_type pos=0) const
 
size_type find (const ACE_CHAR_T *s, size_type pos=0) const
 
size_type find (ACE_CHAR_T c, size_type pos=0) const
 
size_type rfind (ACE_CHAR_T c, size_type pos=npos) const
 
bool operator== (const ACE_String_Base< ACE_CHAR_T > &s) const
 
bool operator== (const ACE_CHAR_T *s) const
 
bool operator< (const ACE_String_Base< ACE_CHAR_T > &s) const
 
bool operator> (const ACE_String_Base< ACE_CHAR_T > &s) const
 
bool operator!= (const ACE_String_Base< ACE_CHAR_T > &s) const
 
bool operator!= (const ACE_CHAR_T *s) const
 
int compare (const ACE_String_Base< ACE_CHAR_T > &s) const
 
void dump () const
 
void resize (size_type len, ACE_CHAR_T c=0)
 
void fast_resize (size_t len)
 
void swap (ACE_String_Base< ACE_CHAR_T > &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_CHAR_T >
typedef ACE_String_Base_Iterator< ACE_CHAR_TITERATOR
 
typedef ACE_String_Base_Const_Iterator< ACE_CHAR_TCONST_ITERATOR
 
typedef ACE_String_Base_Iterator< ACE_CHAR_Titerator
 
typedef ACE_String_Base_Const_Iterator< ACE_CHAR_Tconst_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_CHAR_T >
 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_CHAR_T >
ACE_Allocatorallocator_
 
size_type len_
 
size_type buf_len_
 
ACE_CHAR_Trep_
 
bool release_
 
- Static Protected Attributes inherited from ACE_String_Base< ACE_CHAR_T >
static ACE_CHAR_T 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: