ToTitleCase

STD.Str.ToTitleCase( source )

STD.Uni.ToTitleCase( source )

STD.Uni.LocaleToTitleCase( source, locale )

sourceA string containing the data to change case.
localeA null-terminated string containing the language and country code to use to determine correct sort order and other operations.
Return: ToTitleCase returns a STRING or UNICODE value, as appropriate.

The ToTitleCase functions return the source string with the first letter of each word in upper case and all other letters lower cased.

Example:

A := STD.Str.ToTitleCase('ABCDE ABCDE ');  //A contains 'Abcde Abcde'
B := STD.Str.ToTitleCase('john smith-jones');  //B contains 'John Smith-Jones'