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

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

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