[][src]Function voca_rs::query::is_pascal_case

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

Checks whether subject is PascalCased.

Arguments

Example

use voca_rs::*;
query::is_pascal_case("");
// => true
query::is_pascal_case("BirdFlight");
// => true
query::is_pascal_case("bird flight");
// => false
query::is_pascal_case("-BIRD-FLIGHT-");
// => false
use voca_rs::Voca;
"BirdFlight"._is_pascal_case();
// => true