Recent

Author Topic: TRegExpr fork from Alexey Torgashin  (Read 1594 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
TRegExpr fork from Alexey Torgashin
« on: November 13, 2019, 01:20:20 pm »
https://github.com/andgineer/TRegExpr/issues/22
Please test the patch, first test it on Github repo (FPC compatible), i am not sure i did all the things correct.
« Last Edit: January 04, 2020, 01:43:18 pm by Alextp »

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: My patch for TRegExpr non-capturing groups
« Reply #1 on: December 18, 2019, 08:53:49 pm »
Last changes. Later will suggest this to FPC...

 v. 0.966 2019.12.18
 -=- (^) Reworked opcode for char-classes [], now opcode is stored as char pairs
  (Kind,Data) without null-terminator, which allows to have null-char in char-classes,
  and later have meta-chars like \W \D \S in char-classes. By Alexey Torgashin.

 v. 0.964 2019.12.12
 -=- (^) Add define UseWordChars (off by default): allows property WordChars.
 -=- (^) Add define UseSpaceChars (off by default): allows property SpaceChars.
  By Alexey Torgashin.

 v. 0.962 2019.12.08
 -=- (^) Ifdef UnicodeWordDetection works also on Delphi 2009+.
  By Alexey Torgashin.
 -=- (^) Property UseUnicodeWordDetection default changed to True.
 -=- (^) In Unicode mode on Delphi 2009+, UnicodeString type is used.
 -=- (^) Formatted regexpr.pas using Embarcadero Delphi Formatter.exe.

 v. 0.960 2019.12.03
 -=- (+) Support \V, \H (counterparts to \v, \h). By Alexey Torgashin.
 -=- (+) Support control escape sequences \cA...\cZ. By Alexey Torgashin.
 -=- (+) Expression can contain NULL chars. By Alexey Torgashin.

 v. 0.957 2019.11.23
 -=- (+) InputString can contain NULL chars. By Alexey Torgashin.
 -=- (^) Rework UpperCase/LowerCase/InvertCase for FPC+Delphi.
  By Alexey Torgashin.

 v. 0.955 2019.11.20
 -=- (+) Support meta chars \v (vertical white space), \h (horizontal
  white space). By Alexey Torgashin.

 v. 0.954 2019.11.14
 -=- (^) Changed type of InputString, Expression from PChar to string.
  By Alexey Torgashin.
 -=- (+) Support non-capturing groups (?:...). By Alexey Torgashin.


AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: TRegExpr fork from Alexey Torgashin
« Reply #2 on: January 04, 2020, 02:34:45 pm »
Wrong message from me, deleted: wrong speed testing, because 1st run of program was much slower, and i compared 1st run with 2nd-3rd runs.

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: TRegExpr fork from Alexey Torgashin
« Reply #3 on: January 08, 2020, 05:38:34 pm »
I have found big slowdown of TRegExpr benchmark test which calls Exec/ExecNext on a big string (my test had 19M string).
https://github.com/andgineer/TRegExpr/issues/129

Will tell this to SynEdit author to patch his version.

AlexTP

  • Hero Member
  • *****
  • Posts: 2365
    • UVviewsoft
Re: TRegExpr fork from Alexey Torgashin
« Reply #4 on: January 19, 2020, 06:47:08 pm »
Merged to FPC 3.3.

 

TinyPortal © 2005-2018