titlecase(
titlecase(
TEXT
)

The titlecase( function capitalizes first character of each word, but not articles, prepositions, and conjunctions under 5 characters (unless they are the first or last word in the text).

Parameters

This function has one parameter:

text – the text to be converted.

Description

This function capitalizes first character of each word, but not articles, prepositions, and conjunctions under 5 characters (unless they are the first or last word in the text).

    titlecase("this or that") ☞ This or That
    titlecase("WAR AND PEACE") ☞ War and Peace
    titlecase("of mice and men") ☞ Of Mice and Men

See Also

- lower( -- converts text to lower case.
- mixedupperword( -- converts lower case words to Initial Caps, but leaves mixed case words alone.
- straightquotes( -- converts any "smart quotes" in the text into straight quotes.
- stripaccents( -- removes accents from any characters in the text.
- switchmatch( -- chooses from a list of values based on a wildcard match.
- switchmatchexact( -- chooses from a list of values based on a wildcard match.
- upper( -- converts text to UPPER CASE (all caps).
- upperword( -- converts text to Initial Caps.

History

Version | Status | Notes
10.2 | New | New in this version.