56 char*
data() {
return data_; }
59 const char*
data()
const {
return data_; }
62 size_t length()
const {
return length_; }
65 size_t size()
const {
return length_; }
68 size_t sizeBytes()
const {
return length_ *
sizeof(char); }
71 bool empty()
const {
return !data_ || length_ == 0; }
77 const char&
operator[](
size_t pos)
const {
return data_[pos]; }
#define UExport
Definition Exports.h:25
A null-terminated UTF-16 string container.
Definition String16.h:35
A null-terminated UTF-32 string container.
Definition String32.h:20
A null-terminated UTF-8 string container.
Definition String8.h:20
size_t size() const
Definition String8.h:65
char * data()
Definition String8.h:56
String8 & operator+=(const String8 &other)
bool operator<(const String8 &other) const
const char & operator[](size_t pos) const
Definition String8.h:77
bool empty() const
Definition String8.h:71
String8 & operator=(const String8 &other)
size_t length() const
Definition String8.h:62
char CharType
Definition String8.h:23
String8(const String8 &other)
String8(const char *c_str, size_t len)
bool operator==(const String8 &other) const
size_t sizeBytes() const
Definition String8.h:68
bool operator!=(const String8 &other) const
const char * data() const
Definition String8.h:59
String8 & operator=(String8 &&other)
String8(const char *c_str)
char & operator[](size_t pos)
Definition String8.h:74
friend String8 operator+(String8 lhs, const String8 &rhs)
Definition String8.h:53