[][src]Function voca_rs::manipulate::tr

pub fn tr(subject: &str, from: &str, to: &str) -> String

Translates characters or replaces substrings in subject.

Arguments

Example

use voca_rs::*;
manipulate::tr("hello", "el", "ip");
// => "hippo"
manipulate::tr("légèreté", "éè", "ee");
// => "legerete"
use voca_rs::Voca;
"hello"._tr("el", "ip");
// => "hippo"