[][src]Function voca_rs::query::is_shouty_snake_case

pub fn is_shouty_snake_case(subject: &str) -> bool

Checks whether subject is SHOUTY_SNAKE_CASED.

Arguments

Example

use voca_rs::*;
query::is_shouty_snake_case("");
// => true
query::is_shouty_snake_case("BIRD_FLIGHT");
// => true
query::is_shouty_snake_case("bird flight");
// => false
query::is_shouty_snake_case("-BIRD-FLIGHT-");
// => false
use voca_rs::Voca;
"BIRD_FLIGHT"._is_shouty_snake_case();
// => true