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

Method getBaseName

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

Source from the content-addressed store, hash-verified

396 }
397
398 StringView FilePath::getBaseName() const
399 {
400 const StringView fileName = getFileName();
401 if (!fileName.isEmpty() )
402 {
403 StringView ext = strFind(fileName, '.');
404 if (!ext.isEmpty() )
405 {
406 return StringView(fileName.getPtr(), ext.getPtr() );
407 }
408
409 return fileName;
410 }
411
412 return StringView();
413 }
414
415 StringView FilePath::getExt() const
416 {

Callers 1

baseNameFunction · 0.80

Calls 3

strFindFunction · 0.85
StringViewClass · 0.50
isEmptyMethod · 0.45

Tested by

no test coverage detected