[][src]Function voca_rs::query::is_snake_case

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

Checks whether subject is snake_cased.

Arguments

Example

use voca_rs::*;
query::is_snake_case("");
// => true
query::is_snake_case("bird_flight");
// => true
query::is_snake_case("bird flight");
// => false
query::is_snake_case("-BIRD-FLIGHT-");
// => false
use voca_rs::Voca;
"bird_flight"._is_snake_case();
// => true