1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/uconv/util/nsUnicodeEncodeHelper.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,42 @@ 1.4 +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 +#ifndef nsUnicodeEncodeHelper_h__ 1.9 +#define nsUnicodeEncodeHelper_h__ 1.10 + 1.11 +#include "nsError.h" 1.12 +#include "uconvutil.h" 1.13 +//---------------------------------------------------------------------- 1.14 +// Class nsUnicodeEncodeHelper [declaration] 1.15 + 1.16 +/** 1.17 + * 1.18 + * @created 22/Nov/1998 1.19 + * @author Catalin Rotaru [CATA] 1.20 + */ 1.21 +class nsUnicodeEncodeHelper 1.22 +{ 1.23 + 1.24 +public: 1.25 + //-------------------------------------------------------------------- 1.26 + 1.27 + /** 1.28 + * Converts data using a lookup table and optional shift table. 1.29 + */ 1.30 + static nsresult ConvertByTable(const char16_t * aSrc, int32_t * aSrcLength, 1.31 + char * aDest, int32_t * aDestLength, uScanClassID aScanClass, 1.32 + uShiftOutTable * aShiftOutTable, uMappingTable * aMappingTable); 1.33 + 1.34 + /** 1.35 + * Converts data using a set of lookup tables and optional shift tables. 1.36 + */ 1.37 + static nsresult ConvertByMultiTable(const char16_t * aSrc, int32_t * aSrcLength, 1.38 + char * aDest, int32_t * aDestLength, int32_t aTableCount, 1.39 + uScanClassID * aScanClassArray, 1.40 + uShiftOutTable ** aShiftOutTable, uMappingTable ** aMappingTable); 1.41 +}; 1.42 + 1.43 +#endif // nsUnicodeEncodeHelper_h__ 1.44 + 1.45 +