| 119 | string Uppercase(StringPiece s) { return absl::AsciiStrToUpper(s); } |
| 120 | |
| 121 | void TitlecaseString(string* s, StringPiece delimiters) { |
| 122 | bool upper = true; |
| 123 | for (string::iterator ss = s->begin(); ss != s->end(); ++ss) { |
| 124 | if (upper) { |
| 125 | *ss = toupper(*ss); |
| 126 | } |
| 127 | upper = (delimiters.find(*ss) != StringPiece::npos); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | string StringReplace(StringPiece s, StringPiece oldsub, StringPiece newsub, |
| 132 | bool replace_all) { |