mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 07:39:25 +02:00
* fix for regexpr unicode mode. (multiple a move with the size of the base char type)
Patch by Ludo B., mantis #020806 git-svn-id: trunk@19754 -
This commit is contained in:
parent
2d928cbee8
commit
a19b627739
@ -1304,7 +1304,7 @@ function TRegExpr.GetMatch (Idx : integer) : RegExprString;
|
||||
then begin
|
||||
//SetString (Result, startp [idx], endp [idx] - startp [idx])
|
||||
SetLength(Result,endp [idx] - startp [idx]);
|
||||
System.Move(startp [idx]^,Result[1],length(Result));
|
||||
System.Move(startp [idx]^,Result[1],length(Result)*sizeof(REChar));
|
||||
end
|
||||
else Result := '';
|
||||
end; { of function TRegExpr.GetMatch
|
||||
|
Loading…
Reference in New Issue
Block a user