mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-08 18:59:02 +02:00
LazUtils: Added GetLazNormalizedFilename
This commit is contained in:
parent
72a834edba
commit
f856a8cc8c
@ -37,6 +37,7 @@ function CompareFileExt(const Filename, Ext: string): integer;
|
|||||||
function FilenameExtIs(const Filename,Ext: string; CaseSensitive: boolean=false): boolean;
|
function FilenameExtIs(const Filename,Ext: string; CaseSensitive: boolean=false): boolean;
|
||||||
function FilenameExtIn(const Filename: string; Exts: array of string;
|
function FilenameExtIn(const Filename: string; Exts: array of string;
|
||||||
CaseSensitive: boolean=false): boolean;
|
CaseSensitive: boolean=false): boolean;
|
||||||
|
function GetLazNormalizedFilename(const Filename: string): string;
|
||||||
|
|
||||||
function DirPathExists(DirectoryName: string): boolean;
|
function DirPathExists(DirectoryName: string): boolean;
|
||||||
function DirectoryIsWritable(const DirectoryName: string): boolean;
|
function DirectoryIsWritable(const DirectoryName: string): boolean;
|
||||||
@ -471,6 +472,18 @@ begin
|
|||||||
Result := False;
|
Result := False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function GetLazNormalizedFilename(const Filename: string): string;
|
||||||
|
begin
|
||||||
|
{$IFDEF CaseInsensitiveFilenames}
|
||||||
|
Result:=UTF8UpperCase(Filename);
|
||||||
|
{$ELSE}
|
||||||
|
Result:=Filename;
|
||||||
|
{$ENDIF}
|
||||||
|
{$IFDEF darwin}
|
||||||
|
Result := GetDarwinNormalizedFilename(Result);
|
||||||
|
{$ENDIF}
|
||||||
|
end;
|
||||||
|
|
||||||
{$IFDEF darwin}
|
{$IFDEF darwin}
|
||||||
function GetDarwinSystemFilename(Filename: string): string;
|
function GetDarwinSystemFilename(Filename: string): string;
|
||||||
var
|
var
|
||||||
|
Loading…
Reference in New Issue
Block a user