Changeset 32 for trunk/Target/UTargetPHP.pas
- Timestamp:
- Feb 18, 2012, 8:44:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Target/UTargetPHP.pas
r31 r32 13 13 14 14 TTargetPHP = class(TTarget) 15 private 16 public 15 17 constructor Create; override; 16 18 procedure Compile; override; … … 46 48 Result := 1; 47 49 if Optimization = coNormal then 48 while ((I + 1) <= Length( Source)) and (Source[I + 1] = C) do begin50 while ((I + 1) <= Length(FSource)) and (FSource[I + 1] = C) do begin 49 51 Inc(Result); 50 52 Inc(I) … … 60 62 AddLine('$Memory = str_repeat("\0", 30000);'); 61 63 AddLine('$Position = 0;'); 62 for I := 1 to Length( Source) do begin63 case Source[I] of64 for I := 1 to Length(FSource) do begin 65 case FSource[I] of 64 66 '>': begin 65 67 Sum := CheckOccurence('>');
Note:
See TracChangeset
for help on using the changeset viewer.