basename.h 420 B

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