46 char*
data() {
return data_; }
49 const char*
data()
const {
return data_; }
52 size_t length()
const {
return length_; }
55 size_t size()
const {
return length_; }
58 size_t sizeBytes()
const {
return length_ *
sizeof(char); }
61 bool empty()
const {
return !data_ || length_ == 0; }
67 const char&
operator[](
size_t pos)
const {
return data_[pos]; }
#define UExport
Definition Defines.h:65
A UTF-16 string container.
Definition String16.h:35
A UTF-32 string container.
Definition String32.h:20
A UTF-8 string container.
Definition String8.h:20
String8(const String8 &other)
char * data()
Definition String8.h:46
String8(const char *c_str)
size_t sizeBytes() const
Definition String8.h:58
String8 & operator+=(const String8 &other)
size_t size() const
Definition String8.h:55
size_t length() const
Definition String8.h:52
String8 & operator=(const String8 &other)
const char * data() const
Definition String8.h:49
const char & operator[](size_t pos) const
Definition String8.h:67
char & operator[](size_t pos)
Definition String8.h:64
bool empty() const
Definition String8.h:61
String8(const char *c_str, size_t len)
friend String8 operator+(String8 lhs, const String8 &rhs)
Definition String8.h:43