MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / BaseFileName

Function BaseFileName

view/sharedcache/core/Utility.cpp:132–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132std::string BaseFileName(const std::string& path)
133{
134 auto lastSlashPos = path.find_last_of("/\\");
135 if (lastSlashPos != std::string::npos)
136 return path.substr(lastSlashPos + 1);
137 return path;
138}
139
140bool IsSameFolderForFile(Ref<ProjectFile> a, Ref<ProjectFile> b)
141{

Callers 6

GetNameMethod · 0.85
SharedCacheBuilderMethod · 0.85
AddDirectoryMethod · 0.85
ParseHeaderForAddressMethod · 0.85
SharedCacheViewMethod · 0.85
GetPrimaryFilePathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected