MCPcopy Create free account
hub / github.com/TortoiseGit/TortoiseGit / GetFileExtension

Method GetFileExtension

src/Git/TGitPath.cpp:490–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490CString CTGitPath::GetFileExtension() const
491{
492 if(!IsDirectory())
493 {
494 EnsureBackslashPathSet();
495 const int dotPos = m_sBackslashPath.ReverseFind('.');
496 const int slashPos = m_sBackslashPath.ReverseFind('\\');
497 if (dotPos > slashPos)
498 return m_sBackslashPath.Mid(dotPos);
499 }
500 return CString();
501}
502CString CTGitPath::GetBaseFilename() const
503{
504 CString filename=GetFilename();

Callers 15

TESTFunction · 0.80
GetTempFilePathMethod · 0.80
GetPathIconIndexMethod · 0.80
ConstructTempPathMethod · 0.80
InitializeMethod · 0.80
GetCellTextMethod · 0.80
OnContextMenuListMethod · 0.80
StartDiffMethod · 0.80
FileSaveAsMethod · 0.80
OnWndMsgMethod · 0.80
AddEntryMethod · 0.80
SortCompareMethod · 0.80

Calls 1

CStringClass · 0.85

Tested by 1

TESTFunction · 0.64