Function voca_rs::query::is_title

source ·
pub fn is_title(subject: &str) -> bool
Expand description

Checks whether subject is a titlecased string and there is at least one character.

Arguments

  • subject - The string to verify.

Example

use voca_rs::*;
query::is_title("This Is String Example...Wow!!!");
// => true
query::is_title("This is string example....wow!!!");
// => false
use voca_rs::Voca;
"This Is String Example...Wow!!!"._is_title();
// => true