pub fn words(str_input: &str) -> Vec<String>Expand description
Splits a string into words based on casing, digits, and separators.
Processes the input string by inserting spaces between words based on uppercase letters, digits, and other non-alphanumeric characters, then splits on spaces to extract words.
§Arguments
str_input- The input string to split into words
§Returns
Vec<String>- A vector of words extracted from the input string
§Examples
use lowdash::words;
let result = words("Int8Value");
assert_eq!(result, vec!["Int", "8", "Value"]);
let result = words("hello_world");
assert_eq!(result, vec!["hello", "world"]);
let result = words("fooBarBazHello");
assert_eq!(result, vec!["foo", "Bar", "Baz", "Hello"]);