| 190 | // ---------------------------------------------------------------------- |
| 191 | |
| 192 | string StringReplace(const StringPiece& s, const StringPiece& oldsub, |
| 193 | const StringPiece& newsub, bool replace_all) { |
| 194 | string ret; |
| 195 | StringReplace(s, oldsub, newsub, replace_all, &ret); |
| 196 | return ret; |
| 197 | } |
| 198 | |
| 199 | |
| 200 | // ---------------------------------------------------------------------- |