summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-11-06 20:37:06 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-11-06 20:37:06 +0000
commit590853667345d6fb191764b9d0bd2ff13589e3a3 (patch)
tree94785ab40199775f4310a47c0ee991530c5cd933 /include
parenta7b966fc8d63b9b9432e1b33b33d4be6179e1fff (diff)
downloadllvm-590853667345d6fb191764b9d0bd2ff13589e3a3.tar.gz
llvm-590853667345d6fb191764b9d0bd2ff13589e3a3.tar.bz2
llvm-590853667345d6fb191764b9d0bd2ff13589e3a3.tar.xz
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')
-rw-r--r--include/llvm/ADT/StringExtras.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h
index d01d3e1d6b..4e0e018b6b 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.