secureswitools/swisistools/source/interpretsislib/is_utils.h
changeset 60 245df5276b97
parent 0 ba25891c3a9e
child 81 42552535c1ac
equal deleted inserted replaced
53:ae54820ef82c 60:245df5276b97
     1 /*
     1 /*
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    73 
    73 
    74 	bool CheckSisRegistryDirPresent(const std::wstring& aDrivePath, TUint32 aUid);
    74 	bool CheckSisRegistryDirPresent(const std::wstring& aDrivePath, TUint32 aUid);
    75 
    75 
    76 	int GetStat(const std::wstring& aFile, struct stat*);
    76 	int GetStat(const std::wstring& aFile, struct stat*);
    77 
    77 
       
    78 	void ConvertToPlatformSpecificPath( TUint16* aIn, TUint32 len );
       
    79 	#ifdef __TOOLS2_LINUX__
       
    80 	void ConvertToForwardSlash( std::wstring& aIn);
       
    81 	#endif
    78 	void ConvertToLocalPath(
    82 	void ConvertToLocalPath(
    79 		std::wstring& aIn,
    83 		std::wstring& aIn,
    80 		const std::wstring& aDrivePath);
    84 		const std::wstring& aDrivePath);
    81 
    85 
    82 	int FoldedCompare(const std::wstring& aLeft, const std::wstring& aRight);
    86 	int FoldedCompare(const std::wstring& aLeft, const std::wstring& aRight);
   138 			dp18,  dp19,  dp20,  dp21,  dp22,  dp23,  dp24,  dp25,  dp26,  dp27,  
   142 			dp18,  dp19,  dp20,  dp21,  dp22,  dp23,  dp24,  dp25,  dp26,  dp27,  
   139 			dp28,  dp29,  dp30,  dp31,  dp32,  dp33,  dp34,  dp35,  dp36,  dp37,  
   143 			dp28,  dp29,  dp30,  dp31,  dp32,  dp33,  dp34,  dp35,  dp36,  dp37,  
   140 			dp38,  dp39,  dp40,  dp41,  dp42,  dp43,  dp44,  dp45};
   144 			dp38,  dp39,  dp40,  dp41,  dp42,  dp43,  dp44,  dp45};
   141 	 
   145 	 
   142 	void GetEquivalentLanguageList(CSISLanguage::TLanguage aLang, TLanguagePath& aEquivalents); 
   146 	void GetEquivalentLanguageList(CSISLanguage::TLanguage aLang, TLanguagePath& aEquivalents); 
   143 	std::string wstring2string (const std::wstring& aWide);
       
   144 
       
   145 	std::wstring string2wstring (const std::string& aNarrow);
       
   146 
   147 
   147 	const std::wstring IntegerToWideString(int aInt);
   148 	const std::wstring IntegerToWideString(int aInt);
   148 
   149 
   149 	std::wstring Int64ToWideString(TInt64 aInt);
   150 	std::wstring Int64ToWideString(TInt64 aInt);
   150 
   151