Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 3.44 KB

File metadata and controls

30 lines (21 loc) · 3.44 KB

caps()

Alters a string by changing the casing. If the optional second argument is True the string's words will all be upper-cased. Otherwise, only the first letter of the string is upper-cased.

The function of capitalizing each contained word is not guaranteed to preserve spacing, treat punctuation in an ideal way, or handle all possible special cases.

Data signatures
caps( string to modify: $${\color{green}str}$$, [if true, init-cap all words: $${\color{green}bool}$$] )
Call signatures
caps( string to modify: Term ǁ Variable ǁ Header ǁ Function ǁ Reference, [if true, init-cap all words: Term ǁ Function ǁ Variable] )
Purpose Value
Main focus caps() produces a calculated value
Context Qualifier
Match qualifiers onmatch
Value qualifiers onmatch

[Back to index]