intl/uconv/ucvibm/nsUnicodeToCP850.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/uconv/ucvibm/nsUnicodeToCP850.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     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 codepages - 850
    1.20 + *
    1.21 + */
    1.22 +
    1.23 +#include "nsUCConstructors.h"
    1.24 +#include "nsUnicodeToCP850.h"
    1.25 +
    1.26 +//----------------------------------------------------------------------
    1.27 +// Global functions and data [declaration]
    1.28 +
    1.29 +nsresult
    1.30 +nsUnicodeToCP850Constructor(nsISupports *aOuter, REFNSIID aIID,
    1.31 +                            void **aResult) 
    1.32 +{
    1.33 +  static const uint16_t g_ufMappingTable[] = {
    1.34 +#include "cp850.uf"
    1.35 +  };
    1.36 +
    1.37 +  return CreateTableEncoder(u1ByteCharset, 
    1.38 +                            (uMappingTable*) &g_ufMappingTable, 1,
    1.39 +                            aOuter, aIID, aResult);
    1.40 +}
    1.41 +

mercurial