1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/uconv/public/nsEncoderDecoderUtils.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 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 + 1.9 +#ifndef nsEncoderDecoderUtils_h__ 1.10 +#define nsEncoderDecoderUtils_h__ 1.11 + 1.12 +#define NS_UNICODEDECODER_NAME "Charset Decoders" 1.13 +#define NS_UNICODEENCODER_NAME "Charset Encoders" 1.14 + 1.15 +#define NS_DATA_BUNDLE_CATEGORY "uconv-charset-data" 1.16 +#define NS_TITLE_BUNDLE_CATEGORY "uconv-charset-titles" 1.17 + 1.18 +#define NS_CONVERTER_REGISTRY_START \ 1.19 + static const mozilla::Module::CategoryEntry kUConvCategories[] = { 1.20 + 1.21 +#define NS_CONVERTER_REGISTRY_END \ 1.22 + { nullptr } \ 1.23 + }; 1.24 + 1.25 +#define NS_UCONV_REG_UNREG_DECODER(_Charset, _CID) \ 1.26 + { NS_UNICODEDECODER_NAME, _Charset, "" }, 1.27 + 1.28 +#define NS_UCONV_REG_UNREG_ENCODER(_Charset, _CID) \ 1.29 + { NS_UNICODEENCODER_NAME, _Charset, "" }, 1.30 + 1.31 +#define NS_UCONV_REG_UNREG(_Charset, _DecoderCID, _EncoderCID) \ 1.32 + NS_UCONV_REG_UNREG_DECODER(_Charset, *) \ 1.33 + NS_UCONV_REG_UNREG_ENCODER(_Charset, *) 1.34 + 1.35 +#endif