std::core::string

replace

fn String String.replace(self, Allocator allocator, String needle, String new_str) @nodiscard
Replace all instances of one substring with a different string.

Parameters