Extending REXX

Capitalise, Capitalize and ProperCase function

Usage:

  Result = Capitalise ( string )

This function accepts a string of tokens string and returns the same string but with the initial letter of each token in upper case and the remainder of each token in lower case. Capitalize and ProperCase have identical function to Capitalise.

Here are some examples

   Capitalise('FRED BLOGGS')   -> Fred Bloggs
   ProperCase('great britain') -> Great Britain

See also SwitchCase.