cruet 1.0.0

Adds String based inflections for Rust. Snake, kebab, camel, sentence, class, title and table cases as well as ordinalize, deordinalize, demodulize, foreign key, and pluralize/singularize are supported as both traits and pure functions acting on String types.
Documentation
macro_rules! special_cases {
    ($s:ident, $($singular:expr => $plural:expr),*) => {
        match &$s[..] {
            $(
                $singular => {
                    return $plural.to_owned();
                },
            )*
            _ => ()
        }
    }
}

/// Provides deconstantize a string.
///
/// Example string `Foo::Bar` becomes `Foo`
pub mod deconstantize;
pub use deconstantize::deconstantize;

/// Provides demodulize a string.
///
/// Example string `Foo::Bar` becomes `Bar`
pub mod demodulize;
pub use demodulize::demodulize;

/// Provides conversion to plural strings.
///
/// Example string `FooBar` -> `FooBars`
pub mod pluralize;
pub use pluralize::to_plural;

/// Provides conversion to singular strings.
///
/// Example string `FooBars` -> `FooBar`
pub mod singularize;
pub use singularize::to_singular;

mod constants;