SuperMarioOdysseyOnline/include/sead/filedevice/seadPath.h
2022-06-16 14:33:18 -07:00

22 lines
813 B
C++

#ifndef SEAD_PATH_H_
#define SEAD_PATH_H_
#include <prim/seadSafeString.h>
namespace sead
{
class Path
{
public:
static bool getDriveName(BufferedSafeString* drive_name, const SafeString& path);
static void getPathExceptDrive(BufferedSafeString* out, const SafeString& path);
static bool getExt(BufferedSafeString* ext, const SafeString& path);
static bool getFileName(BufferedSafeString* name, const SafeString& path);
static bool getBaseFileName(BufferedSafeString* name, const SafeString& path);
static bool getDirectoryName(BufferedSafeString* name, const SafeString& path);
static void join(BufferedSafeString* out, const char* path1, const char* path2);
static void changeDelimiter(BufferedSafeString* out, char delimiter);
};
} // namespace sead
#endif // SEAD_PATH_H_