Archived
1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
pascal/UNITS/BASICSTR.PAS
2001-11-30 12:14:44 +01:00

27 lines
729 B
Plaintext

unit BasicStrings;
interface
function Mid(Txt: string; Index: integer; Count: integer): string;
function Left(Txt: string; Count: integer): string;
function Right(Txt: string; Count: integer): string;
implementation
function Mid(Txt: string; Index: integer; Count: integer): string;
begin
Mid := Copy(Txt, Index, Count);
end;
function Left(Txt: string; Count: integer): string;
begin
Left := Copy(Txt, 1, Count);
end;
function Right(Txt: string; Count: integer): string;
begin
Right := Copy(Txt, Length(Txt)-Count+1, Length(Txt)-(Length(Txt)-Count));
end;
begin
WriteLn('þ Loading Unit: BasicStrings - geschrieben von RoboCop of nOOb');
end.