andgineer / TRegExpr

Regular expressions (regex), pascal.
https://regex.sorokin.engineer/en/latest/
MIT License
174 stars 63 forks source link

I will add 'deprecated' symbols for FPC 3.2x #260

Closed Alexey-T closed 2 years ago

Alexey-T commented 3 years ago

@andgineer See https://gitlab.com/freepascal.org/fpc/source/-/issues/39423 , so I will do it, little later.

Alexey-T commented 2 years ago

Todo for me. add these compat properties for FPC 3.x, required by FPC guys.

    function ExecNext: boolean; overload;

    function ExecPos(AOffset: integer; ATryOnce: boolean): boolean; overload;

    class function InvertCaseFunction(const Ch: REChar): REChar;

    property UseUnicodeWordDetection: boolean read FUseUnicodeWordDetection write FUseUnicodeWordDetection;

    property LinePairedSeparator: RegExprString read GetLinePairedSeparator write SetLinePairedSeparator; // ###0.941

    property InvertCase: TRegExprInvertCaseFunction read fInvertCase write fInvertCase; // ##0.935

    property UseOsLineEndOnReplace: boolean read FUseOsLineEndOnReplace write SetUseOsLineEndOnReplace;

    Property EmptyInputRaisesError : Boolean Read FEmptyInputRaisesError Write FEmptyInputRaisesError;
Alexey-T commented 2 years ago

merged.