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

AllowDirectorySeparators

Set of characters considered directory separators

Declaration

Source position: sysunixh.inc line 34

const AllowDirectorySeparators: = ['\', '/'];

Description

AllowDirectorySeparators is the set of characters which are considered directory separators by the RTL units. By default, this is set to the most common directory separators: forward slash and backslash, so routines will work in a cross-platform manner, no matter which character was used:

AllowDirectorySeparators : set of char = ['\','/'];

If a more strict behaviour is desired, then AllowDirectorySeparators can be set to the only character allowed on the current operating system, and all RTL routines that handle filenames (splitting filenames, extracting parts of the filename and so on) will use that character only.

See also

PathSeparator

  

Character used to separate paths in a search list

DriveSeparator

  

Character used to separate directory parts.

ExtensionSeparator

  

Character which separates the filename from the file extension.

AllowDriveSeparators

  

Set of characters considered drive separators


Documentation generated on: Sep 28 2017