12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef PATH_UTILS_H
- #define PATH_UTILS_H
- #include "core/ustring.h"
- _FORCE_INLINE_ String path_join(const String &e1, const String &e2) {
- return e1.plus_file(e2);
- }
- _FORCE_INLINE_ String path_join(const String &e1, const String &e2, const String &e3) {
- return e1.plus_file(e2).plus_file(e3);
- }
- _FORCE_INLINE_ String path_join(const String &e1, const String &e2, const String &e3, const String &e4) {
- return e1.plus_file(e2).plus_file(e3).plus_file(e4);
- }
- String path_which(const String &p_name);
- void fix_path(const String &p_path, String &r_out);
- bool rel_path_to_abs(const String &p_existing_path, String &r_abs_path);
- #endif
|