3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS.
13 #include "support/globbing.h"
14 #include "support/path.h"
25 void glob(vector<string> & matches,
26 string const & pattern,
27 string const & working_dir,
33 glob_buffer.gl_offs = 0;
34 glob(pattern.c_str(), flags, 0, &glob_buffer);
36 matches.insert(matches.end(),
38 glob_buffer.gl_pathv + glob_buffer.gl_pathc);
40 globfree(&glob_buffer);
43 } // namespace support