MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / pathFile

Method pathFile

DAEValidator/library/src/Uri.cpp:102–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 static const regex parse_path_regex("^(.*/)?(?:$|(.+?)(?:(\\.[^.]*$)|$))");
101
102 string Uri::pathFile() const
103 {
104 smatch matches;
105 if (!regex_match(mPath, matches, parse_path_regex))
106 return string();
107
108 string base = matches.str(2);
109 string ext = matches.str(3);
110
111 return base + ext;
112 }
113
114 string Uri::nativePath() const
115 {

Callers 4

onAnyDAEURIMethod · 0.80
checkSchemaMethod · 0.80
TEST_METHODFunction · 0.80
TEST_METHODFunction · 0.80

Calls 2

stringClass · 0.85
strMethod · 0.80

Tested by 2

TEST_METHODFunction · 0.64
TEST_METHODFunction · 0.64