Difference between revisions of "Capitalize"
From SCAR Divi Manual
(Created page with "==Definition== <func>function Capitalize(S: AnsiString): AnsiString;</func> ==Availability== SCAR Divi 3.00 > Current ==Description== Capitalizes a string '''S''' by changi...") |
(→Definition) |
||
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
− | < | + | <source lang="scar" lines="false"> |
+ | function Capitalize(S: AnsiString): AnsiString; | ||
+ | </source> | ||
==Availability== | ==Availability== |
Revision as of 11:26, 26 June 2011
Definition
function Capitalize(S: AnsiString): AnsiString;
Availability
SCAR Divi 3.00 > Current
Description
Capitalizes a string S 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!