MinimizeSearchPath function
Trims the specified path, and removes empty or duplicate paths.
Declaration
function MinimizeSearchPath(const SearchPath: string): stringArguments
SearchPath | Search path(s) examined in the function. |
Function result
Search path after normalization and removal of duplicates.
Description
MinimizeSearchPath is a
String function used to trim
the path(s) specified in
SearchPath, and to remove empty or
duplicate paths in the argument. SearchPath can contain multiple path
specifications separated by the semicolon (';') character.
MinimizeSearchPath iterates over the path specifications in SearchPath and calls TrimFilename as needed. ChompPathDelim is called as well to remove trailing path delimiters as needed. Duplicate occurrence of a search path are reduced to a single occurrence.
The return value contains the value in SearchPath after normalization and removal of duplicate and empty search path specifications.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
