| 696 | } |
| 697 | |
| 698 | void StringImpl::Replace(char find, char replace) |
| 699 | { |
| 700 | auto ptr = GetMutablePtr(); |
| 701 | for (int i = 0; i < mLength; i++) |
| 702 | { |
| 703 | if (ptr[i] == find) |
| 704 | ptr[i] = replace; |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | void StringImpl::Replace(const StringView& find, const StringView & replace) |
| 709 | { |
no outgoing calls