HomeManualTopicsTypesSymbols

std_types::string/std::to_title_case

returns the string converted to "Title Case"

Parameter

self
the string to convert

Results

None

Example

$str "this is a test" $title_case_str str.to_title_case println! title_case_str

Output

This Is A Test

Topic

Strings

Implements

std::to_title_case converts the contents to Title Case

See also

std::to_sentence_case converts a string to "Sentence case"
std::to_upper_case converts all lower case characters to UPPER CASE
std::to_lower_case converts all upper case characters to lower case
std::map_characters applies a function to each character of the string