19 template<
int>
struct selector;
20 template<>
struct selector<4> {
typedef char16_t Char16; };
21 template<>
struct selector<2> {
typedef wchar_t Char16; };
24#ifdef DISABLE_NATIVE_WCHAR_T
45 String16(
const unsigned short* str,
size_t len);
69 unsigned short*
udata() {
return reinterpret_cast<unsigned short*
>(data_); }
72 const unsigned short*
udata()
const {
return reinterpret_cast<const unsigned short*
>(data_); }
75 size_t length()
const {
return length_; }
78 size_t size()
const {
return length_; }
84 bool empty()
const {
return !data_ || length_ == 0; }
121 virtual size_t size()
const = 0;
#define UExport
Definition Defines.h:65
Interface for all ref-counted objects that will be managed using the RefPtr<> smart pointer.
Definition RefPtr.h:47
A nullable smart pointer.
Definition RefPtr.h:79
A UTF-16 string container.
Definition String16.h:35
friend String16 operator+(String16 lhs, const String16 &rhs)
Definition String16.h:59
Char16 & operator[](size_t pos)
Definition String16.h:87
String16(const unsigned short *str, size_t len)
const Char16 * data() const
Definition String16.h:65
const Char16 & operator[](size_t pos) const
Definition String16.h:90
String16(const String16 &other)
unsigned short * udata()
Definition String16.h:69
String16 & operator+=(const String16 &other)
String16 & operator=(const String16 &other)
size_t size() const
Definition String16.h:78
size_t length() const
Definition String16.h:75
String16(const Char16 *str, size_t len)
const unsigned short * udata() const
Definition String16.h:72
Char16 * data()
Definition String16.h:62
size_t sizeBytes() const
Definition String16.h:81
bool empty() const
Definition String16.h:84
A UTF-16 string vector.
Definition String16.h:106
virtual size_t size() const =0
virtual void push_back(const String16 &val)=0
virtual String16 * data()=0
static RefPtr< String16Vector > Create()
virtual ~String16Vector()
void operator=(const String16Vector &)
static RefPtr< String16Vector > Create(const String16 *stringArray, size_t len)
String16Vector(const String16Vector &)
A UTF-32 string container.
Definition String32.h:20
A UTF-8 string container.
Definition String8.h:20
detail::selector< sizeof(wchar_t)>::Char16 Char16
Definition String16.h:29