Lines Matching refs:String8
36 class String8
39 /* use String8(StaticLinkage) if you're statically linking against
40 * libutils and declaring an empty static String8, e.g.:
42 * static String8 sAStaticEmptyString(String8::kEmptyString);
43 * static String8 sAnotherStaticEmptyString(sAStaticEmptyString);
47 String8();
48 explicit String8(StaticLinkage);
49 String8(const String8& o);
50 explicit String8(const char* o);
51 explicit String8(const char* o, size_t numChars);
53 explicit String8(const String16& o);
54 explicit String8(const char16_t* o);
55 explicit String8(const char16_t* o, size_t numChars);
56 explicit String8(const char32_t* o);
57 explicit String8(const char32_t* o, size_t numChars);
58 ~String8();
60 static inline const String8 empty();
62 static String8 format(const char* fmt, ...) __attribute__((format (printf, 1, 2)));
63 static String8 formatV(const char* fmt, va_list args);
74 void setTo(const String8& other);
81 status_t append(const String8& other);
96 inline String8& operator=(const String8& other);
97 inline String8& operator=(const char* other);
99 inline String8& operator+=(const String8& other);
100 inline String8 operator+(const String8& other) const;
102 inline String8& operator+=(const char* other);
103 inline String8 operator+(const char* other) const;
105 inline int compare(const String8& other) const;
107 inline bool operator<(const String8& other) const;
108 inline bool operator<=(const String8& other) const;
109 inline bool operator==(const String8& other) const;
110 inline bool operator!=(const String8& other) const;
111 inline bool operator>=(const String8& other) const;
112 inline bool operator>(const String8& other) const;
161 String8 getPathLeaf(void) const;
171 String8 getPathDir(void) const;
181 String8 walkPath(String8* outRemains = NULL) const;
194 String8 getPathExtension(void) const;
202 String8 getBasePath(void) const;
212 String8& appendPath(const char* leaf);
213 String8& appendPath(const String8& leaf) { return appendPath(leaf.string()); }
218 String8 appendPathCopy(const char* leaf) const
219 { String8 p(*this); p.appendPath(leaf); return p; }
220 String8 appendPathCopy(const String8& leaf) const { return appendPathCopy(leaf.string()); }
229 String8& convertToResPath();
238 // String8 can be trivially moved using memcpy() because moving does not
240 ANDROID_TRIVIAL_MOVE_TRAIT(String8)
245 inline int compare_type(const String8& lhs, const String8& rhs)
250 inline int strictly_order_type(const String8& lhs, const String8& rhs)
255 inline const String8 String8::empty() {
256 return String8();
259 inline const char* String8::string() const
264 inline size_t String8::size() const
269 inline bool String8::isEmpty() const
274 inline size_t String8::bytes() const
279 inline bool String8::contains(const char* other) const
284 inline String8& String8::operator=(const String8& other)
290 inline String8& String8::operator=(const char* other)
296 inline String8& String8::operator+=(const String8& other)
302 inline String8 String8::operator+(const String8& other) const
304 String8 tmp(*this);
309 inline String8& String8::operator+=(const char* other)
315 inline String8 String8::operator+(const char* other) const
317 String8 tmp(*this);
322 inline int String8::compare(const String8& other) const
327 inline bool String8::operator<(const String8& other) const
332 inline bool String8::operator<=(const String8& other) const
337 inline bool String8::operator==(const String8& other) const
342 inline bool String8::operator!=(const String8& other) const
347 inline bool String8::operator>=(const String8& other) const
352 inline bool String8::operator>(const String8& other) const
357 inline bool String8::operator<(const char* other) const
362 inline bool String8::operator<=(const char* other) const
367 inline bool String8::operator==(const char* other) const
372 inline bool String8::operator!=(const char* other) const
377 inline bool String8::operator>=(const char* other) const
382 inline bool String8::operator>(const char* other) const
387 inline String8::operator const char*() const