|
ACE
6.2.6
|
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>


Public Member Functions | |
| ACE_NS_WString (ACE_Allocator *alloc=0) | |
| Default constructor. More... | |
| ACE_NS_WString (const char *s, ACE_Allocator *alloc=0) | |
| Constructor that copies s into dynamically allocated memory. More... | |
| ACE_NS_WString (const ACE_WSTRING_TYPE *s, ACE_Allocator *alloc=0) | |
| Constructor that copies s into dynamically allocated memory. More... | |
| ACE_NS_WString (const ACE_WSTRING_TYPE *s, size_type len, ACE_Allocator *alloc=0) | |
| ACE_NS_WString (size_type len, ACE_Allocator *alloc=0) | |
| ACE_NS_WString (const ACE_NS_WString &s) | |
| Copy constructor. More... | |
| ACE_NS_WString (ACE_WSTRING_TYPE c, ACE_Allocator *alloc=0) | |
| Constructor that copies c into dynamically allocated memory. More... | |
| char * | char_rep (void) const |
| ACE_UINT16 * | ushort_rep (void) 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=0, bool release=true) | |
| ACE_String_Base (const ACE_CHAR_T *s, size_type len, ACE_Allocator *the_allocator=0, 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=0) | |
| ~ACE_String_Base (void) | |
| const ACE_CHAR_T & | operator[] (size_type slot) const |
| ACE_CHAR_T & | operator[] (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 (void) |
| ACE_String_Base< ACE_CHAR_T > | substring (size_type offset, size_type length=npos) const |
| ACE_String_Base< ACE_CHAR_T > | substr (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 (void) const |
| size_type | length (void) const |
| size_t | capacity (void) const |
| bool | is_empty (void) const |
| bool | empty (void) const |
| ACE_CHAR_T * | rep (void) const |
| const ACE_CHAR_T * | fast_rep (void) const |
| const ACE_CHAR_T * | c_str (void) 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 (void) 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. More... | |
| iterator | begin (void) |
| const_iterator | begin (void) const |
| iterator | end (void) |
| const_iterator | end (void) const |
Additional Inherited Members | |
Public Types inherited from ACE_String_Base< ACE_CHAR_T > | |
| typedef ACE_String_Base_Iterator < ACE_CHAR_T > | ITERATOR |
| typedef ACE_String_Base_Const_Iterator < ACE_CHAR_T > | CONST_ITERATOR |
| typedef ACE_String_Base_Iterator < ACE_CHAR_T > | iterator |
| typedef ACE_String_Base_Const_Iterator < ACE_CHAR_T > | const_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_Allocator * | allocator_ |
| size_type | len_ |
| size_type | buf_len_ |
| ACE_CHAR_T * | rep_ |
| bool | release_ |
Static Protected Attributes inherited from ACE_String_Base< ACE_CHAR_T > | |
| static ACE_CHAR_T | NULL_String_ = 0 |
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.
|
inline |
Default constructor.
| ACE_NS_WString::ACE_NS_WString | ( | const char * | s, |
| ACE_Allocator * | alloc = 0 |
||
| ) |
Constructor that copies s into dynamically allocated memory.
|
inline |
Constructor that copies s into dynamically allocated memory.
|
inline |
Constructor that copies len ACE_WSTRING_TYPE's of s into dynamically allocated memory (will NUL terminate the result).
|
inline |
Constructor that dynamically allocates memory for len + 1 ACE_WSTRING_TYPE characters. The newly created memory is set memset to 0.
|
inline |
Copy constructor.
|
inline |
Constructor that copies c into dynamically allocated memory.
| char * ACE_NS_WString::char_rep | ( | void | ) | const |
Transform into a copy of the ASCII character representation. (caller must delete)
| ACE_UINT16 * ACE_NS_WString::ushort_rep | ( | void | ) | const |
Transform into a copy of a USHORT16 representation (caller must delete). Note, behavior is undefined when sizeof (wchar_t) != 2.
1.8.6