class String8

Defined at line 45 of file ../../third_party/android/platform/system/core/include/utils/String8.h

This is a string holding UTF-8 characters. Does not allow the value more

than 0x10FFFF, which is not valid unicode codepoint.

Public Methods

void String8 ()
void String8 (const String8 & o)
void String8 (const char * o)
void String8 (const char * o, size_t numChars)
void String8 (std::string_view o)

Defined at line 367 of file ../../third_party/android/platform/system/core/include/utils/String8.h

void String8 (const String16 & o)
void String8 (const char16_t * o)
void String8 (const char16_t * o, size_t numChars)
void String8 (const char32_t * o)
void String8 (const char32_t * o, size_t numChars)
void ~String8 ()
String8 format (const char * fmt)
String8 formatV (const char * fmt, va_list args)
const char * c_str ()

Defined at line 184 of file ../../third_party/android/platform/system/core/include/utils/String8.h

size_t size ()

Defined at line 193 of file ../../third_party/android/platform/system/core/include/utils/String8.h

size_t bytes ()

Defined at line 208 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool empty ()

Defined at line 198 of file ../../third_party/android/platform/system/core/include/utils/String8.h

size_t length ()
void clear ()
void setTo (const String8 & other)
status_t setTo (const char * other)
status_t setTo (const char * other, size_t numChars)
status_t setTo (const char16_t * other, size_t numChars)
status_t setTo (const char32_t * other, size_t length)
status_t append (const String8 & other)
status_t append (const char * other)
status_t append (const char * other, size_t numChars)
status_t appendFormat (const char * fmt)
status_t appendFormatV (const char * fmt, va_list args)
String8 & operator= (const String8 & other)

Defined at line 233 of file ../../third_party/android/platform/system/core/include/utils/String8.h

String8 & operator= (const char * other)

Defined at line 239 of file ../../third_party/android/platform/system/core/include/utils/String8.h

String8 & operator+= (const String8 & other)

Defined at line 245 of file ../../third_party/android/platform/system/core/include/utils/String8.h

String8 operator+ (const String8 & other)

Defined at line 251 of file ../../third_party/android/platform/system/core/include/utils/String8.h

String8 & operator+= (const char * other)

Defined at line 258 of file ../../third_party/android/platform/system/core/include/utils/String8.h

String8 operator+ (const char * other)

Defined at line 264 of file ../../third_party/android/platform/system/core/include/utils/String8.h

int compare (const String8 & other)

Defined at line 271 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool operator< (const String8 & other)

Defined at line 276 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool operator<= (const String8 & other)

Defined at line 281 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool operator== (const String8 & other)

Defined at line 286 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool operator!= (const String8 & other)

Defined at line 291 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool operator>= (const String8 & other)

Defined at line 296 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool operator> (const String8 & other)

Defined at line 301 of file ../../third_party/android/platform/system/core/include/utils/String8.h

std::strong_ordering operator<=> (const String8 & other)

Defined at line 307 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool operator< (const char * other)

Defined at line 319 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool operator<= (const char * other)

Defined at line 324 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool operator== (const char * other)

Defined at line 329 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool operator!= (const char * other)

Defined at line 334 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool operator>= (const char * other)

Defined at line 339 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool operator> (const char * other)

Defined at line 344 of file ../../third_party/android/platform/system/core/include/utils/String8.h

std::strong_ordering operator<=> (const char * other)

Defined at line 350 of file ../../third_party/android/platform/system/core/include/utils/String8.h

const char * operator const char * ()

Defined at line 362 of file ../../third_party/android/platform/system/core/include/utils/String8.h

std::string_view operator basic_string_view ()

Defined at line 369 of file ../../third_party/android/platform/system/core/include/utils/String8.h

char * lockBuffer (size_t size)
void unlockBuffer ()
status_t unlockBuffer (size_t size)
ssize_t find (const char * other, size_t start)

return the index of the first byte of other in this at or after

start, or -1 if not found

ssize_t find (const String8 & other, size_t start)

Defined at line 213 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool contains (const char * other)

return true if this string contains the specified substring

Defined at line 218 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool contains (const String8 & other)

Defined at line 223 of file ../../third_party/android/platform/system/core/include/utils/String8.h

bool removeAll (const char * other)

removes all occurrence of the specified substring

returns true if any were found and removed

bool removeAll (const String8 & other)

Defined at line 228 of file ../../third_party/android/platform/system/core/include/utils/String8.h

void toLower ()