Function voca_rs::query::is_upper_first [−][src]
pub fn is_upper_first(subject: &str) -> bool
Expand description
Checks whether subject
has the first character in upper case.
Arguments
subject
- The string to verify.
Example
use voca_rs::*;
query::is_upper_first("motorcycle");
// => false
query::is_upper_first("John");
// => true
query::is_upper_first("T1000");
// => true
query::is_upper_first("Żółć niedźwiedzia");
// => true
use voca_rs::Voca;
"John"._is_upper_first();
// => true