Merge "libutils: remove whitespace from String8 files" am: e771e846a8

am: 450b9b7068

* commit '450b9b7068cac286ca442c404a90a8a8b57a79e8':
  libutils: remove whitespace from String8 files
This commit is contained in:
Samuel Tan 2016-02-19 04:49:08 +00:00 committed by android-build-merger
commit 4b2e76966e
2 changed files with 10 additions and 10 deletions

View File

@ -49,7 +49,7 @@ public:
String8(const String8& o);
explicit String8(const char* o);
explicit String8(const char* o, size_t numChars);
explicit String8(const String16& o);
explicit String8(const char16_t* o);
explicit String8(const char16_t* o, size_t numChars);
@ -66,9 +66,9 @@ public:
inline size_t size() const;
inline size_t bytes() const;
inline bool isEmpty() const;
size_t length() const;
void clear();
void setTo(const String8& other);
@ -95,10 +95,10 @@ public:
inline String8& operator=(const String8& other);
inline String8& operator=(const char* other);
inline String8& operator+=(const String8& other);
inline String8 operator+(const String8& other) const;
inline String8& operator+=(const char* other);
inline String8 operator+(const char* other) const;
@ -110,20 +110,20 @@ public:
inline bool operator!=(const String8& other) const;
inline bool operator>=(const String8& other) const;
inline bool operator>(const String8& other) const;
inline bool operator<(const char* other) const;
inline bool operator<=(const char* other) const;
inline bool operator==(const char* other) const;
inline bool operator!=(const char* other) const;
inline bool operator>=(const char* other) const;
inline bool operator>(const char* other) const;
inline operator const char*() const;
char* lockBuffer(size_t size);
void unlockBuffer();
status_t unlockBuffer(size_t size);
// return the index of the first byte of other in this at or after
// start, or -1 if not found
ssize_t find(const char* other, size_t start = 0) const;

View File

@ -362,7 +362,7 @@ status_t String8::appendFormatV(const char* fmt, va_list args)
status_t String8::real_append(const char* other, size_t otherLen)
{
const size_t myLen = bytes();
SharedBuffer* buf = SharedBuffer::bufferFromData(mString)
->editResize(myLen+otherLen+1);
if (buf) {