#include <coherence/lang/String.hpp>
Inherits TypedHandle< T >.
Boxing from wchar_t[] is supported, but requires an explicit constructor call in order to avoid ambiguity when assigning a String handle/view to NULL.
Unboxing to char[] and wchar[] is not supported as it is unsafe to maintain a reference to the underlying character array without holding a reference to the String. Unboxing to std::string, and std::wstring is both supported and safe.
Public Member Functions |
|
| StringHandle () | |
| Create an empty StringHandle. |
|
| StringHandle (const char *ach) | |
| Create a new StringHandle from a boxable type. |
|
| StringHandle (const wchar_t *ach) | |
| Create a new StringHandle from a boxable type. |
|
| template<class C, class R, class A> | |
| StringHandle (const std::basic_string< C, R, A > &s) | |
| Create a new StringHandle from a boxable type. |
|
| template<class O> | |
| S (const TypedHandle< O > &that) | |
| Create a new StringHandle from the TypedHandle with a type conversion. |
|
| StringHandle (const StringHandle &that) | |
| The copy constructor. |
|
| StringHandle (T *o) | |
| Create a new StringHandle from the raw pointer. |
|
| template<class O> | |
| StringHandle & | operator= (const TypedHandle< O > &that) |
| The assignment operator. |
|
| StringHandle & | operator= (const char *ach) |
| The "boxing" operator. |
|
| template<class C, class R, class A> | |
| StringHandle & | operator= (const std::basic_string< C, R, A > &s) |
| The "boxing" operator. |
|
| template<class C, class R, class A> | |
| o () const | |
| The "unboxing" operator. |
|
| o | ( | ) | const [inline] |
The "unboxing" operator.