Skip to content

Commit

Permalink
Merge pull request #242 from mvancanneyt/master
Browse files Browse the repository at this point in the history
* Fix compilation for D2009> when no FastUniCodeData is defined
  • Loading branch information
andgineer authored Feb 20, 2021
2 parents 66aa191 + 85b20bd commit c022def
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/regexpr.pas
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,12 @@ interface
// ======== Define options for TRegExpr engine
{$DEFINE Unicode} // Use WideChar for characters and UnicodeString/WideString for strings
{ off $DEFINE UnicodeEx} // Support Unicode >0xFFFF, e.g. emoji, e.g. "." must find 2 WideChars of 1 emoji
{ off $DEFINE UseWordChars} // Use WordChars property, otherwise fixed list 'a'..'z','A'..'Z','0'..'9','_'
{ off $DEFINE UseWordChars} // Use WordChars property, otherwise fixed list 'a'..'z','A'..'Z','0'..'9','_'
{ off $DEFINE UseSpaceChars} // Use SpaceChars property, otherwise fixed list
{ off $DEFINE UseLineSep} // Use LineSeparators property, otherwise fixed line-break chars
{$IFDEF FPC} // Not supported in FreePascal
{$DEFINE FastUnicodeData} // Use arrays for UpperCase/LowerCase/IsWordChar, they take 320K more memory
{$ENDIF}
{$DEFINE UseFirstCharSet} // Enable optimization, which finds possible first chars of input string
{$DEFINE RegExpPCodeDump} // Enable method Dump() to show opcode as string
{$IFNDEF FPC} // Not supported in FreePascal
Expand Down Expand Up @@ -110,6 +112,9 @@ interface
uses
Classes, // TStrings in Split method
SysUtils, // Exception
{$IFDEF D2009}
System.Character,
{$ENDIF}
Math;

type
Expand Down

0 comments on commit c022def

Please sign in to comment.