diff options
author | Elliott Hughes <enh@google.com> | 2021-04-14 18:26:39 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-04-14 18:26:39 +0000 |
commit | ca3794ea6802b2661c3d8ed6f3fabaf8c9da892c (patch) | |
tree | 7974b6e79a0ba88666352515dbf9df250083b8e6 /libutils/String8.cpp | |
parent | c4683fb99d70a59c530312a6d354afba15a454eb (diff) | |
parent | 450f66bd8fbd0e5f13ddb40365ef1eb48d61db29 (diff) |
Merge "Remove String8::toUpper()." am: 450f66bd8f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1673886
Change-Id: I981fd2a3da5f4a918b9bfae7cf0df626e7ca68a4
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 fad130b1b..2974aa300 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 |