DSL KF Functions


dph_expandString

Synopsis

Defun: dph_expandString( string $str )@{...} String;

Description

Expands all environment variables contained in a string. The
variables must be UNIX format(i.e., $var or ${var}).

Input: the string to expand
Return: the expanded string

dph_preparePath

Synopsis

Defun: dph_preparePath( string $path )@{...} String;

Description

Prepares a file path for cross-platform use. It first expands all environment
variables in the path and then converts all path separators to
appropriate separator for the platform.

Input: file path to prepare
Return: prepared file path

dph_displayURL

Synopsis

Defun: dph_displayURL( string $url )@{...} Boolean;

Description

Displays a URL or file in a browser.

Input: HTTP based URL or a file path.
Return: TRUE if successfully started browser.