| 106 | //===----------------------------------------------------------------------===// |
| 107 | |
| 108 | std::string StringRef::lower() const { |
| 109 | std::string Result(size(), char()); |
| 110 | for (size_type i = 0, e = size(); i != e; ++i) { |
| 111 | Result[i] = toLower(Data[i]); |
| 112 | } |
| 113 | return Result; |
| 114 | } |
| 115 | |
| 116 | std::string StringRef::upper() const { |
| 117 | std::string Result(size(), char()); |