Merge "Remove String8::toUpper()."
This commit is contained in:
commit
450f66bd8f
3 changed files with 0 additions and 17 deletions
|
|
@ -426,19 +426,6 @@ void String8::toLower()
|
||||||
unlockBuffer(length);
|
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
|
// Path functions
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,9 +41,6 @@ std::vector<std::function<void(FuzzedDataProvider*, android::String8*, android::
|
||||||
},
|
},
|
||||||
|
|
||||||
// Casing
|
// Casing
|
||||||
[](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void {
|
|
||||||
str1->toUpper();
|
|
||||||
},
|
|
||||||
[](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void {
|
[](FuzzedDataProvider*, android::String8* str1, android::String8*) -> void {
|
||||||
str1->toLower();
|
str1->toLower();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,6 @@ public:
|
||||||
bool removeAll(const char* other);
|
bool removeAll(const char* other);
|
||||||
|
|
||||||
void toLower();
|
void toLower();
|
||||||
void toUpper();
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue