dirname.h 414 B

12345678910111213141516171819202122
  1. #ifndef IGL_DIRNAME_H
  2. #define IGL_DIRNAME_H
  3. #include "igl_inline.h"
  4. #include <string>
  5. namespace igl
  6. {
  7. // Function like PHP's dirname
  8. // Input:
  9. // path string containing input path
  10. // Returns string containing dirname (see php's dirname)
  11. //
  12. // See also: basename, pathinfo
  13. IGL_INLINE std::string dirname(const std::string & path);
  14. }
  15. #ifdef IGL_HEADER_ONLY
  16. # include "dirname.cpp"
  17. #endif
  18. #endif