[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Replaces path delimiters in a file path with the specified delimiter.
Source position: lazfileutils.pas line 96
function SwitchPathDelims( |
const Filename: string; |
Switch: TPathDelimSwitch |
):string; |
const Filename: string; |
Switch: Boolean |
):string; |
Filename |
|
File path and name examined in the function. |
Switch |
|
Indicates the desired path delimiter to use in the return value. |
File path and name after any path delimiter substitutions.
Filename |
|
File path and name examined in the function. |
Switch |
|
Indicates the desired path delimiter to use in the return value. |
SwitchPathDelims is an overloaded String function used to ensure that path delimiter characters in Filename use the required character.
One variant of the function uses the Switch argument to pass a TPathDelimSwitch enumeration value that identifies the path delimiter needed, and includes the following:
The function examines each character in Filename are replaces any path delimiters encountered with the value specified in Switch.
The other variant passes a Boolean value indicating if all occurrences of a path delimiter should use the character required for the platform or environment hosting the application. It calls the SwitchPathDelims function to perform the substitutions.
The return value contains the value from Filename after any path delimiter substitutions have been applied.
|
Represents the platform- or OS-specific path delimiters available in the Lazarus LCL. |
|
|
Replaces path delimiters in a file path with the specified delimiter. |
Version 3.2 | Generated 2024-02-25 | Home |