[][src]Crate wikidot_normalize

A library to provide Wikidot-compatible string normalization.

Wikidot ensures all names of pages subscribe to a particular pattern. Essentially, only the characters _, :, a-z, 0-9, and - can be outputted. Any uppercase ASCII characters are made lowercase, and any characters outside the above set are collapsed into dashes. Finally, any leading, trailing, or multiple dashes are trimmed.

Modules

prelude

A "prelude" for consumers of the wikidot-normalize crate.

Functions

is_normal

Determines if an arbitrary string is already in Wikidot normalized form.

normalize

Converts an arbitrary string into Wikidot normalized form.

normalize_decode

Converts an arbitrary string into Wikidot normalized form, first decoding percent notation.