4
$Id: usubst.pp,v 1.1 2005/02/05 10:25:30 peter Exp $
5
This file is part of Free Pascal build tools
6
Copyright (c) 2005 by Michael Van Canneyt
8
Implements string substitutions
10
See the file COPYING.FPC, included in this distribution,
11
for details about the copyright.
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
**********************************************************************}
22
uses SysUtils,Classes;
24
// Add N=V pair to list.
25
Procedure AddToList(List : TStrings; Const N,V : String);
26
// Split NV to N/V and call AddToList
27
Function AddPair(List : TStrings; Const NV : String) : Boolean;
28
// Perform substitutions in S, from List.
29
Function DoSubStitutions(List : TStrings; Var S : String) : Integer;
33
Procedure AddToList(List : TStrings; Const N,V : String);
39
I:=List.IndexOfName(N);
54
Function AddPair(List : TStrings; Const NV : String) : Boolean;
72
Function DoSubstitutions(List : TStrings; Var S : String) : Integer;
113
Revision 1.1 2005/02/05 10:25:30 peter
114
* move tools to compiler/utils/
116
Revision 1.2 2005/01/09 15:19:03 peter
119
Revision 1.1 2005/01/09 13:36:12 michael
120
+ Initial implementation of installer tools