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

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

Splits subject into an array of words.

Arguments

  • subject - The string to split into characters.

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"]