-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathocSearchPath.I
More file actions
21 lines (19 loc) · 947 Bytes
/
ocSearchPath.I
File metadata and controls
21 lines (19 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Filename: ocSearchPath.I
// Created by: frang (03June04)
//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function: OCSearchPath::search_path
// Access: Public, Static
// Description: A quick-and-easy way to search a searchpath for a
// file when you don't feel like building or keeping
// around a OCSearchPath object. This simply
// constructs a temporary OCSearchPath based on the
// indicated path string, and searches that.
////////////////////////////////////////////////////////////////////
INLINE Filename OCSearchPath::search_path(const Filename &filename,
const string &path,
const string &delimiters) {
OCSearchPath search(path, delimiters);
return search.find_file(filename);
}