[][src]Function voca_rs::case::shouty_snake_case

pub fn shouty_snake_case(subject: &str) -> String

Converts the subject to SHOUTY snake case.

Arguments

Example

use voca_rs::*;
case::shouty_snake_case("learning to fly");
// => "LEARNING_TO_FLY"
case::shouty_snake_case("LearningToFly");
// => "LEARNING_TO_FLY"
case::shouty_snake_case("-Learning-To-Fly-");
// => "LEARNING_TO_FLY"
use voca_rs::Voca;
"learning to fly"._shouty_snake_case();
// => "LEARNING_TO_FLY"