RAD Studio VCL Reference
|
Get fully qualified filename by performing case-insensitive filename search looking for a close match.
function ExpandFileNameCase(const FileName: AnsiString; out MatchFound: TFilenameCaseMatch): AnsiString; overload;
AnsiString ExpandFileNameCase(const AnsiString FileName, TFilenameCaseMatch MatchFound);
ExpandFileNameCase returns a fully qualified filename like ExpandFileName, but performs a case-insensitive filename search looking for a close match in the actual file system, differing only in uppercase versus lowercase of the letters. This is useful to convert user input into usable file names or to convert filename data created on a case-insensitive file system (such as Windows) to something usable on a case-sensitive file system (such as Linux).
The MatchFound out parameter indicates what kind of match was found in the file system and what the function result is based upon (in order of increasing difficulty or complexity):
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|