#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> | |
| __attribute__ ((always_inline)) inline StringHandle(const std | |
| 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. | |