mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 06:06:17 +02:00
* Patch from Ondrej to implement SameArray
This commit is contained in:
parent
bc17da25e1
commit
68cdd7073f
@ -107,9 +107,16 @@ type
|
|||||||
TLargeSetP = set of TLargeEnum;
|
TLargeSetP = set of TLargeEnum;
|
||||||
{$pop}
|
{$pop}
|
||||||
|
|
||||||
function SameArray(const A, B: array of Byte): Boolean;
|
function SameArray(const A, B: array of Byte): Boolean;
|
||||||
begin
|
var
|
||||||
Result := True;
|
I: Integer;
|
||||||
|
begin
|
||||||
|
Result := Length(A)=Length(B);
|
||||||
|
if not Result then
|
||||||
|
Exit;
|
||||||
|
for I := Low(A) to High(A) do
|
||||||
|
if A[I]<>B[I] then
|
||||||
|
Exit(False);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
const
|
const
|
||||||
|
Loading…
Reference in New Issue
Block a user