-
Notifications
You must be signed in to change notification settings - Fork 37
/
internettoolsconfig.inc
54 lines (36 loc) · 2.09 KB
/
internettoolsconfig.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//Here you can choose which regex library to use
{$if not defined(USE_SOROKINS_REGEX) and not defined(USE_SOROKINS_DREGEX) and not defined(USE_FLRE) and not defined(USE_FLRE_WITH_CACHE)}
//{$DEFINE USE_SOROKINS_REGEX} //Sorokins' regex library included in FPC. It is quite reliable
//{$DEFINE USE_FLRE} //Bero's "Fast Light Regular Expressions" library. It is required for proper UTF-8 support in regex
{$DEFINE USE_FLRE_WITH_CACHE} //As above, but parse every regex only once
{$endif}
//here you can choose which string to double converter to use
//{$DEFINE USE_PASDBLSTRUTILS_FOR_JSON}
//{$define USE_PASDBLSTRUTILS}
//Here you can choose which Unicode database to use
{$if not defined(USE_THEO_UNICODE) and not defined(USE_BBFLRE_UNICODE) and not defined(USE_BBFULL_UNICODE) }
//{$DEFINE USE_BBFLRE_UNICODE} //FLRE's Unicode database together with normalization data required for XQuery. If FLRE is used anyways, this minimizes the file size
//{$DEFINE USE_BBFULL_UNICODE} //My upgraded port of UTF8Proc. It is complete and self-contained, but quite large.
//{$DEFINE USE_THEO_UNICODE} //Theo's port of UTF8Proc: Utf8 Tools. If you are already using it elsewhere, you might want to use it to avoid duplicated Unicode tables
{$endif}
{$DEFINE ALLOW_EXTERNAL_DOC_DOWNLOAD}
//internal checks
{$IFDEF USE_FLRE_WITH_CACHE}{$DEFINE USE_FLRE}{$ENDIF}
{$ifdef USE_SOROKINS_DREGEX}{$define USE_SOROKINS_REGEX}{$endif}
{$if not defined(USE_SOROKINS_REGEX) and not defined(USE_FLRE) and not defined(USE_FLRE_WITH_CACHE)}
{$error you need to enable one regex library define in internettoolsconfig.inc}
{$endif}
{$if not defined(USE_BBFLRE_UNICODE) and not defined(USE_BBFULL_UNICODE) and not defined(USE_THEO_UNICODE) }
{$ifdef USE_FLRE}{$define USE_BBFLRE_UNICODE}{$else}{$define USE_BBFULL_UNICODE}{$endif}
{$endif}
//internal flags
{$mode objfpc} {$H+}
{$modeswitch advancedrecords}
{$ModeSwitch typehelpers}
{$modeswitch autoderef}
{$goto on}
{$COperators on}
{$ifdef FPC_HAS_CPSTRING}{$define HAS_CPSTRING}{$endif}
{$IF FPC_FULLVERSION < 030300}
{$DEFINE POINTLESS_CASE_ELSE}
{$ENDIF}