Function rustla::common::normalize_refname[][src]

pub fn normalize_refname(name: &str) -> String

Normalizes the given &str according to the reStructuredText specification. In this context, normalization means converting any contiguous whitespace into a single ASCII space character and converting letters to their lower-case variants.

Note

This might return something nonsensical, as converting a single multi-scalar grapheme into lower-case will return the multiple constituent “characters” as their lower-case variants.