Lines Matching refs:std
72 static std::_tstring GetMsiProperty( MSIHANDLE handle, const std::_tstring& sProperty ) in GetMsiProperty()
74 std::_tstring result; in GetMsiProperty()
91 static std::_tstring GetGuidPart(const std::_tstring& guid, int index) in GetGuidPart()
96 if (index == 0) return std::_tstring(guid.c_str(), 8); in GetGuidPart()
97 if (index == 1) return std::_tstring(guid.c_str() + 9, 4); in GetGuidPart()
98 if (index == 2) return std::_tstring(guid.c_str() + 14, 4); in GetGuidPart()
99 if (index == 3) return std::_tstring(guid.c_str() + 19, 4); in GetGuidPart()
100 if (index == 4) return std::_tstring(guid.c_str() + 24, 12); in GetGuidPart()
102 return std::_tstring(); in GetGuidPart()
112 static std::_tstring Invert(const std::_tstring& str) in Invert()
123 return std::_tstring(buff, str.length()); in Invert()
132 static std::_tstring ConvertGuid(const std::_tstring& guid) in ConvertGuid()
134 std::_tstring convertedGuid; in ConvertGuid()
136 std::_tstring part = GetGuidPart(guid, 0); in ConvertGuid()
146 convertedGuid += Invert(std::_tstring(part.c_str(), 2)); in ConvertGuid()
147 convertedGuid += Invert(std::_tstring(part.c_str() + 2, 2)); in ConvertGuid()
153 convertedGuid += Invert(std::_tstring(part.c_str() + pos, 2)); in ConvertGuid()
159 static inline bool IsSetMsiProperty(MSIHANDLE handle, const std::_tstring& sProperty) in IsSetMsiProperty()
161 std::_tstring value = GetMsiProperty(handle, sProperty); in IsSetMsiProperty()
165 static inline void UnsetMsiProperty(MSIHANDLE handle, const std::_tstring& sProperty) in UnsetMsiProperty()
170 static inline void SetMsiProperty(MSIHANDLE handle, const std::_tstring& sProperty) in SetMsiProperty()
243 static bool SwapFiles( const std::_tstring& sFileName1, const std::_tstring& sFileName2 ) in SwapFiles()
245 std::_tstring sTempFileName = sFileName1 + TEXT(".tmp"); in SwapFiles()
252 std::_tstring mystr; in SwapFiles()
329 static std::_tstring strip( const std::_tstring& s, _TCHAR c ) in strip()
331 std::_tstring result = s; in strip()
333 std::_tstring::size_type f; in strip()
338 if ( f != std::_tstring::npos ) in strip()
340 } while ( f != std::_tstring::npos ); in strip()
345 static std::_tstring trim( const std::_tstring& rString ) in trim()
347 std::_tstring temp = rString; in trim()
352 std::_tstring::size_type len = temp.length(); in trim()
363 static bool readLine( FILE *fp, std::_tstring& rLine ) in readLine()
368 std::_tstring line; in readLine()
391 static std::_tstring getProfileString( in getProfileString()
392 const std::_tstring& aFileName, in getProfileString()
393 const std::_tstring& aSectionName, in getProfileString()
394 const std::_tstring& aKeyName, in getProfileString()
395 const std::_tstring& aDefault = _T("") ) in getProfileString()
398 std::_tstring retValue = aDefault.length() ? aDefault : _T(""); in getProfileString()
402 std::_tstring line; in getProfileString()
403 std::_tstring section; in getProfileString()
412 std::_tstring::size_type end = line.find( ']', 0 ); in getProfileString()
414 if ( std::_tstring::npos != end ) in getProfileString()
420 std::_tstring::size_type iEqualSign = line.find( '=', 0 ); in getProfileString()
422 if ( iEqualSign != std::_tstring::npos ) in getProfileString()
424 std::_tstring keyname = line.substr( 0, iEqualSign ); in getProfileString()
427 std::_tstring value = line.substr( iEqualSign + 1 /*, std::_tstring::npos */ ); in getProfileString()
448 static std::queue< std::_tstring > getProfileSections( const std::_tstring& aFileName ) in getProfileSections()
451 std::queue< std::_tstring > aResult; in getProfileSections()
457 std::_tstring line; in getProfileSections()
458 std::_tstring section; in getProfileSections()
467 std::_tstring::size_type end = line.find( ']', 0 ); in getProfileSections()
469 if ( std::_tstring::npos != end ) in getProfileSections()
487 static std::queue< std::_tstring > getProfileKeys( const std::_tstring& aFileName, const std::_tstr… in getProfileKeys()
490 std::queue< std::_tstring > aResult; in getProfileKeys()
496 std::_tstring line; in getProfileKeys()
497 std::_tstring section; in getProfileKeys()
506 std::_tstring::size_type end = line.find( ']', 0 ); in getProfileKeys()
508 if ( std::_tstring::npos != end ) in getProfileKeys()
514 std::_tstring::size_type iEqualSign = line.find( '=', 0 ); in getProfileKeys()
516 if ( iEqualSign != std::_tstring::npos ) in getProfileKeys()
518 std::_tstring keyname = line.substr( 0, iEqualSign ); in getProfileKeys()
542 std::_tstring sInstDir = GetMsiProperty( handle, TEXT("INSTALLLOCATION") ); in InstallPatchedFiles()
544 std::_tstring sProgramDir = sInstDir + TEXT("program\\"); in InstallPatchedFiles()
545 std::_tstring sPatchFile = sProgramDir + TEXT("patchlist.txt"); in InstallPatchedFiles()
547 std::queue< std::_tstring > aSectionNames; in InstallPatchedFiles()
548 std::queue< std::_tstring > aKeyNames; in InstallPatchedFiles()
559 std::_tstring sSectionName = aSectionNames.front(); in InstallPatchedFiles()
560 if ( std::_tstring(TEXT("_root")) == sSectionName ) { sSectionName = TEXT(""); } in InstallPatchedFiles()
567 std::_tstring sKeyName = aKeyNames.front(); in InstallPatchedFiles()
568 std::_tstring sValue = getProfileString( sPatchFile, sSectionName, sKeyName ); in InstallPatchedFiles()
572 std::_tstring sFileName1 = sKeyName; in InstallPatchedFiles()
573 std::_tstring sExtension = sValue; in InstallPatchedFiles()
574 std::_tstring sFileName2; in InstallPatchedFiles()
603 std::_tstring sInstDir; in UninstallPatchedFiles()
605 std::_tstring sProductKey = GetMsiProperty( handle, TEXT("FINDPRODUCT") ); in UninstallPatchedFiles()
627 std::_tstring sProgramDir = sInstDir + TEXT("program\\"); in UninstallPatchedFiles()
628 std::_tstring sPatchFile = sProgramDir + TEXT("patchlist.txt"); in UninstallPatchedFiles()
630 std::queue< std::_tstring > aSectionNames; in UninstallPatchedFiles()
631 std::queue< std::_tstring > aKeyNames; in UninstallPatchedFiles()
640 std::_tstring sSectionName = aSectionNames.front(); in UninstallPatchedFiles()
641 if ( std::_tstring(TEXT("_root")) == sSectionName ) { sSectionName = TEXT(""); } in UninstallPatchedFiles()
648 std::_tstring sKeyName = aKeyNames.front(); in UninstallPatchedFiles()
649 std::_tstring sValue = getProfileString( sPatchFile, sSectionName, sKeyName ); in UninstallPatchedFiles()
653 std::_tstring sFileName1 = sKeyName; in UninstallPatchedFiles()
654 std::_tstring sExtension = sValue; in UninstallPatchedFiles()
655 std::_tstring sFileName2; in UninstallPatchedFiles()
680 std::_tstring sInstDir = GetMsiProperty( handle, TEXT("INSTALLLOCATION") ); in IsOfficeRunning()
682 std::_tstring sResourceDir = sInstDir + TEXT("program\\resource\\"); in IsOfficeRunning()
683 std::_tstring sPattern = sResourceDir + TEXT("vcl*.res"); in IsOfficeRunning()
695 std::_tstring sResourceFile = sResourceDir + aFindFileData.cFileName; in IsOfficeRunning()
696 std::_tstring sIntermediate = sResourceFile + TEXT(".tmp"); in IsOfficeRunning()
721 std::_tstring mystr; in SetFeatureState()
725 std::_tstring sInstallPath = GetMsiProperty(handle, TEXT("INSTALLLOCATION")); in SetFeatureState()
727 std::_tstring sSetupiniPath = sInstallPath + TEXT("program\\setup.ini"); in SetFeatureState()
749 std::_tstring productCode = TEXT(szProductCode); in SetFeatureState()
750 productCode = ConvertGuid(std::_tstring(productCode.c_str() + 1, productCode.length() - 2)); in SetFeatureState()
756 std::_tstring registryKey; in SetFeatureState()
795 std::_tstring sValueName = szValueName; in SetFeatureState()
796 std::_tstring sValueData = szValueData; in SetFeatureState()
834 std::_tstring mystr; in SetNewFeatureState()
835 std::_tstring sValueName; in SetNewFeatureState()
861 std::_tstring sInstDir = GetMsiProperty( handle, TEXT("INSTALLLOCATION") ); in ShowOnlineUpdateDialog()
863 std::_tstring sProgramDir = sInstDir + TEXT("program\\"); in ShowOnlineUpdateDialog()
864 std::_tstring sSearchFile = sProgramDir + TEXT("updchk.uno.dll"); in ShowOnlineUpdateDialog()