MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / getFileName

Method getFileName

Source/3rdParty/bx/src/filepath.cpp:381–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379 }
380
381 StringView FilePath::getFileName() const
382 {
383 StringView fileName = strRFind(m_filePath, '/');
384 if (!fileName.isEmpty() )
385 {
386 return StringView(fileName.getPtr()+1);
387 }
388
389 return getCPtr();
390 }
391
392 StringView FilePath::getBaseName() const
393 {

Callers 1

removeMethod · 0.80

Calls 3

strRFindFunction · 0.85
StringViewClass · 0.50
isEmptyMethod · 0.45

Tested by

no test coverage detected