diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-11-06 20:37:06 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-11-06 20:37:06 +0000 |
commit | 590853667345d6fb191764b9d0bd2ff13589e3a3 (patch) | |
tree | 94785ab40199775f4310a47c0ee991530c5cd933 /include/llvm | |
parent | a7b966fc8d63b9b9432e1b33b33d4be6179e1fff (diff) | |
download | external_llvm-590853667345d6fb191764b9d0bd2ff13589e3a3.zip external_llvm-590853667345d6fb191764b9d0bd2ff13589e3a3.tar.gz external_llvm-590853667345d6fb191764b9d0bd2ff13589e3a3.tar.bz2 |
Replace (Lower|Upper)caseString in favor of StringRef's newest methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/ADT/StringExtras.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h index d01d3e1..4e0e018 100644 --- a/include/llvm/ADT/StringExtras.h +++ b/include/llvm/ADT/StringExtras.h @@ -117,22 +117,6 @@ static inline std::string ftostr(const APFloat& V) { return "<unknown format in ftostr>"; // error } -static inline std::string LowercaseString(const std::string &S) { - std::string result(S); - for (unsigned i = 0; i < S.length(); ++i) - if (isupper(result[i])) - result[i] = char(tolower(result[i])); - return result; -} - -static inline std::string UppercaseString(const std::string &S) { - std::string result(S); - for (unsigned i = 0; i < S.length(); ++i) - if (islower(result[i])) - result[i] = char(toupper(result[i])); - return result; -} - /// StrInStrNoCase - Portable version of strcasestr. Locates the first /// occurrence of string 's1' in string 's2', ignoring case. Returns /// the offset of s2 in s1 or npos if s2 cannot be found. |