[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sysutils' (#rtl)

SetDirSeparators

Set the directory separators to the known directory separators.

Declaration

Source position: finah.inc line 41

function SetDirSeparators(

  const FileName: UnicodeString

):UnicodeString;

function SetDirSeparators(

  const FileName: RawByteString

):RawByteString;

Description

SetDirSeparators returns FileName with all possible DirSeparators replaced by OSDirSeparator.

Errors

None.

See also

ExpandFileName

  

Expand a relative filename to an absolute filename.

ExtractFilePath

  

Extract the path from a filename.

ExtractFileDir

  

Extract the drive and directory part of a filename.

Example

Program Example47;

{ This program demonstrates the SetDirSeparators function }

Uses sysutils;

Begin
  Writeln (SetDirSeparators('/pp\bin/win32\ppc386'));
End.

Documentation generated on: Mar 17 2017