2 path.hh -- declare File_path
4 source file of the Flower Library
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
16 search in directories for a file.
18 Abstraction of PATH variable. An interface for searching input files.
19 Search a number of dirs for a file.
21 TODO: add a unix style PATH interface
26 class File_path : private Array<String>
29 String find (String nm) const;
33 bool try_add (String str);
35 void parse_path (String);
38 /** split a path into its components.
43 String &drive, String &dirs, String &filebase, String &extension
45 void split_path (String path, String &drive, String &dirs, String &filebase, String &extension);