comparison host/tools/configtool/common/win32/CTCommonDoc.cpp @ 78:59d97b6ba612 ecos-sw-2000-03-28

Merge from eCos master repository on 2000-03-28-19:50:47-BST
author jlarmour
date Tue, 28 Mar 2000 20:13:29 +0000
parents 435cced73e2f
children 6736c52df507
comparison
equal deleted inserted replaced
77:abb6bd809e81 78:59d97b6ba612
1742 } 1742 }
1743 1743
1744 bool CConfigToolDoc::QualifyDocURL(CString &strURL) 1744 bool CConfigToolDoc::QualifyDocURL(CString &strURL)
1745 { 1745 {
1746 if(-1==strURL.Find(_T("://"))){ 1746 if(-1==strURL.Find(_T("://"))){
1747 // Relative URL - qualify it as a file URL
1748 strURL=DocBase()+CFileName(strURL);
1749 strURL.Replace(_TCHAR('/'),_TCHAR('\\')); 1747 strURL.Replace(_TCHAR('/'),_TCHAR('\\'));
1748 if (! CFileName (strURL).IsFile ()) { // if not an absolute filepath
1749 strURL = DocBase () + CFileName (strURL); // prepend the doc directory path
1750 }
1750 strURL=_T("file://")+strURL; 1751 strURL=_T("file://")+strURL;
1751 } 1752 }
1752 1753
1753 if(0==strURL.Find(_T("file://"))){ 1754 if(0==strURL.Find(_T("file://"))){
1754 CFileName strFile(strURL.Right(strURL.GetLength()-7)); 1755 CFileName strFile(strURL.Right(strURL.GetLength()-7));