mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 04:19:12 +02:00
LCL: added comments to URL functions
git-svn-id: trunk@13485 -
This commit is contained in:
parent
eda4c84741
commit
3cc92f7af0
@ -540,12 +540,17 @@ procedure FreeLCLHelpSystem;
|
|||||||
procedure FreeUnusedLCLHelpSystem;
|
procedure FreeUnusedLCLHelpSystem;
|
||||||
|
|
||||||
// URL functions
|
// URL functions
|
||||||
|
// used names:
|
||||||
|
// URL: Type + Path + Params e.g. http://www.freepascal.org?param
|
||||||
|
// URLType: e.g. file or http
|
||||||
|
// URLPath: URL without type and without parameters (always / as path delimiter)
|
||||||
|
// URLParams: parameters appended by ? or #
|
||||||
function FilenameToURL(const Filename: string): string;
|
function FilenameToURL(const Filename: string): string;
|
||||||
function FilenameToURLPath(const Filename: string): string;
|
function FilenameToURLPath(const Filename: string): string;
|
||||||
function URLPathToFilename(const URLPath: string): string;
|
function URLPathToFilename(const URLPath: string): string;
|
||||||
procedure SplitURL(const URL: string; var URLType, URLPath, URLParams: string);
|
procedure SplitURL(const URL: string; var URLType, URLPath, URLParams: string);
|
||||||
function CombineURL(const URLType, URLPath, URLParams: string): string;
|
function CombineURL(const URLType, URLPath, URLParams: string): string;
|
||||||
function URLFilenameIsAbsolute(const Filename: string): boolean;
|
function URLFilenameIsAbsolute(const URLPath: string): boolean;
|
||||||
function FindURLPathStart(const URL: string): integer;
|
function FindURLPathStart(const URL: string): integer;
|
||||||
function FindURLPathEnd(const URL: string): integer;
|
function FindURLPathEnd(const URL: string): integer;
|
||||||
function ChompURLParams(const URL: string): string;
|
function ChompURLParams(const URL: string): string;
|
||||||
@ -659,9 +664,9 @@ begin
|
|||||||
Result:=Result+URLParams;
|
Result:=Result+URLParams;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function URLFilenameIsAbsolute(const Filename: string): boolean;
|
function URLFilenameIsAbsolute(const URLPath: string): boolean;
|
||||||
begin
|
begin
|
||||||
Result:=FilenameIsAbsolute(SetDirSeparators(Filename));
|
Result:=FilenameIsAbsolute(URLPathToFilename(URLPath));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function FindURLPathStart(const URL: string): integer;
|
function FindURLPathStart(const URL: string): integer;
|
||||||
|
Loading…
Reference in New Issue
Block a user