[][src]Function voca_rs::query::is_capitalize

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

Checks whether subject is capitalized and the rest of subject is converted to lower case.

Arguments

Example

use voca_rs::*;
query::is_capitalize("");
// => true
query::is_capitalize("John has a motorcycle");
// => true
query::is_capitalize("the world is yours");
// => false
query::is_capitalize("Żółć niedźwiedzia");
// => true
use voca_rs::Voca;
"John has a motorcycle"._is_capitalize();
// => true