diff options
author | Elliott Hughes <enh@google.com> | 2021-04-14 19:58:02 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-04-14 19:58:02 +0000 |
commit | b996f3f51204f95a7233d148afb872d059ef6479 (patch) | |
tree | aef25a19e87afe751797f859d600234775d9573b /libutils/String8.cpp | |
parent | 4df2859ad4a54b78a24a66605176f5d8db2e2bad (diff) | |
parent | 334a0b1c107644c803402dff2de1f772eaae4651 (diff) |
Merge "Remove String8::toUpper()." am: 450f66bd8f am: ca3794ea68 am: 334a0b1c10
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1673886
Change-Id: Ica526ca8cb76065e4008a8dbd494beb795ea1390
Diffstat (limited to 'libutils/String8.cpp')
-rw-r--r-- | libutils/String8.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libutils/String8.cpp b/libutils/String8.cpp index 4d242a7a3..ac3208e47 100644 --- a/libutils/String8.cpp +++ b/libutils/String8.cpp @@ -426,19 +426,6 @@ void String8::toLower() unlockBuffer(length); } -void String8::toUpper() -{ - const size_t length = size(); - if (length == 0) return; - - char* buf = lockBuffer(length); - for (size_t i = length; i > 0; --i) { - *buf = static_cast<char>(toupper(*buf)); - buf++; - } - unlockBuffer(length); -} - // --------------------------------------------------------------------------- // Path functions |