Function voca_rs::split::graphemes

source ·
pub fn graphemes(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 graphemes

Arguments

  • subject - The string to split into characters.

Example

use voca_rs::*;
split::graphemes("a̐éö̲\r\n");
// => ["a̐", "é", "ö̲", "\r\n"]
use voca_rs::Voca;
"a̐éö̲\r\n"._graphemes();
// => ["a̐", "é", "ö̲", "\r\n"]