Sign in Join
FPDoc Onlineexperiment

SetDirSeparators function

In unit sysutils

Set the directory separators to the known directory separators.

Declaration

pascal
function SetDirSeparators(const FileName: UnicodeString): UnicodeString

Description

SetDirSeparators returns FileName with all possible DirSeparators replaced by OSDirSeparator.

Errors

None.

See also

Example: ex47

pascal
Program Example47;

{ This program demonstrates the SetDirSeparators function }

Uses sysutils;

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.