UNPKG

7.07 kBJavaScriptView Raw
1"use strict";
2// *****************************************************************************
3// Copyright (C) 2019 Xuye Cai and others.
4//
5// This program and the accompanying materials are made available under the
6// terms of the Eclipse Public License v. 2.0 which is available at
7// http://www.eclipse.org/legal/epl-2.0.
8//
9// This Source Code may also be made available under the following Secondary
10// Licenses when the conditions for such availability set forth in the Eclipse
11// Public License v. 2.0 are satisfied: GNU General Public License, version 2
12// with the GNU Classpath Exception which is available at
13// https://www.gnu.org/software/classpath/license.html.
14//
15// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16// *****************************************************************************
17Object.defineProperty(exports, "__esModule", { value: true });
18exports.SUPPORTED_ENCODINGS = void 0;
19// copied from vscode: https://github.com/microsoft/vscode/blob/master/src/vs/workbench/services/textfile/common/textfiles.ts
20/*---------------------------------------------------------------------------------------------
21 * Copyright (c) Microsoft Corporation. All rights reserved.
22 * Licensed under the MIT License. See License.txt in the project root for license information.
23 *--------------------------------------------------------------------------------------------*/
24exports.SUPPORTED_ENCODINGS = {
25 utf8: {
26 labelLong: 'UTF-8',
27 labelShort: 'UTF-8',
28 order: 1,
29 alias: 'utf8bom'
30 },
31 utf8bom: {
32 labelLong: 'UTF-8 with BOM',
33 labelShort: 'UTF-8 with BOM',
34 encodeOnly: true,
35 order: 2,
36 alias: 'utf8'
37 },
38 utf16le: {
39 labelLong: 'UTF-16 LE',
40 labelShort: 'UTF-16 LE',
41 order: 3
42 },
43 utf16be: {
44 labelLong: 'UTF-16 BE',
45 labelShort: 'UTF-16 BE',
46 order: 4
47 },
48 windows1252: {
49 labelLong: 'Western (Windows 1252)',
50 labelShort: 'Windows 1252',
51 order: 5
52 },
53 iso88591: {
54 labelLong: 'Western (ISO 8859-1)',
55 labelShort: 'ISO 8859-1',
56 order: 6
57 },
58 iso88593: {
59 labelLong: 'Western (ISO 8859-3)',
60 labelShort: 'ISO 8859-3',
61 order: 7
62 },
63 iso885915: {
64 labelLong: 'Western (ISO 8859-15)',
65 labelShort: 'ISO 8859-15',
66 order: 8
67 },
68 macroman: {
69 labelLong: 'Western (Mac Roman)',
70 labelShort: 'Mac Roman',
71 order: 9
72 },
73 cp437: {
74 labelLong: 'DOS (CP 437)',
75 labelShort: 'CP437',
76 order: 10
77 },
78 windows1256: {
79 labelLong: 'Arabic (Windows 1256)',
80 labelShort: 'Windows 1256',
81 order: 11
82 },
83 iso88596: {
84 labelLong: 'Arabic (ISO 8859-6)',
85 labelShort: 'ISO 8859-6',
86 order: 12
87 },
88 windows1257: {
89 labelLong: 'Baltic (Windows 1257)',
90 labelShort: 'Windows 1257',
91 order: 13
92 },
93 iso88594: {
94 labelLong: 'Baltic (ISO 8859-4)',
95 labelShort: 'ISO 8859-4',
96 order: 14
97 },
98 iso885914: {
99 labelLong: 'Celtic (ISO 8859-14)',
100 labelShort: 'ISO 8859-14',
101 order: 15
102 },
103 windows1250: {
104 labelLong: 'Central European (Windows 1250)',
105 labelShort: 'Windows 1250',
106 order: 16
107 },
108 iso88592: {
109 labelLong: 'Central European (ISO 8859-2)',
110 labelShort: 'ISO 8859-2',
111 order: 17
112 },
113 cp852: {
114 labelLong: 'Central European (CP 852)',
115 labelShort: 'CP 852',
116 order: 18
117 },
118 windows1251: {
119 labelLong: 'Cyrillic (Windows 1251)',
120 labelShort: 'Windows 1251',
121 order: 19
122 },
123 cp866: {
124 labelLong: 'Cyrillic (CP 866)',
125 labelShort: 'CP 866',
126 order: 20
127 },
128 iso88595: {
129 labelLong: 'Cyrillic (ISO 8859-5)',
130 labelShort: 'ISO 8859-5',
131 order: 21
132 },
133 koi8r: {
134 labelLong: 'Cyrillic (KOI8-R)',
135 labelShort: 'KOI8-R',
136 order: 22
137 },
138 koi8u: {
139 labelLong: 'Cyrillic (KOI8-U)',
140 labelShort: 'KOI8-U',
141 order: 23
142 },
143 iso885913: {
144 labelLong: 'Estonian (ISO 8859-13)',
145 labelShort: 'ISO 8859-13',
146 order: 24
147 },
148 windows1253: {
149 labelLong: 'Greek (Windows 1253)',
150 labelShort: 'Windows 1253',
151 order: 25
152 },
153 iso88597: {
154 labelLong: 'Greek (ISO 8859-7)',
155 labelShort: 'ISO 8859-7',
156 order: 26
157 },
158 windows1255: {
159 labelLong: 'Hebrew (Windows 1255)',
160 labelShort: 'Windows 1255',
161 order: 27
162 },
163 iso88598: {
164 labelLong: 'Hebrew (ISO 8859-8)',
165 labelShort: 'ISO 8859-8',
166 order: 28
167 },
168 iso885910: {
169 labelLong: 'Nordic (ISO 8859-10)',
170 labelShort: 'ISO 8859-10',
171 order: 29
172 },
173 iso885916: {
174 labelLong: 'Romanian (ISO 8859-16)',
175 labelShort: 'ISO 8859-16',
176 order: 30
177 },
178 windows1254: {
179 labelLong: 'Turkish (Windows 1254)',
180 labelShort: 'Windows 1254',
181 order: 31
182 },
183 iso88599: {
184 labelLong: 'Turkish (ISO 8859-9)',
185 labelShort: 'ISO 8859-9',
186 order: 32
187 },
188 windows1258: {
189 labelLong: 'Vietnamese (Windows 1258)',
190 labelShort: 'Windows 1258',
191 order: 33
192 },
193 gbk: {
194 labelLong: 'Simplified Chinese (GBK)',
195 labelShort: 'GBK',
196 order: 34
197 },
198 gb18030: {
199 labelLong: 'Simplified Chinese (GB18030)',
200 labelShort: 'GB18030',
201 order: 35
202 },
203 cp950: {
204 labelLong: 'Traditional Chinese (Big5)',
205 labelShort: 'Big5',
206 order: 36
207 },
208 big5hkscs: {
209 labelLong: 'Traditional Chinese (Big5-HKSCS)',
210 labelShort: 'Big5-HKSCS',
211 order: 37
212 },
213 shiftjis: {
214 labelLong: 'Japanese (Shift JIS)',
215 labelShort: 'Shift JIS',
216 order: 38
217 },
218 eucjp: {
219 labelLong: 'Japanese (EUC-JP)',
220 labelShort: 'EUC-JP',
221 order: 39
222 },
223 euckr: {
224 labelLong: 'Korean (EUC-KR)',
225 labelShort: 'EUC-KR',
226 order: 40
227 },
228 windows874: {
229 labelLong: 'Thai (Windows 874)',
230 labelShort: 'Windows 874',
231 order: 41
232 },
233 iso885911: {
234 labelLong: 'Latin/Thai (ISO 8859-11)',
235 labelShort: 'ISO 8859-11',
236 order: 42
237 },
238 koi8ru: {
239 labelLong: 'Cyrillic (KOI8-RU)',
240 labelShort: 'KOI8-RU',
241 order: 43
242 },
243 koi8t: {
244 labelLong: 'Tajik (KOI8-T)',
245 labelShort: 'KOI8-T',
246 order: 44
247 },
248 gb2312: {
249 labelLong: 'Simplified Chinese (GB 2312)',
250 labelShort: 'GB 2312',
251 order: 45
252 },
253 cp865: {
254 labelLong: 'Nordic DOS (CP 865)',
255 labelShort: 'CP 865',
256 order: 46
257 },
258 cp850: {
259 labelLong: 'Western European DOS (CP 850)',
260 labelShort: 'CP 850',
261 order: 47
262 }
263};
264//# sourceMappingURL=supported-encodings.js.map
\No newline at end of file