[][src]Function voca_rs::split::words

pub fn words(subject: &str) -> Vec<&str>

Splits subject into an array of words.

Arguments

Example

use voca_rs::*;
split::words("Sześć звёзд are dying");
// => ["Sześć", "звёзд", "are", "dying"]
split::words("LazyLoad with XMLHttpRequest and snake_case");
// => ["Lazy", "Load", "with", "XML", "Http", "Request", "and", "snake", "case"]
use voca_rs::Voca;
"Sześć звёзд are dying"._words();
// => ["Sześć", "звёзд", "are", "dying"]