Changeset 28 for trunk/UHtmlClasses.pas
- Timestamp:
- Sep 10, 2022, 10:21:48 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UHtmlClasses.pas
r26 r28 241 241 I := 1; 242 242 Matched := True; 243 while (I < Length(Source)) and Matched do begin243 while (I <= Length(Source)) and Matched do begin 244 244 Matched := False; 245 if (Source[I] >= 'A') and (Source[I] <= 'Z') then Matched := True ;246 if (Source[I] >= 'a') and (Source[I] <= 'z') then Matched := True;247 if (Source[I] >= '0') and (Source[I] <= '9') then Matched := True;248 for J := 1 to Length(Allowed) do245 if (Source[I] >= 'A') and (Source[I] <= 'Z') then Matched := True 246 else if (Source[I] >= 'a') and (Source[I] <= 'z') then Matched := True 247 else if (Source[I] >= '0') and (Source[I] <= '9') then Matched := True 248 else for J := 1 to Length(Allowed) do 249 249 if Source[I] = Allowed[J] then Matched := True; 250 250 if Matched then Inc(I); 251 251 end; 252 252 if (Delimiter = Copy(Source, I, Length(Delimiter))) or (I = Length(Source)) then begin 253 Output := Copy(Source, 1, I -1);253 Output := Copy(Source, 1, I - 1); 254 254 Delete(Source, 1, Length(Output) + Length(Delimiter)); 255 255 Result := True;
Note:
See TracChangeset
for help on using the changeset viewer.