[][src]Crate reword

Provides functions for human readable formatting of words and sentences.

let s = "(Even),Olsson&Rogstadkjærnet?";
assert_eq!(reword::name(s), "Even Olsson Rogstadkjærnet");
assert_eq!(reword::name_with_limit(s, 4), "EOR");

Functions

and_join

Join the list with an 'and' before the last element of the list.

name

Formats the input string as a name.

name_with_limit

Formats the input string as a name and limits the length of the name.

or_join

Join the list with an 'or' before the last element of the list.

username

Creates a username from the provided string.

username_with_limit

Creates a username from the provided string and limit.