[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'FileUtil' (#lazutils)

ExpandUNCFileNameUTF8

Expands the specified UTF-8-encoded UNC file name to an absolute UNC file name.

Declaration

Source position: fileutil.pas line 62

function ExpandUNCFileNameUTF8(

  const FileName: string

):string;

Arguments

FileName

  

File name expanded in the routine.

Function result

The expanded file name.

Description

ExpandUNCFileNameUTF8 is a String function used to expand the UNC file name in the FileName argument to an absolute UNC file name. It is the UTF-8-enabled equivalent of the ExpandUNCFileName routine from the FPC RTL.

ExpandUNCFileNameUTF8 calls the ExpandUNCFileName routine in RTL to get the return value for the method. Drive letters which are mapped to shared disks are replaced with the UNC device name for the mapped drive. The return value is an empty string ('') if an error occurs in ExpandUNCFileName.

See also

ExpandUNCFileName

ExpandFileName


Version 3.2 Generated 2024-02-25 Home