| 85 | } |
| 86 | |
| 87 | std::string SearchPath::getPaths( const std::string &separator ) const |
| 88 | { |
| 89 | bool first = true; |
| 90 | string result; |
| 91 | for( list<path>::const_iterator it=paths.begin(); it!=paths.end(); it++ ) |
| 92 | { |
| 93 | if( first ) |
| 94 | { |
| 95 | first = false; |
| 96 | } |
| 97 | else |
| 98 | { |
| 99 | result += separator; |
| 100 | } |
| 101 | result += it->string(); |
| 102 | } |
| 103 | return result; |
| 104 | } |
| 105 | |
| 106 | boost::filesystem::path SearchPath::find( const boost::filesystem::path &file ) const |
| 107 | { |