Function idna::deprecated::map_transitional

source ยท
fn map_transitional(domain: &str, transitional: bool) -> Cow<'_, str>
Expand description

Performs preprocessing equivalent to UTS 46 transitional processing if transitional is true. If transitional is false, merely lets the input pass through as-is (for call site convenience).

The output of this function is to be passed to Uts46::process.