initcap

Function initcap 

Source
fn initcap<T: OffsetSizeTrait>(args: &[ArrayRef]) -> Result<ArrayRef>
Expand description

Converts the first letter of each word to upper case and the rest to lower case. Words are sequences of alphanumeric characters separated by non-alphanumeric characters.

Example:

initcap('hi THOMAS') = 'Hi Thomas'