Lines Matching defs:String8

37 class String8
40 /* use String8(StaticLinkage) if you're statically linking against
41 * libutils and declaring an empty static String8, e.g.:
43 * static String8 sAStaticEmptyString(String8::kEmptyString);
44 * static String8 sAnotherStaticEmptyString(sAStaticEmptyString);
48 String8();
49 explicit String8(StaticLinkage);
50 String8(const String8& o);
51 explicit String8(const char* o);
52 explicit String8(const char* o, size_t numChars);
54 explicit String8(const String16& o);
55 explicit String8(const char16_t* o);
56 explicit String8(const char16_t* o, size_t numChars);
57 explicit String8(const char32_t* o);
58 explicit String8(const char32_t* o, size_t numChars);
59 ~String8();
61 static inline const String8 empty();
63 static String8 format(const char* fmt, ...) __attribute__((format (printf, 1, 2)));
64 static String8 formatV(const char* fmt, va_list args);
76 void setTo(const String8& other);
83 status_t append(const String8& other);
98 inline String8& operator=(const String8& other);
99 inline String8& operator=(const char* other);
101 inline String8& operator+=(const String8& other);
102 inline String8 operator+(const String8& other) const;
104 inline String8& operator+=(const char* other);
105 inline String8 operator+(const char* other) const;
107 inline int compare(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;
113 inline bool operator>=(const String8& other) const;
114 inline bool operator>(const String8& other) const;
155 String8 getPathLeaf(void) const;
165 String8 getPathDir(void) const;
175 String8 walkPath(String8* outRemains = NULL) const;
188 String8 getPathExtension(void) const;
196 String8 getBasePath(void) const;
206 String8& appendPath(const char* leaf);
207 String8& appendPath(const String8& leaf) { return appendPath(leaf.string()); }
212 String8 appendPathCopy(const char* leaf) const
213 { String8 p(*this); p.appendPath(leaf); return p; }
214 String8 appendPathCopy(const String8& leaf) const { return appendPathCopy(leaf.string()); }
223 String8& convertToResPath();
232 // String8 can be trivially moved using memcpy() because moving does not
234 ANDROID_TRIVIAL_MOVE_TRAIT(String8)
239 inline int compare_type(const String8& lhs, const String8& rhs)
244 inline int strictly_order_type(const String8& lhs, const String8& rhs)
249 inline const String8 String8::empty() {
250 return String8();
253 inline const char* String8::string() const
258 inline size_t String8::length() const
263 inline size_t String8::size() const
268 inline bool String8::isEmpty() const
273 inline size_t String8::bytes() const
278 inline const SharedBuffer* String8::sharedBuffer() const
283 inline String8& String8::operator=(const String8& other)
289 inline String8& String8::operator=(const char* other)
295 inline String8& String8::operator+=(const String8& other)
301 inline String8 String8::operator+(const String8& other) const
303 String8 tmp(*this);
308 inline String8& String8::operator+=(const char* other)
314 inline String8 String8::operator+(const char* other) const
316 String8 tmp(*this);
321 inline int String8::compare(const String8& other) const
326 inline bool String8::operator<(const String8& other) const
331 inline bool String8::operator<=(const String8& other) const
336 inline bool String8::operator==(const String8& other) const
341 inline bool String8::operator!=(const String8& other) const
346 inline bool String8::operator>=(const String8& other) const
351 inline bool String8::operator>(const String8& other) const
356 inline bool String8::operator<(const char* other) const
361 inline bool String8::operator<=(const char* other) const
366 inline bool String8::operator==(const char* other) const
371 inline bool String8::operator!=(const char* other) const
376 inline bool String8::operator>=(const char* other) const
381 inline bool String8::operator>(const char* other) const
386 inline String8::operator const char*() const