[][src]Function voca_rs::query::is_alpha

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

Checks whether subject contains only alpha characters.

Arguments

Example

use voca_rs::*;
query::is_alpha("");
// => false
query::is_alpha("cafe\u{0301}"); // or "café"
// => true
query::is_alpha("bart");
// => true
query::is_alpha("lisa!");
// => false
query::is_alpha("Zażółć and bart");
// => false
use voca_rs::Voca;
"bart"._is_alpha();
// => true