intl/uconv/nsMacRomanToUnicode.cpp
author Carsten "Tomcat" Book <cbook@mozilla.com>
Wed, 28 Oct 2015 14:28:37 +0100
changeset 269997 929a872c1f15ef81d7730d366d95983b2e287602
parent 196040 4feaed7d41deb55fec4a214dba3db252a48e641b
permissions -rw-r--r--
Backed out changeset 2284c3e8c336 (bug 1215092)

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsUCConstructors.h"
#include "nsMacRomanToUnicode.h"

//----------------------------------------------------------------------
// Global functions and data [declaration]

nsresult
nsMacRomanToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
                               void **aResult)
{
  static const uint16_t g_MacRomanMappingTable[] = {
#include "macroman.ut"
  };

  return CreateOneByteDecoder((uMappingTable*) &g_MacRomanMappingTable,
                            aOuter, aIID, aResult);
}