andgineer / TRegExpr

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

compiling errors on Delphi 2010 #244

Closed mirkasp closed 3 years ago

mirkasp commented 3 years ago

Hi, There are errors when compiling on Delphi 2010:

[DCC Fatal Error] regexpr.pas(116): F1026 File not found: 'System.Character.dcu' and [DCC Error] regexpr.pas(859): E2441 Inline function declared in interface section must not use local symbol 'PtrPair'

Best regards MirKasp

Alexey-T commented 3 years ago

Is unit System.Character in D2010? http://docwiki.embarcadero.com/RADStudio/Sydney/en/Character_Manipulation_Routines

it is in D 10.4. in what D did this unit appear?

mirkasp commented 3 years ago

Yes, but without prefix "System." - only "Character.pas" Only two files have a prefix: "Generics.Collections.pas" and "Generics.Defaults.pas". All other source files have single-member names, for example: StrUtils.pas, Classes.pas, AnsiStrings.pas, etc.

Alexey-T commented 3 years ago

Can you make the easy fix, and post your Pull req? I dont have Delph now.

andgineer commented 3 years ago

@mirkasp Is the problem solved? could you please close the ticket?

mirkasp commented 3 years ago

Yes, it's work !