class String16
Defined at line 44 of file ../../third_party/android/platform/system/core/include/utils/String16.h
This is a string holding UTF-16 characters.
Public Methods
void String16 (const String16 & o)
void String16 ()
void String16 (String16 && o)
void String16 (const String16 & o, size_t len, size_t begin)
void String16 (const char16_t * o)
void String16 (const char16_t * o, size_t len)
void String16 (const String8 & o)
void String16 (const char * o)
void String16 (const char * o, size_t len)
void ~String16 ()
const char16_t * c_str ()
Defined at line 262 of file ../../third_party/android/platform/system/core/include/utils/String16.h
size_t size ()
bool empty ()
Defined at line 272 of file ../../third_party/android/platform/system/core/include/utils/String16.h
size_t length ()
Defined at line 277 of file ../../third_party/android/platform/system/core/include/utils/String16.h
void setTo (const String16 & other)
status_t setTo (const char16_t * other)
status_t setTo (const char16_t * other, size_t len)
status_t setTo (const String16 & other, size_t len, size_t begin)
status_t append (const String16 & other)
status_t append (const char16_t * other, size_t len)
String16 & operator= (const String16 & other)
Defined at line 287 of file ../../third_party/android/platform/system/core/include/utils/String16.h
String16 & operator= (String16 && other)
String16 & operator+= (const String16 & other)
Defined at line 293 of file ../../third_party/android/platform/system/core/include/utils/String16.h
String16 operator+ (const String16 & other)
Defined at line 299 of file ../../third_party/android/platform/system/core/include/utils/String16.h
status_t insert (size_t pos, const char16_t * chrs)
status_t insert (size_t pos, const char16_t * chrs, size_t len)
ssize_t findFirst (char16_t c)
ssize_t findLast (char16_t c)
bool startsWith (const String16 & prefix)
bool startsWith (const char16_t * prefix)
bool contains (const char16_t * chrs)
bool contains (const String16 & other)
Defined at line 282 of file ../../third_party/android/platform/system/core/include/utils/String16.h
status_t replaceAll (char16_t replaceThis, char16_t withThis)
int compare (const String16 & other)
Defined at line 306 of file ../../third_party/android/platform/system/core/include/utils/String16.h
bool operator< (const String16 & other)
Defined at line 311 of file ../../third_party/android/platform/system/core/include/utils/String16.h
bool operator<= (const String16 & other)
Defined at line 316 of file ../../third_party/android/platform/system/core/include/utils/String16.h
bool operator== (const String16 & other)
Defined at line 321 of file ../../third_party/android/platform/system/core/include/utils/String16.h
bool operator!= (const String16 & other)
Defined at line 326 of file ../../third_party/android/platform/system/core/include/utils/String16.h
bool operator>= (const String16 & other)
Defined at line 331 of file ../../third_party/android/platform/system/core/include/utils/String16.h
bool operator> (const String16 & other)
Defined at line 336 of file ../../third_party/android/platform/system/core/include/utils/String16.h
std::strong_ordering operator<=> (const String16 & other)
Defined at line 342 of file ../../third_party/android/platform/system/core/include/utils/String16.h
bool operator< (const char16_t * other)
Defined at line 354 of file ../../third_party/android/platform/system/core/include/utils/String16.h
bool operator<= (const char16_t * other)
Defined at line 359 of file ../../third_party/android/platform/system/core/include/utils/String16.h
bool operator== (const char16_t * other)
Defined at line 364 of file ../../third_party/android/platform/system/core/include/utils/String16.h
bool operator!= (const char16_t * other)
Defined at line 369 of file ../../third_party/android/platform/system/core/include/utils/String16.h
bool operator>= (const char16_t * other)
Defined at line 374 of file ../../third_party/android/platform/system/core/include/utils/String16.h
bool operator> (const char16_t * other)
Defined at line 379 of file ../../third_party/android/platform/system/core/include/utils/String16.h
std::strong_ordering operator<=> (const char16_t * other)
Defined at line 385 of file ../../third_party/android/platform/system/core/include/utils/String16.h
const char16_t * operator const char16_t * ()
Defined at line 397 of file ../../third_party/android/platform/system/core/include/utils/String16.h
std::u16string_view operator basic_string_view ()
Implicit cast to std::u16string is not implemented on purpose - u16string_view is much
lighter and if one needs, they can still create u16string from u16string_view.
Defined at line 402 of file ../../third_party/android/platform/system/core/include/utils/String16.h
bool isStaticString ()
Static and non-static String16 behave the same for the users, so
this method isn't of much use for the users. It is public for testing.
Protected Methods
template <size_t N>
const StaticData<N> makeStaticData (const char16_t (&)[N] s)
Helper function for constructing a StaticData object.
Defined at line 183 of file ../../third_party/android/platform/system/core/include/utils/String16.h
template <size_t N>
void String16 (const StaticData<N> & s)
Defined at line 193 of file ../../third_party/android/platform/system/core/include/utils/String16.h