summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-11-06 18:04:43 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-11-06 18:04:43 +0000
commit589fbb1770df5f7bee1c5e24e9e8f4ca5091d528 (patch)
treef8709aafc090333009509372c0aaed069a9c0917 /include
parentcc4bcba0b9a819cd0ef5cb06a8b4972e3d6f8bf1 (diff)
downloadllvm-589fbb1770df5f7bee1c5e24e9e8f4ca5091d528.tar.gz
llvm-589fbb1770df5f7bee1c5e24e9e8f4ca5091d528.tar.bz2
llvm-589fbb1770df5f7bee1c5e24e9e8f4ca5091d528.tar.xz
ADT/StringRef: Add ::lower() and ::upper() methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143880 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/StringRef.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h
index 8396921744..6c33806896 100644
--- a/include/llvm/ADT/StringRef.h
+++ b/include/llvm/ADT/StringRef.h
@@ -327,6 +327,16 @@ namespace llvm {
bool getAsInteger(unsigned Radix, APInt &Result) const;
/// @}
+ /// @name String Operations
+ /// @{
+
+ // lower - Convert the given ASCII string to lowercase.
+ std::string lower() const;
+
+ /// upper - Convert the given ASCII string to uppercase.
+ std::string upper() const;
+
+ /// @}
/// @name Substring Operations
/// @{