MCPcopy Create free account
hub / github.com/catboost/catboost / CutFirstSlash

Function CutFirstSlash

tools/archiver/main.cpp:417–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417static TString CutFirstSlash(const TString& fileName) {
418 if (fileName[0] == '/') {
419 return fileName.substr(1);
420 } else {
421 return fileName;
422 }
423}
424
425struct TMappingReader {
426 TMemoryMap Map;

Callers 3

UnpackArchiveFunction · 0.85
ListArchiveFunction · 0.85
ListArchiveMd5Function · 0.85

Calls 1

substrMethod · 0.45

Tested by

no test coverage detected