1 /* |
1 /* |
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2004-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". |
60 |
62 |
61 typedef enum {CERTFILE, KEYFILE} TFileType; |
63 typedef enum {CERTFILE, KEYFILE} TFileType; |
62 |
64 |
63 int SearchSortedUCTable (const SIdentifierTable aTable [], const std::wstring& aIdentifier); |
65 int SearchSortedUCTable (const SIdentifierTable aTable [], const std::wstring& aIdentifier); |
64 TUint32 IdentifyUCKeyword (const SKeyword aKeyword [], std::wstring aIdentifier, const std::wstring& aContext); |
66 TUint32 IdentifyUCKeyword (const SKeyword aKeyword [], std::wstring aIdentifier, const std::wstring& aContext); |
65 std::string wstring2string (const std::wstring& aWide); |
67 DllExport std::string wstring2string (const std::wstring& aWide); |
66 std::wstring string2wstring (const std::string& aNarrow); |
68 std::wstring string2wstring (const std::string& aNarrow); |
67 bool ValidateFileName (std::wstring& aName, const bool aMustExist); |
69 bool ValidateFileName (std::wstring& aName, const bool aMustExist); |
68 bool ValidateFileName (std::wstring& aName, const bool aMustExist, const std::wstring& aDefaultExtension); |
70 bool ValidateFileName (std::wstring& aName, const bool aMustExist, const std::wstring& aDefaultExtension); |
69 bool ValidateDirectory (std::wstring& aName, const bool aMustExist); |
71 bool ValidateDirectory (std::wstring& aName, const bool aMustExist); |
70 void EnsureExtended (std::wstring& aName, const std::wstring& aDefaultExtension); |
72 void EnsureExtended (std::wstring& aName, const std::wstring& aDefaultExtension); |