-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathExplicitStringLists_defs.inc
More file actions
132 lines (105 loc) · 3.94 KB
/
ExplicitStringLists_defs.inc
File metadata and controls
132 lines (105 loc) · 3.94 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{-------------------------------------------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
-------------------------------------------------------------------------------}
{===============================================================================
Explicit string lists - defines
Version 1.1.3 (2024-05-05)
Last change 2026-02-26
©2017-2026 František Milt
Contacts:
František Milt: frantisek.milt@gmail.com
Support:
If you find this code useful, please consider supporting its author(s) by
making a small donation using the following link(s):
https://www.paypal.me/FMilt
Changelog:
For detailed changelog and history please refer to this git repository:
github.com/TheLazyTomcat/ExplicitStringLists
Dependencies:
AuxClasses - github.com/TheLazyTomcat/Lib.AuxClasses
* AuxExceptions - github.com/TheLazyTomcat/Lib.AuxExceptions
AuxTypes - github.com/TheLazyTomcat/Lib.AuxTypes
* BinaryStreamingLite - github.com/TheLazyTomcat/Lib.BinaryStreamingLite
ListSorters - github.com/TheLazyTomcat/Lib.ListSorters
MemoryBuffer - github.com/TheLazyTomcat/Lib.MemoryBuffer
StaticMemoryStream - github.com/TheLazyTomcat/Lib.StaticMemoryStream
StrRect - github.com/TheLazyTomcat/Lib.StrRect
Library AuxExceptions is required only when rebasing local exception classes
(see symbol ExplicitStringLists_UseAuxExceptions for details).
BinaryStreamingLite can be replaced by full BinaryStreaming.
Library AuxExceptions might also be required as an indirect dependency.
Indirect dependencies:
ListUtils - github.com/TheLazyTomcat/Lib.ListUtils
SimpleCPUID - github.com/TheLazyTomcat/Lib.SimpleCPUID
UInt64Utils - github.com/TheLazyTomcat/Lib.UInt64Utils
WinFileInfo - github.com/TheLazyTomcat/Lib.WinFileInfo
===============================================================================}
{!tun_end!} // ignore this line
{
ExplicitStringLists_UseAuxExceptions
If you want library-specific exceptions to be based on more advanced classes
provided by AuxExceptions library instead of basic Exception class, and don't
want to or cannot change code in this unit, you can define global symbol
ExplicitStringLists_UseAuxExceptions to achieve this.
}
{$IF Defined(ExplicitStringLists_UseAuxExceptions)}
{$DEFINE UseAuxExceptions}
{$IFEND}
//------------------------------------------------------------------------------
{$IFDEF FPC}
{$MODE ObjFPC}
{$MODESWITCH CLASSICPROCVARS+}
{$MODESWITCH DUPLICATELOCALS+}
{$INLINE ON}
{$DEFINE CanInline}
{$DEFINE FPC_DisableWarns}
{$MACRO ON}
{$ELSE}
{$IF CompilerVersion >= 17} // Delphi 2005+
{$DEFINE CanInline}
{$ELSE}
{$UNDEF CanInline}
{$IFEND}
{$ENDIF}
{$H+}
//- don't touch following ------------------------------------------------------
{$UNDEF ESL_STRINGLIST_OwnsObjects}
{$UNDEF ESL_STRINGLIST_CaseSensitive}
{$UNDEF ESL_STRINGLIST_Duplicates}
{$UNDEF ESL_STRINGLIST_Sorted}
{$UNDEF ESL_STRINGS_LineBreak}
{$UNDEF ESL_STRINGS_TrailingLineBreak}
{$UNDEF ESL_STRINGS_NameValueSeparator}
{$UNDEF ESL_STRINGS_Delimiter}
{$UNDEF ESL_STRINGS_StrictDelimiter}
{$UNDEF ESL_STRINGS_QuoteChar}
{$UNDEF ESL_ClassTypes}
{$UNDEF ESL_ClassDeclaration}
{$UNDEF ESL_ClassAuxiliary}
{$UNDEF ESL_ClassDelimitedTextParser}
{$UNDEF ESL_ClassImplementation}
{$UNDEF ESL_Short}
{$UNDEF ESL_Ansi}
{$UNDEF ESL_UTF8}
{$UNDEF ESL_Wide}
{$UNDEF ESL_Unicode}
{$UNDEF ESL_Default}
{$UNDEF ESL_UCS4}
{$UNDEF ESL_DEFAULT_Short}
{$UNDEF ESL_DEFAULT_Ansi}
{$UNDEF ESL_DEFAULT_Unicode}
{$IFOPT H+}
// long strings...
{$IFDEF Unicode}
// ...Unicode
{$DEFINE ESL_DEFAULT_Unicode}
{$ELSE}
// ...Ansi
{$DEFINE ESL_DEFAULT_Ansi}
{$ENDIF}
{$ELSE}
// short strings
{$DEFINE ESL_DEFAULT_Short}
{$ENDIF}