MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / GetDocString

Method GetDocString

Source/FamiTracker.cpp:810–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808}
809
810BOOL CDocTemplate0CC::GetDocString(CStringW &rString, DocStringIndex i) const
811{
812 CStringW strTemp, strLeft, strRight;
813 int nFindPos;
814 AfxExtractSubString(strTemp, m_strDocStrings, (int)i);
815 if (i == CDocTemplate::filterExt) {
816 nFindPos = strTemp.Find(';');
817 if (-1 != nFindPos) {
818 //string contains two extensions
819 strLeft = strTemp.Left(nFindPos + 1);
820 strRight = strTemp.Right(strTemp.GetLength() - nFindPos - 1);
821 strTemp = strLeft + strRight;
822 }
823 }
824 rString = strTemp;
825 return TRUE;
826}
827
828CDocTemplate::Confidence CDocTemplate0CC::MatchDocType(LPCWSTR lpszPathName, CDocument *&rpDocMatch)
829{

Callers 1

InitInstanceMethod · 0.80

Calls 2

FindMethod · 0.80
GetLengthMethod · 0.45

Tested by

no test coverage detected