pub fn deunicode_with_tofu_cow<'input>(
s: &'input str,
custom_placeholder: &str,
) -> Cow<'input, str>
Expand description
Same as deunicode_with_tofu()
, but avoids allocating a new String
if not necessary.
You can use “\u{FFFD}” to use the usual Unicode Replacement Character.
“Tofu” is a nickname for a replacement character, which in Unicode fonts usually looks like a block of tofu.