2017-04-25 11:42:02 +03:00
|
|
|
// Copyright 2016 Mozilla Foundation. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
|
|
|
// THIS IS A GENERATED FILE. PLEASE DO NOT EDIT.
|
|
|
|
// Instead, please regenerate using generate-encoding-data.py
|
|
|
|
|
|
|
|
// This file is not meant to be included directly. Instead, encoding_rs.h
|
|
|
|
// includes this file.
|
|
|
|
|
|
|
|
#ifndef encoding_rs_statics_h_
|
|
|
|
#define encoding_rs_statics_h_
|
|
|
|
|
|
|
|
#ifndef ENCODING_RS_ENCODING
|
|
|
|
#define ENCODING_RS_ENCODING Encoding
|
|
|
|
#ifndef __cplusplus
|
|
|
|
typedef struct Encoding_ Encoding;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2017-06-21 09:53:11 +03:00
|
|
|
#ifndef ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR
|
|
|
|
#define ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ENCODING_RS_ENCODING*
|
|
|
|
#endif
|
|
|
|
|
2017-04-25 11:42:02 +03:00
|
|
|
#ifndef ENCODING_RS_ENCODER
|
|
|
|
#define ENCODING_RS_ENCODER Encoder
|
|
|
|
#ifndef __cplusplus
|
|
|
|
typedef struct Encoder_ Encoder;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef ENCODING_RS_DECODER
|
|
|
|
#define ENCODING_RS_DECODER Decoder
|
|
|
|
#ifndef __cplusplus
|
|
|
|
typedef struct Decoder_ Decoder;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define INPUT_EMPTY 0
|
|
|
|
|
|
|
|
#define OUTPUT_FULL 0xFFFFFFFF
|
|
|
|
|
|
|
|
// x-mac-cyrillic
|
|
|
|
#define ENCODING_NAME_MAX_LENGTH 14
|
|
|
|
|
|
|
|
/// The Big5 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const BIG5_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The EUC-JP encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const EUC_JP_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The EUC-KR encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const EUC_KR_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The GBK encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const GBK_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The IBM866 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const IBM866_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-2022-JP encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_2022_JP_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-8859-10 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_8859_10_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-8859-13 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_8859_13_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-8859-14 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_8859_14_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-8859-15 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_8859_15_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-8859-16 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_8859_16_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-8859-2 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_8859_2_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-8859-3 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_8859_3_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-8859-4 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_8859_4_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-8859-5 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_8859_5_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-8859-6 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_8859_6_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-8859-7 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_8859_7_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-8859-8 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_8859_8_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The ISO-8859-8-I encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const ISO_8859_8_I_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The KOI8-R encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const KOI8_R_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The KOI8-U encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const KOI8_U_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The Shift_JIS encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const SHIFT_JIS_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The UTF-16BE encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const UTF_16BE_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The UTF-16LE encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const UTF_16LE_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The UTF-8 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const UTF_8_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The gb18030 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const GB18030_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The macintosh encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const MACINTOSH_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The replacement encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const REPLACEMENT_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The windows-1250 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const WINDOWS_1250_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The windows-1251 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const WINDOWS_1251_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The windows-1252 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const WINDOWS_1252_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The windows-1253 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const WINDOWS_1253_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The windows-1254 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const WINDOWS_1254_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The windows-1255 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const WINDOWS_1255_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The windows-1256 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const WINDOWS_1256_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The windows-1257 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const WINDOWS_1257_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The windows-1258 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const WINDOWS_1258_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The windows-874 encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const WINDOWS_874_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The x-mac-cyrillic encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const X_MAC_CYRILLIC_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
/// The x-user-defined encoding.
|
2017-06-21 09:53:11 +03:00
|
|
|
extern ENCODING_RS_NOT_NULL_CONST_ENCODING_PTR const X_USER_DEFINED_ENCODING;
|
2017-04-25 11:42:02 +03:00
|
|
|
|
|
|
|
#endif // encoding_rs_statics_h_
|