1
0
lazarus-tutorials/simple_examples/string_functions.pas

23 lines
518 B
ObjectPascal
Raw Permalink Normal View History

2021-09-23 12:15:42 -04:00
program string_functions;
{$mode objfpc}{$H+}
uses strutils, sysutils;
var st: string;
begin
2021-09-30 14:35:36 -04:00
WriteLn('Enter a word or pharase ([Enter] completes the entry)');
ReadLn(st);
WriteLn('You typed: ', st);
WriteLn('Your text converted to uppercase: ', UpperCase(st));
WriteLn('Your text converted to lowercase: ', LowerCase(st));
WriteLn('Your text converted to proper case: ',
AnsiProperCase(st, StdWordDelims));
WriteLn('Your text reversed: ', ReverseString(st));
{$IFDEF WINDOWS}
ReadLn;
{$ENDIF}
2021-09-23 12:15:42 -04:00
end.