Changeset 28 for trunk/UHtmlClasses.pas


Ignore:
Timestamp:
Sep 10, 2022, 10:21:48 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Do not create all application forms at initialization phase but dynamically.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UHtmlClasses.pas

    r26 r28  
    241241  I := 1;
    242242  Matched := True;
    243   while (I < Length(Source)) and Matched do begin
     243  while (I <= Length(Source)) and Matched do begin
    244244    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) do
     245    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
    249249      if Source[I] = Allowed[J] then Matched := True;
    250250    if Matched then Inc(I);
    251251  end;
    252252  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);
    254254    Delete(Source, 1, Length(Output) + Length(Delimiter));
    255255    Result := True;
Note: See TracChangeset for help on using the changeset viewer.