mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 18:59:11 +02:00
parent
6c0a15eb09
commit
f32d7898f8
@ -280,6 +280,7 @@ type
|
|||||||
{$IFDEF UnicodeWordDetection}
|
{$IFDEF UnicodeWordDetection}
|
||||||
FUseUnicodeWordDetection: boolean;
|
FUseUnicodeWordDetection: boolean;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
FEmptyImputRaisesError : Boolean;
|
||||||
|
|
||||||
CharCheckers: TRegExprCharCheckerArray;
|
CharCheckers: TRegExprCharCheckerArray;
|
||||||
CharCheckerInfos: TRegExprCharCheckerInfos;
|
CharCheckerInfos: TRegExprCharCheckerInfos;
|
||||||
@ -616,6 +617,9 @@ type
|
|||||||
property UseOsLineEndOnReplace: boolean read FUseOsLineEndOnReplace write SetUseOsLineEndOnReplace;
|
property UseOsLineEndOnReplace: boolean read FUseOsLineEndOnReplace write SetUseOsLineEndOnReplace;
|
||||||
|
|
||||||
property SlowChecksSizeMax: integer read fSlowChecksSizeMax write fSlowChecksSizeMax;
|
property SlowChecksSizeMax: integer read fSlowChecksSizeMax write fSlowChecksSizeMax;
|
||||||
|
|
||||||
|
// Raise error when input string is empty
|
||||||
|
Property EmptyImputRaisesError : Boolean Read FEmptyImputRaisesError Write FEmptyImputRaisesError;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -4176,6 +4180,7 @@ begin
|
|||||||
// Check InputString presence
|
// Check InputString presence
|
||||||
if fInputString = '' then
|
if fInputString = '' then
|
||||||
begin
|
begin
|
||||||
|
if EmptyImputRaisesError then
|
||||||
Error(reeNoInputStringSpecified);
|
Error(reeNoInputStringSpecified);
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
@ -4389,6 +4394,7 @@ begin
|
|||||||
Exit;
|
Exit;
|
||||||
if fInputString = '' then
|
if fInputString = '' then
|
||||||
begin
|
begin
|
||||||
|
if EmptyImputRaisesError then
|
||||||
Error(reeNoInputStringSpecified);
|
Error(reeNoInputStringSpecified);
|
||||||
Exit;
|
Exit;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user