intl/uconv/util/nsUnicodeEncodeHelper.h

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

     1 /* -*- Mode: C; tab-width: 4; 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 #ifndef nsUnicodeEncodeHelper_h__
     6 #define nsUnicodeEncodeHelper_h__
     8 #include "nsError.h"
     9 #include "uconvutil.h"
    10 //----------------------------------------------------------------------
    11 // Class nsUnicodeEncodeHelper [declaration]
    13 /**
    14  *
    15  * @created         22/Nov/1998
    16  * @author  Catalin Rotaru [CATA]
    17  */
    18 class nsUnicodeEncodeHelper
    19 {
    21 public:
    22   //--------------------------------------------------------------------
    24   /**
    25    * Converts data using a lookup table and optional shift table.
    26    */
    27   static nsresult ConvertByTable(const char16_t * aSrc, int32_t * aSrcLength, 
    28       char * aDest, int32_t * aDestLength, uScanClassID aScanClass,
    29       uShiftOutTable * aShiftOutTable, uMappingTable  * aMappingTable);
    31   /**
    32    * Converts data using a set of lookup tables and optional shift tables.
    33    */
    34   static nsresult ConvertByMultiTable(const char16_t * aSrc, int32_t * aSrcLength,
    35       char * aDest, int32_t * aDestLength, int32_t aTableCount, 
    36       uScanClassID * aScanClassArray, 
    37       uShiftOutTable ** aShiftOutTable, uMappingTable  ** aMappingTable);
    38 };
    40 #endif // nsUnicodeEncodeHelper_h__

mercurial