2015-05-14 22:35:07 +03:00
|
|
|
var s: string;
|
|
|
|
|
|
|
|
|
|
begin
|
|
|
|
|
s := 'ABCDEFGH';
|
|
|
|
|
writeln(s.Length);
|
|
|
|
|
writeln(s.ToLower);
|
|
|
|
|
writeln(s.Inverse);
|
2015-12-28 14:25:15 +03:00
|
|
|
s := 'красный зеленый синий красный';
|
|
|
|
|
writeln(s.Replace('красный','желтый'));
|
2015-05-14 22:35:07 +03:00
|
|
|
|
|
|
|
|
s := '12345';
|
|
|
|
|
var i: integer := s.ToInteger;
|
|
|
|
|
Print(i);
|
|
|
|
|
s := i.ToString;
|
|
|
|
|
Println(s);
|
|
|
|
|
end.
|