intl/uconv/ucvibm/nsCP862ToUnicode.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/uconv/ucvibm/nsCP862ToUnicode.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 + *
    1.10 + * This Original Code has been modified by IBM Corporation.
    1.11 + * Modifications made by IBM described herein are
    1.12 + * Copyright (c) International Business Machines
    1.13 + * Corporation, 1999
    1.14 + *
    1.15 + * Modifications to Mozilla code or documentation
    1.16 + * identified per MPL Section 3.3
    1.17 + *
    1.18 + * Date         Modified by     Description of modification
    1.19 + * 12/09/1999   IBM Corp.       Support for IBM codepage 862
    1.20 + *
    1.21 + */
    1.22 +
    1.23 +#include "nsUCConstructors.h"
    1.24 +#include "nsCP862ToUnicode.h"
    1.25 +#include "mozilla/Telemetry.h"
    1.26 +
    1.27 +using namespace mozilla;
    1.28 +
    1.29 +//----------------------------------------------------------------------
    1.30 +// Global functions and data [declaration]
    1.31 +
    1.32 +nsresult
    1.33 +nsCP862ToUnicodeConstructor(nsISupports *aOuter, REFNSIID aIID,
    1.34 +                            void **aResult) 
    1.35 +{
    1.36 +  static const uint16_t g_utMappingTable[] = {
    1.37 +#include "cp862.ut"
    1.38 +  };
    1.39 +
    1.40 +  Telemetry::Accumulate(Telemetry::DECODER_INSTANTIATED_IBM862, true);
    1.41 +  return CreateOneByteDecoder((uMappingTable*) &g_utMappingTable,
    1.42 +                              aOuter, aIID, aResult);
    1.43 +}
    1.44 +

mercurial