[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Separates the specified value into file name and extension values.
Source position: masks.pas line 277
protected class procedure TWindowsMaskUTF8.SplitFileNameExtension( |
const aSourceFileName: string; |
out aFileName: string; |
out aExtension: string; |
aIsMask: Boolean = False |
); |
aSourceFileName |
|
Value examined and separated into its component values. |
aFileName |
|
File name portion of the specified source file name. |
aExtension |
|
File extension portion of the specified source file name. |
aIsMask |
|
True if the source file name is treated as a mask specification for a file name and not a file extension; such as '.foo'. |
SplitFileNameExtension is a method used to separate the value in ASourceFileName into file name and file extension values.
The values are returned in the AFileName and AExtension arguments. AExtension can contain an empty string ('') if a file extension is not found in ASourceFileName.
AIsMask indicates whether the value in ASourceFileName is treated as a mask specification instead of a file name. When set to True, a value like '.foo' is treated as a mask where the file name is '.foo' instead of a file extension, like a hidden file name on UNIX-like file systems.
Version 4.0 | Generated 2025-05-03 | Home |