* patch by rika: simplify tscannerfile.readstring, resolves #39835

This commit is contained in:
florian 2022-07-12 22:11:49 +02:00
parent cf5feb0dca
commit 8363c48863

View File

@ -4162,32 +4162,17 @@ type
case c of
'_',
'0'..'9',
'A'..'Z' :
begin
if i<255 then
begin
inc(i);
orgpattern[i]:=c;
pattern[i]:=c;
end
else
begin
if not err then
begin
Message(scan_e_string_exceeds_255_chars);
err:=true;
end;
end;
c:=inputpointer^;
inc(inputpointer);
end;
'A'..'Z',
'a'..'z' :
begin
if i<255 then
begin
inc(i);
orgpattern[i]:=c;
pattern[i]:=chr(ord(c)-32)
if c in ['a'..'z'] then
pattern[i]:=chr(ord(c)-32)
else
pattern[i]:=c;
end
else
begin