MCPcopy Create free account
hub / github.com/crownengine/crown / getFileName

Method getFileName

3rdparty/bx/src/filepath.cpp:387–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385 }
386
387 StringView FilePath::getFileName() const
388 {
389 StringView fileName = strRFind(m_filePath, '/');
390 if (!fileName.isEmpty() )
391 {
392 return StringView(fileName.getPtr()+1);
393 }
394
395 return getCPtr();
396 }
397
398 StringView FilePath::getBaseName() const
399 {

Callers 1

removeMethod · 0.80

Calls 3

strRFindFunction · 0.85
StringViewClass · 0.50
isEmptyMethod · 0.45

Tested by

no test coverage detected