[][src]Function voca_rs::manipulate::replace_all

pub fn replace_all(subject: &str, pattern: &str, replacement: &str) -> String

Replaces all matches of pattern with replacement.

Arguments

Example

use voca_rs::*;
manipulate::replace_all("swan", "wa", "u");
// => "sun"
manipulate::replace_all("domestic duck", "d", "D");
// => "Domestic Duck"
manipulate::replace_all("Café del Mar café", "é", "e");
// => "Cafe del Mar cafe"
use voca_rs::Voca;
"swan"._replace_all("wa", "u");
// => "sun"