2 file-path.hh -- declare Path and File_path
4 source file of the Flower Library
6 (c) 1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
17 search in directories for a file.
19 Abstraction of PATH variable. An interface for searching input files.
20 Search a number of dirs for a file.
22 TODO: add a unix style PATH interface
33 String to_string () const;
36 class File_path : private Array<String>
39 String find (String nm) const;
42 void prepend (String str) { Array<String>::insert (str, 0); }
43 String to_string ()const;
44 bool try_add (String str);
46 void parse_path (String);
49 Path split_path (String path);
51 #endif /* FILE_PATH */