Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 334a0b1c authored by Elliott Hughes's avatar Elliott Hughes Committed by Automerger Merge Worker
Browse files

Merge "Remove String8::toUpper()." am: 450f66bd am: ca3794ea

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1673886

Change-Id: I8ea8e22ce8846ffd74e3cbca07e4d6af9b189ea2
parents 106ee5fb ca3794ea
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -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

+0 −3
Original line number Diff line number Diff line
@@ -41,9 +41,6 @@ std::vector<std::function<void(FuzzedDataProvider*, android::String8*, android::
                },

                // Casing
                [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void {
                    str1->toUpper();
                },
                [](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void {
                    str1->toLower();
                },
+0 −1
Original line number Diff line number Diff line
@@ -130,7 +130,6 @@ public:
            bool                removeAll(const char* other);

            void                toLower();
            void                toUpper();


    /*