Home | History | Annotate | Download | only in utils

Lines Matching defs:String8

39 class String8
42 /* use String8(StaticLinkage) if you're statically linking against
43 * libutils and declaring an empty static String8, e.g.:
45 * static String8 sAStaticEmptyString(String8::kEmptyString);
46 * static String8 sAnotherStaticEmptyString(sAStaticEmptyString);
50 String8();
51 explicit String8(StaticLinkage);
52 String8(const String8& o);
53 explicit String8(const char* o);
54 explicit String8(const char* o, size_t numChars);
56 explicit String8(const String16& o);
57 explicit String8(const char16_t* o);
58 explicit String8(const char16_t* o, size_t numChars);
59 explicit String8(const char32_t* o);
60 explicit String8(const char32_t* o, size_t numChars);
61 ~String8();
63 static inline const String8 empty();
65 static String8 format(const char* fmt, ...) __attribute__((format (printf, 1, 2)));
66 static String8 formatV(const char* fmt, va_list args);
72 static inline std::string std_string(const String8& str);
83 void setTo(const String8& other);
90 status_t append(const String8& other);
105 inline String8& operator=(const String8& other);
106 inline String8& operator=(const char* other);
108 inline String8& operator+=(const String8& other);
109 inline String8 operator+(const String8& other) const;
111 inline String8& operator+=(const char* other);
112 inline String8 operator+(const char* other) const;
114 inline int compare(const String8& other) const;
116 inline bool operator<(const String8& other) const;
117 inline bool operator<=(const String8& other) const;
118 inline bool operator==(const String8& other) const;
119 inline bool operator!=(const String8& other) const;
120 inline bool operator>=(const String8& other) const;
121 inline bool operator>(const String8& other) const;
170 String8 getPathLeaf(void) const;
180 String8 getPathDir(void) const;
190 String8 walkPath(String8* outRemains = NULL) const;
203 String8 getPathExtension(void) const;
211 String8 getBasePath(void) const;
221 String8& appendPath(const char* leaf);
222 String8& appendPath(const String8& leaf) { return appendPath(leaf.string()); }
227 String8 appendPathCopy(const char* leaf) const
228 { String8 p(*this); p.appendPath(leaf); return p; }
229 String8 appendPathCopy(const String8& leaf) const { return appendPathCopy(leaf.string()); }
238 String8& convertToResPath();
247 // String8 can be trivially moved using memcpy() because moving does not
249 ANDROID_TRIVIAL_MOVE_TRAIT(String8)
254 inline int compare_type(const String8& lhs, const String8& rhs)
259 inline int strictly_order_type(const String8& lhs, const String8& rhs)
264 inline const String8 String8::empty() {
265 return String8();
268 inline const char* String8::c_str() const
272 inline const char* String8::string() const
277 inline std::string String8::std_string(const String8& str)
282 inline size_t String8::size() const
287 inline bool String8::isEmpty() const
292 inline size_t String8::bytes() const
297 inline bool String8::contains(const char* other) const
302 inline String8& String8::operator=(const String8& other)
308 inline String8& String8::operator=(const char* other)
314 inline String8& String8::operator+=(const String8& other)
320 inline String8 String8::operator+(const String8& other) const
322 String8 tmp(*this);
327 inline String8& String8::operator+=(const char* other)
333 inline String8 String8::operator+(const char* other) const
335 String8 tmp(*this);
340 inline int String8::compare(const String8& other) const
345 inline bool String8::operator<(const String8& other) const
350 inline bool String8::operator<=(const String8& other) const
355 inline bool String8::operator==(const String8& other) const
360 inline bool String8::operator!=(const String8& other) const
365 inline bool String8::operator>=(const String8& other) const
370 inline bool String8::operator>(const String8& other) const
375 inline bool String8::operator<(const char* other) const
380 inline bool String8::operator<=(const char* other) const
385 inline bool String8::operator==(const char* other) const
390 inline bool String8::operator!=(const char* other) const
395 inline bool String8::operator>=(const char* other) const
400 inline bool String8::operator>(const char* other) const
405 inline String8::operator const char*() const