ReplaceAliasesInPath Method
Overloads
| ReplaceAliasesInPath(string, TDictionary<string,string>, Boolean, string, TGetPathForAliasFunc) |
Replace aliases in a path by their value and remove "../" parts. |
| ReplaceAliasesInPath(string, TDictionary<string,string>, Boolean, string, TGetPathForAliasEvent) |
Replace aliases in a path by their value and remove "../" parts.
Delphi
function ReplaceAliasesInPath(const ASourcePath: string; const AAliasList: TDictionary<string, string>; const AAllowEmptyAlias: boolean = False; const ABDSVersion: string = '23.0'; const AGetPathForAliasFunc: TGetPathForAliasFunc = 0): string
Parameters
- ASourcePath
- string
- AAliasList
- TDictionary<string, string>
- AAllowEmptyAlias
- Boolean
- ABDSVersion
- string
- AGetPathForAliasFunc
- TGetPathForAliasFunc
Returns
string
Remarks
Alias are used by Delphi/C++Builder/RADStudio IDE in project options and editor options. You can find $(BDS), $(PROJECTDIR) and others in your paths. The replacement is done from the Key/Value list, the registry keys (Delphi/C++Builder/RAD Studio is installed), the environment variables or asked to the call by AGetAliasProc.
Delphi
function ReplaceAliasesInPath(const ASourcePath: string; const AAliasList: TDictionary<string, string>; const AAllowEmptyAlias: boolean; const ABDSVersion: string; const AGetPathForAliasEvent: TGetPathForAliasEvent): string
Parameters
- ASourcePath
- string
- AAliasList
- TDictionary<string, string>
- AAllowEmptyAlias
- Boolean
- ABDSVersion
- string
- AGetPathForAliasEvent
- TGetPathForAliasEvent
Returns
string