[][src]Function voca_rs::query::is_train_case

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

Checks whether subject is Train-Cased.

Arguments

Example

use voca_rs::*;
query::is_train_case("");
// => true
query::is_train_case("Goodbye-Blue-Sky");
// => true
query::is_train_case("bird flight");
// => false
query::is_train_case("-BIRD-FLIGHT-");
// => false
use voca_rs::Voca;
"Goodbye-Blue-Sky"._is_train_case();
// => true