Skip to content

Commit 7dfe3c4

Browse files
committed
Update file(s): 2025-03-28
1 parent 56e4286 commit 7dfe3c4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

db/read

+10-10
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
// and get rid of the functions themselves
66
/* beautify ignore:start */
77

8-
const _BE = true, _LE = false; //endianness for read_int16+
8+
var _BE = true, _LE = false; //endianness for read_int16+
99
//little-endian = reversed notation (Intel, ZX Spectrum),
1010
//big-endian = direct notation (TCP/IP, Motorola, Amiga)
1111
//For the BitReader Object, BE is MSB and LE is LSB (intuitively)
12-
const CS_ALL = true, CS_BEST = false; //charStat needall
13-
const TOEOF = -1; //use for the size parameter in findSignature
12+
var CS_ALL = true, CS_BEST = false; //charStat needall
13+
var TOEOF = -1; //use for the size parameter in findSignature
1414

1515
// ---------- START OF PRE-v3.06 CODE --------------------
1616

@@ -70,19 +70,19 @@ const CP866 = "⌂"+ //DOS Cyrillic
7070
'АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ'+
7171
'абвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐'+
7272
'└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀'+
73-
'рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ ';
73+
'рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ ';
7474
const CP1251 = "⌂"+
7575
"ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—・™љ›њќћџ"+
76-
" ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕї"+
76+
" ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕї"+
7777
"АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ"+
7878
"абвгдежзийклмнопрстуфхцчшщъыьэюя";
7979
const CP1252 = "⌂"+ //aka. Western aka. ISO-8859-1
8080
"€・‚ƒ„…†‡ˆ‰Š‹Œ・Ž・・‘’“”•–—˜™š›œ・žŸ"+
81-
" ¡¢£¤¥¦§¨©ª«¬・®¯°±²³´µ¶·¸¹º»¼½¾¿"+
81+
" ¡¢£¤¥¦§¨©ª«¬・®¯°±²³´µ¶·¸¹º»¼½¾¿"+
8282
"ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß"+
8383
"àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ";
8484
const KOI8R = "⌂"+ //aka. RFC 1489, Morse code based
85-
'─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷'+
85+
'─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥ ⌡°²·÷'+
8686
'═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©'+
8787
'юабцдефгхийклмнопярстужвьызшэщчъ'+
8888
'ЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ';
@@ -93,12 +93,12 @@ const JISX0201 = "⌂"+
9393
"àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ";
9494
const CPAmiga = "⫽"+ // alternatively, "▒""
9595
"абвгдежзийклмнопрстуфхцчшщъыьэюя"+ //0x80~0x9F display Cyrillics, just to fill the void
96-
" ¡¢£¤¥¦§¨©ª«¬–®¯°±²³´µ¶·¸¹º»¼½¾¿"+
96+
" ¡¢£¤¥¦§¨©ª«¬–®¯°±²³´µ¶·¸¹º»¼½¾¿"+
9797
"ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß"+
9898
"àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ";
9999
const CPRISCOS = "⌂"+
100100
"€Ŵŵ◰﯀Ŷŷ�⇦⇨⇩⇧…™‰•‘’‹›“”„–—−Œœ†‡fifl"+
101-
" ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿"+
101+
" ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿"+
102102
"ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß"+
103103
"àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ";
104104
const CPAtariST = "⌂"+
@@ -118,7 +118,7 @@ const CPSpeccy = ['©', //too SPECIAL with all the tokens-for-characters, gotta
118118
const Chars0to1F = "・☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼"; //#0 is a small dot from Japanese
119119
const Chars0to1FLF = "・☺☻♥♦♣♠•◘○\x0A♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼";
120120
const Chars0to1FCRLF = "・☺☻♥♦♣♠•◘○\x0A♂♀\x0D♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼";
121-
const Chars0to1FSpeccy = "\0\1\2\3\4\5,📝⬅➡⬇⬆⌫\x0A№\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F"; //not mixing...
121+
const Chars0to1FSpeccy = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F"; //not mixing... // emit errors on the latest js
122122

123123
/**
124124
* Decode a 1-byte encoding from a byte array using the 128-byte-long table given,

0 commit comments

Comments
 (0)