pub fn split_words(s: impl AsRef<str>) -> Vec<String>Expand description
Split the input string into a vector of its words (based on the position of capital letters or numbers).
Note: This function will split words based on the position of capital letters or numbers.
§Arguments
s- The input string to split into words.
§Returns
Returns a vector containing the words extracted from the input string.
§Example
use rufl::string;
let words = string::split_words("fooBarFoo123");
assert_eq!(words, vec!["foo", "Bar", "Foo", "123"]);