Recent

Author Topic: Regexpr uses Widestring  (Read 1852 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Regexpr uses Widestring
« on: February 16, 2016, 08:58:42 pm »
Code: Pascal  [Select][+][-]
  1. type
  2.  {$IFDEF UniCode}
  3.  PRegExprChar = PWideChar;
  4.  RegExprString = WideString;
  5.  REChar = WideChar;
  6.  {$ELSE}
  7.  
Why using Widestring. UnicodeString is refer-counted and so more efficient. RE will be faster with
UnicodeString.

 

TinyPortal © 2005-2018