Capitalize

From SCAR Divi Manual
Jump to: navigation, search

Definition

function Capitalize(const Str: AnsiString): AnsiString;

Availability

SCAR Divi 3.00 > Current

Description

Capitalizes a string Str by changing it completely to lower-case and then changing the first letter of each word to upper-case.

Example

begin
  WriteLn(Capitalize('hello world!'));
end.

Output:

Hello World!

See Also