From f9d16ef1065bc2bb6162d3e4cdd40f47f9961edf Mon Sep 17 00:00:00 2001 From: Samuel Tan Date: Tue, 16 Feb 2016 15:17:10 -0800 Subject: [PATCH] libutils: remove whitespaces in String16.cpp and String16.h Remove trailing whitespaces in both these files. BUG: None Change-Id: I18eca5162871b5b2bf7757a7ef36a4e80073798c --- include/utils/String16.h | 18 +++++++++--------- libutils/String16.cpp | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/utils/String16.h b/include/utils/String16.h index 9a67c7a5f..50ac6d028 100644 --- a/include/utils/String16.h +++ b/include/utils/String16.h @@ -62,9 +62,9 @@ public: explicit String16(const char* o, size_t len); ~String16(); - + inline const char16_t* string() const; - + size_t size() const; void setTo(const String16& other); status_t setTo(const char16_t* other); @@ -72,12 +72,12 @@ public: status_t setTo(const String16& other, size_t len, size_t begin=0); - + status_t append(const String16& other); status_t append(const char16_t* other, size_t len); - + inline String16& operator=(const String16& other); - + inline String16& operator+=(const String16& other); inline String16 operator+(const String16& other) const; @@ -90,7 +90,7 @@ public: bool startsWith(const String16& prefix) const; bool startsWith(const char16_t* prefix) const; - + status_t makeLower(); status_t replaceAll(char16_t replaceThis, @@ -106,16 +106,16 @@ public: inline bool operator!=(const String16& other) const; inline bool operator>=(const String16& other) const; inline bool operator>(const String16& other) const; - + inline bool operator<(const char16_t* other) const; inline bool operator<=(const char16_t* other) const; inline bool operator==(const char16_t* other) const; inline bool operator!=(const char16_t* other) const; inline bool operator>=(const char16_t* other) const; inline bool operator>(const char16_t* other) const; - + inline operator const char16_t*() const; - + private: const char16_t* mString; }; diff --git a/libutils/String16.cpp b/libutils/String16.cpp index 6a5273ff2..449fb205c 100644 --- a/libutils/String16.cpp +++ b/libutils/String16.cpp @@ -77,7 +77,7 @@ static char16_t* allocFromUTF8(const char* u8str, size_t u8len) //printf("Created UTF-16 string from UTF-8 \"%s\":", in); //printHexData(1, str, buf->size(), 16, 1); //printf("\n"); - + return u16str; } @@ -127,7 +127,7 @@ String16::String16(const char16_t* o) mString = str; return; } - + mString = getEmptyString(); } @@ -142,7 +142,7 @@ String16::String16(const char16_t* o, size_t len) mString = str; return; } - + mString = getEmptyString(); } @@ -228,7 +228,7 @@ status_t String16::append(const String16& other) } else if (otherLen == 0) { return NO_ERROR; } - + SharedBuffer* buf = SharedBuffer::bufferFromData(mString) ->editResize((myLen+otherLen+1)*sizeof(char16_t)); if (buf) { @@ -249,7 +249,7 @@ status_t String16::append(const char16_t* chrs, size_t otherLen) } else if (otherLen == 0) { return NO_ERROR; } - + SharedBuffer* buf = SharedBuffer::bufferFromData(mString) ->editResize((myLen+otherLen+1)*sizeof(char16_t)); if (buf) {