Skip to main content

split_identifier

Function split_identifier 

Source
pub fn split_identifier(ident: &str) -> Vec<String>
Expand description

Split an identifier into lowercased sub-tokens, camelCase + snake_case aware, keeping the compound form. getHTTPResponse -> {gethttpresponse, get, http, response}; my_func -> {my_func, my, func}.