diff options
Diffstat (limited to 'src/new/mod.rs')
-rw-r--r-- | src/new/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/new/mod.rs b/src/new/mod.rs index 8d8193c..04b75ef 100644 --- a/src/new/mod.rs +++ b/src/new/mod.rs @@ -4,6 +4,7 @@ use convert_case::{Case, Casing}; use deunicode::deunicode; pub mod chapter; +pub mod replacement; pub mod section; #[derive(PartialEq, Eq, PartialOrd, Ord)] @@ -29,6 +30,10 @@ impl MangledName { pub fn as_str(&self) -> &str { &self.0 } + + pub fn try_unmangle(self) -> String { + self.0.to_case(Case::Title) + } } impl Display for MangledName { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |