1 2 3 4 5 6 7 8 9 10 11 12 13
//! String and character case conversion. use rune_macros::defun; #[defun] fn capitalize(s: &str) -> String { titlecase::titlecase(s) } #[defun] fn upcase(s: &str) -> String { // TODO: use unicode s.to_uppercase() }