aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-07-20 00:52:16 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-07-20 00:52:16 +0000
commit497b52f38125adb82de547abfc4c89c2b1e1f628 (patch)
treef9f64401834d56385d87b1e206c05005108c37a5 /include/llvm/ADT
parent61114619bcd71c11cf0fcd8d4de36be12406b589 (diff)
downloadexternal_llvm-497b52f38125adb82de547abfc4c89c2b1e1f628.zip
external_llvm-497b52f38125adb82de547abfc4c89c2b1e1f628.tar.gz
external_llvm-497b52f38125adb82de547abfc4c89c2b1e1f628.tar.bz2
isupper() and tolower() are declared in <ctype.h>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15016 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/StringExtras.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h
index ce268ca..51df4f1 100644
--- a/include/llvm/ADT/StringExtras.h
+++ b/include/llvm/ADT/StringExtras.h
@@ -16,6 +16,7 @@
#include "Support/DataTypes.h"
#include <string>
+#include <ctype.h>
#include <stdio.h>
namespace llvm {
@@ -51,7 +52,6 @@ static inline std::string utostr(unsigned long long X, bool isNeg = false) {
}
if (isNeg) *--BufPtr = '-'; // Add negative sign...
-
return std::string(BufPtr);
}
@@ -98,9 +98,9 @@ static inline std::string ftostr(double V) {
}
static inline std::string LowercaseString(const std::string &S) {
- std::string result (S);
+ std::string result(S);
for (unsigned i = 0; i < S.length(); ++i)
- if (isupper (result[i]))
+ if (isupper(result[i]))
result[i] = (char)tolower(result[i]);
return result;
}