nsNSSCertHelper.h (886B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 #ifndef nsNSSCertHelper_h 6 #define nsNSSCertHelper_h 7 8 #include "nsString.h" 9 10 // If input is valid UTF-8, converts from UTF-8 to UTF-16. Otherwise, 11 // converts from Latin1 to UTF-16. 12 void LossyUTF8ToUTF16(const char* str, uint32_t len, /*out*/ nsAString& result); 13 14 // Must be used on the main thread only. 15 nsresult GetPIPNSSBundleString(const char* stringName, nsAString& result); 16 nsresult GetPIPNSSBundleString(const char* stringName, nsACString& result); 17 nsresult PIPBundleFormatStringFromName(const char* stringName, 18 const nsTArray<nsString>& params, 19 nsAString& result); 20 21 #endif // nsNSSCertHelper_h