Lines Matching defs:String8

37 class String8
40 String8();
41 String8(const String8& o);
42 explicit String8(const char* o);
43 explicit String8(const char* o, size_t numChars);
45 explicit String8(const String16& o);
46 explicit String8(const char16_t* o);
47 explicit String8(const char16_t* o, size_t numChars);
48 explicit String8(const char32_t* o);
49 explicit String8(const char32_t* o, size_t numChars);
50 ~String8();
52 static inline const String8 empty();
54 static String8 format(const char* fmt, ...) __attribute__((format (printf, 1, 2)));
55 static String8 formatV(const char* fmt, va_list args);
67 void setTo(const String8& other);
74 status_t append(const String8& other);
89 inline String8& operator=(const String8& other);
90 inline String8& operator=(const char* other);
92 inline String8& operator+=(const String8& other);
93 inline String8 operator+(const String8& other) const;
95 inline String8& operator+=(const char* other);
96 inline String8 operator+(const char* other) const;
98 inline int compare(const String8& other) const;
100 inline bool operator<(const String8& other) const;
101 inline bool operator<=(const String8& other) const;
102 inline bool operator==(const String8& other) const;
103 inline bool operator!=(const String8& other) const;
104 inline bool operator>=(const String8& other) const;
105 inline bool operator>(const String8& other) const;
146 String8 getPathLeaf(void) const;
156 String8 getPathDir(void) const;
166 String8 walkPath(String8* outRemains = NULL) const;
179 String8 getPathExtension(void) const;
187 String8 getBasePath(void) const;
197 String8& appendPath(const char* leaf);
198 String8& appendPath(const String8& leaf) { return appendPath(leaf.string()); }
203 String8 appendPathCopy(const char* leaf) const
204 { String8 p(*this); p.appendPath(leaf); return p; }
205 String8 appendPathCopy(const String8& leaf) const { return appendPathCopy(leaf.string()); }
214 String8& convertToResPath();
223 // String8 can be trivially moved using memcpy() because moving does not
225 ANDROID_TRIVIAL_MOVE_TRAIT(String8)
232 inline int compare_type(const String8& lhs, const String8& rhs)
237 inline int strictly_order_type(const String8& lhs, const String8& rhs)
242 inline const String8 String8::empty() {
243 return String8();
246 inline const char* String8::string() const
251 inline size_t String8::length() const
256 inline size_t String8::size() const
261 inline bool String8::isEmpty() const
266 inline size_t String8::bytes() const
271 inline const SharedBuffer* String8::sharedBuffer() const
276 inline String8& String8::operator=(const String8& other)
282 inline String8& String8::operator=(const char* other)
288 inline String8& String8::operator+=(const String8& other)
294 inline String8 String8::operator+(const String8& other) const
296 String8 tmp(*this);
301 inline String8& String8::operator+=(const char* other)
307 inline String8 String8::operator+(const char* other) const
309 String8 tmp(*this);
314 inline int String8::compare(const String8& other) const
319 inline bool String8::operator<(const String8& other) const
324 inline bool String8::operator<=(const String8& other) const
329 inline bool String8::operator==(const String8& other) const
334 inline bool String8::operator!=(const String8& other) const
339 inline bool String8::operator>=(const String8& other) const
344 inline bool String8::operator>(const String8& other) const
349 inline bool String8::operator<(const char* other) const
354 inline bool String8::operator<=(const char* other) const
359 inline bool String8::operator==(const char* other) const
364 inline bool String8::operator!=(const char* other) const
369 inline bool String8::operator>=(const char* other) const
374 inline bool String8::operator>(const char* other) const
379 inline String8::operator const char*() const