Unit 'System' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]


Set of characters considered directory separators.


Source position: sysunixh.inc line 35

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


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



Character used to separate paths in a search list.



Character used to separate directory parts.



Character which separates the filename from the file extension.



Set of characters considered drive separators.

Documentation generated on: Jul 20 2024