/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | path_tools.cpp | 158 void SplitPath(string_view pathIn, string_view& drive, string_view& path, string_view& filename, string_view& ext) in SplitPath() argument 161 if (pathIn[0] == '/') { in SplitPath() 163 if (pathIn[2] == ':') { // 2: index of ':' in SplitPath() 166 pathIn = pathIn.substr(1); in SplitPath() 170 if (pathIn[1] == ':') { in SplitPath() 171 drive = pathIn.substr(0, 1); in SplitPath() 172 pathIn = pathIn.substr(2); // 2: remove the drive part in SplitPath() 174 auto lastSlash = pathIn in SplitPath() [all...] |
H A D | std_filesystem.cpp | 62 string StdFilesystem::ValidatePath(const string_view pathIn) const in ValidatePath() 64 auto path = NormalizePath(pathIn); in ValidatePath() 88 IFile::Ptr StdFilesystem::OpenFile(const string_view pathIn) in OpenFile() argument 90 auto path = ValidatePath(pathIn); in OpenFile() 97 IFile::Ptr StdFilesystem::CreateFile(const string_view pathIn) in CreateFile() argument 99 auto path = ValidatePath(pathIn); in CreateFile() 107 bool StdFilesystem::DeleteFile(const string_view pathIn) in DeleteFile() argument 109 auto path = ValidatePath(pathIn); in DeleteFile() 121 IDirectory::Ptr StdFilesystem::OpenDirectory(const string_view pathIn) in OpenDirectory() argument 123 auto path = ValidatePath(pathIn); in OpenDirectory() 131 CreateDirectory(const string_view pathIn) CreateDirectory() argument 141 DeleteDirectory(const string_view pathIn) DeleteDirectory() argument [all...] |
H A D | filesystem_api.cpp | 126 string_view pathIn = inPathRaw; in ResolvePath() local 128 if (pathIn.find("\\") != string_view::npos) { in ResolvePath() 129 tmp = pathIn; in ResolvePath() 131 pathIn = tmp; in ResolvePath() 138 SplitPath(pathIn, drive, path, filename, ext); in ResolvePath()
|
H A D | path_tools.h | 46 * Splits "pathIn", to it's components. accepts "/C:/" and "C:/". 48 void SplitPath(BASE_NS::string_view pathIn, BASE_NS::string_view& drive, BASE_NS::string_view& path,
|
H A D | file_manager.cpp | 50 string FileManager::FixPath(string_view pathIn) const in FixPath() 54 if (ParseUri(pathIn, protocol, path)) { in FixPath() 95 return string(pathIn); in FixPath()
|
H A D | file_manager.h | 76 BASE_NS::string FixPath(BASE_NS::string_view pathIn) const;
|
H A D | std_directory.cpp | 242 string StdDirectory::ResolveAbsolutePath(const string_view pathIn, bool isDirectory) in ResolveAbsolutePath() argument 245 auto path = pathIn; in ResolveAbsolutePath()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/mac/ |
H A D | platform_mac.cpp | 42 string_view pathIn = pathRaw; in PlatformMac() 44 if (pathIn.find("\\") != string_view::npos) { in PlatformMac() 45 tmp = pathIn; in PlatformMac() 47 pathIn = tmp; in PlatformMac() 53 if (pathIn.empty()) { in PlatformMac() 56 if (pathIn[0] != '/') { in PlatformMac() 58 normalizedPath = NormalizePath(curPath + pathIn); in PlatformMac() 60 normalizedPath = NormalizePath(pathIn); in PlatformMac()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/linux/ |
H A D | platform_linux.cpp | 41 string_view pathIn = pathRaw; in PlatformLinux() 43 if (pathIn.find("\\") != string_view::npos) { in PlatformLinux() 44 tmp = pathIn; in PlatformLinux() 46 pathIn = tmp; in PlatformLinux() 50 string_view path = pathIn; in PlatformLinux()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/windows/ |
H A D | platform_windows.cpp | 51 string_view pathIn = pathRaw; in PlatformWindows() 53 if (pathIn.find("\\") != string_view::npos) { in PlatformWindows() 54 tmp = pathIn; in PlatformWindows() 56 pathIn = tmp; in PlatformWindows() 63 SplitPath(pathIn, drive, path, filename, ext); in PlatformWindows()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/ |
H A D | ohos_filesystem.cpp | 47 string OhosFilesystem::ValidatePath(const string_view pathIn) const in ValidatePath() 49 auto path = NormalizePath(pathIn); in ValidatePath() 111 IDirectory::Ptr OhosFilesystem::OpenDirectory(BASE_NS::string_view pathIn) in OpenDirectory() argument 113 auto path = ValidatePath(pathIn); in OpenDirectory()
|
H A D | ohos_filesystem.h | 59 BASE_NS::string ValidatePath(const BASE_NS::string_view pathIn) const;
|
H A D | ohos_file.cpp | 120 bool OhosFileDirectory::Open(const BASE_NS::string_view pathIn) in Open() argument 122 auto path = pathIn; in Open()
|