| 790 | /*********************************************/ |
| 791 | |
| 792 | void String::replace(char find, char replace) |
| 793 | { |
| 794 | auto buf = buffer(); |
| 795 | for(unsigned len = length(); len > 0; --len, ++buf) { |
| 796 | if(*buf == find) { |
| 797 | *buf = replace; |
| 798 | } |
| 799 | } |
| 800 | } |
| 801 | |
| 802 | bool String::replace(const String& find, const String& replace) |
| 803 | { |