[llvm-commits] CVS: llvm/include/Support/StringExtras.h
Misha Brukman
brukman at cs.uiuc.edu
Mon Jul 19 17:52:26 PDT 2004
Changes in directory llvm/include/Support:
StringExtras.h updated: 1.17 -> 1.18
---
Log message:
isupper() and tolower() are declared in <ctype.h>
---
Diffs of the changes: (+3 -3)
Index: llvm/include/Support/StringExtras.h
diff -u llvm/include/Support/StringExtras.h:1.17 llvm/include/Support/StringExtras.h:1.18
--- llvm/include/Support/StringExtras.h:1.17 Mon Jul 12 15:25:04 2004
+++ llvm/include/Support/StringExtras.h Mon Jul 19 19:52:16 2004
@@ -16,6 +16,7 @@
#include "Support/DataTypes.h"
#include <string>
+#include <ctype.h>
#include <stdio.h>
namespace llvm {
@@ -51,7 +52,6 @@
}
if (isNeg) *--BufPtr = '-'; // Add negative sign...
-
return std::string(BufPtr);
}
@@ -98,9 +98,9 @@
}
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;
}
More information about the llvm-commits
mailing list