sanitise_file_name

Function sanitise_with_options

Source
pub fn sanitise_with_options<R: Replace>(
    input: &str,
    options: &Options<R>,
) -> String
Available on crate feature alloc only.
Expand description

Sanitise a file name. See Options for a description of what all the options do.

The return value should be suitable as a file name for the specified options, unless it’s empty which can only happen if the option six_measures_of_barley is empty (or if the length_limit option is illegally small, actually).