nsAndroidCharset.cpp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsIPlatformCharset.h"
  6. #include "nsPlatformCharset.h"
  7. NS_IMPL_ISUPPORTS(nsPlatformCharset, nsIPlatformCharset)
  8. nsPlatformCharset::nsPlatformCharset()
  9. {
  10. }
  11. nsPlatformCharset::~nsPlatformCharset()
  12. {
  13. }
  14. NS_IMETHODIMP
  15. nsPlatformCharset::Init()
  16. {
  17. return NS_OK;
  18. }
  19. NS_IMETHODIMP
  20. nsPlatformCharset::GetCharset(nsPlatformCharsetSel selector, nsACString& oResult)
  21. {
  22. oResult.AssignLiteral("UTF-8");
  23. return NS_OK;
  24. }
  25. NS_IMETHODIMP
  26. nsPlatformCharset::GetDefaultCharsetForLocale(const nsAString& localeName, nsACString &oResult)
  27. {
  28. oResult.AssignLiteral("UTF-8");
  29. return NS_OK;
  30. }
  31. nsresult
  32. nsPlatformCharset::InitGetCharset(nsACString &oString)
  33. {
  34. return NS_OK;
  35. }
  36. nsresult
  37. nsPlatformCharset::VerifyCharset(nsCString &aCharset)
  38. {
  39. return NS_OK;
  40. }