Function voca_rs::split::words

source ·
pub fn words(subject: &str) -> Vec<&str>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
    A: Allocator,
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"]