mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-30 12:20:19 +02:00
* patch by rika: simplify tscannerfile.readstring, resolves #39835
This commit is contained in:
parent
cf5feb0dca
commit
8363c48863
@ -4162,32 +4162,17 @@ type
|
|||||||
case c of
|
case c of
|
||||||
'_',
|
'_',
|
||||||
'0'..'9',
|
'0'..'9',
|
||||||
'A'..'Z' :
|
'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
|
begin
|
||||||
if i<255 then
|
if i<255 then
|
||||||
begin
|
begin
|
||||||
inc(i);
|
inc(i);
|
||||||
orgpattern[i]:=c;
|
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
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user