We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b6b493 commit 5f47b5bCopy full SHA for 5f47b5b
include/geode/basic/filename.h
@@ -32,4 +32,7 @@ namespace geode
32
33
std::string opengeode_basic_api filename_without_extension(
34
absl::string_view path );
35
+
36
+ std::string opengeode_basic_api filepath_without_extension(
37
+ absl::string_view path );
38
} // namespace geode
src/geode/basic/filename.cpp
@@ -38,4 +38,10 @@ namespace geode
ghc::filesystem::path filepath{ to_string( path ) };
39
return filepath.filename().replace_extension( "" ).string();
40
}
41
42
+ std::string filepath_without_extension( absl::string_view path )
43
+ {
44
+ ghc::filesystem::path filepath{ to_string( path ) };
45
+ return filepath.replace_extension( "" ).string();
46
+ }
47
0 commit comments