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

Method setPathFile

DAEValidator/library/src/Uri.cpp:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 void Uri::setPathFile(const string & filename)
89 {
90 auto pf = pathFile();
91 if (!pf.empty())
92 {
93 auto pos = mPath.rfind(pf);
94 mPath.replace(pos, pf.length(), filename);
95 rebuild_fast();
96 }
97 }
98
99 // https://techtavern.wordpress.com/2009/04/06/regex-that-matches-path-filename-and-extension/
100 static const regex parse_path_regex("^(.*/)?(?:$|(.+?)(?:(\\.[^.]*$)|$))");

Callers 2

checkSchemaMethod · 0.45
TEST_METHODFunction · 0.45

Calls 2

lengthMethod · 0.80
emptyMethod · 0.45

Tested by 1

TEST_METHODFunction · 0.36