Changeset 45 for branches/DelphiToC/UPascalSource.pas
- Timestamp:
- Aug 9, 2010, 10:34:09 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DelphiToC/UPascalSource.pas
r44 r45 336 336 begin 337 337 I := 0; 338 while (I < Count) and (LowerCase(TConstant(Items[I]).Name) <> Name) do Inc(I);338 while (I < Count) and (LowerCase(TConstant(Items[I]).Name) <> LowerCase(Name)) do Inc(I); 339 339 if I < Count then Result := TConstant(Items[I]) else begin 340 340 if Assigned(Parent.Parent) then Result := Parent.Parent.Constants.Search(Name) … … 417 417 begin 418 418 I := 0; 419 while (I < Count) and (LowerCase(TType(Items[I]).Name) <> Name) do Inc(I);419 while (I < Count) and (LowerCase(TType(Items[I]).Name) <> LowerCase(Name)) do Inc(I); 420 420 if I < Count then Result := TType(Items[I]) else begin 421 421 if Assigned(Parent.Parent) then Result := Parent.Parent.Types.Search(Name) … … 438 438 begin 439 439 I := 0; 440 while (I < Count) and (LowerCase(TVariable(Items[I]).Name) <> Name) do Inc(I);440 while (I < Count) and (LowerCase(TVariable(Items[I]).Name) <> LowerCase(Name)) do Inc(I); 441 441 if I < Count then Result := TVariable(Items[I]) else begin 442 442 if Assigned(Parent.Parent) then … … 463 463 begin 464 464 I := 0; 465 while (I < Count) and (LowerCase(TFunction(Items[I]).Name) <> Name) do Inc(I);465 while (I < Count) and (LowerCase(TFunction(Items[I]).Name) <> LowerCase(Name)) do Inc(I); 466 466 if I < Count then Result := TFunction(Items[I]) else begin 467 467 if Assigned(Parent.Parent) then Result := Parent.Parent.Methods.Search(Name) … … 533 533 begin 534 534 I := 0; 535 while (I < Count) and (TParameter(Items[I]).Name <> Name) do Inc(I);535 while (I < Count) and (TParameter(Items[I]).Name <> LowerCase(Name)) do Inc(I); 536 536 if I < Count then Result := TParameter(Items[I]) 537 537 else Result := nil;
Note:
See TracChangeset
for help on using the changeset viewer.