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