nsMacFarsiToUnicode.cpp 821 B

12345678910111213141516171819202122232425
  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 "nsUCConstructors.h"
  6. #include "nsMacFarsiToUnicode.h"
  7. using namespace mozilla;
  8. //----------------------------------------------------------------------
  9. // Global functions and data [declaration]
  10. nsresult
  11. nsMacFarsiToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
  12. void **aResult)
  13. {
  14. static const uint16_t g_utMappingTable[] = {
  15. #include "macfarsi.ut"
  16. };
  17. return CreateOneByteDecoder((uMappingTable*) &g_utMappingTable,
  18. aOuter, aIID, aResult);
  19. }