| 287 | } |
| 288 | |
| 289 | bool |
| 290 | IsRelative(std::string const& path) |
| 291 | { |
| 292 | #ifdef US_PLATFORM_WINDOWS |
| 293 | if (path.size() > MAX_PATH) |
| 294 | { |
| 295 | return false; |
| 296 | } |
| 297 | std::wstring wpath(ToWString(path)); |
| 298 | return (TRUE == ::PathIsRelativeW(wpath.c_str())) ? true : false; |
| 299 | #else |
| 300 | return path.empty() || path[0] != DIR_SEP; |
| 301 | #endif |
| 302 | } |
| 303 | |
| 304 | std::string |
| 305 | GetAbsolute(std::string const& path, std::string const& base) |