Function difft::words::split_words
source · pub(crate) fn split_words(s: &str) -> Vec<&str>
Expand description
Split s
into a vec of things that look like words and individual
non-word characters.
“foo..bar23” -> vec![“foo”, “.”, “.”, “bar23”]
See also split_words_and_numbers
. Both these functions are hot,
so they are separate implementations rather than passing a bool to
customise number handling.