jww-parser 2025.12.7 → 2025.12.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2540,7 +2540,7 @@ function moonbitlang$core$double$internal$ryu$$ryu_to_string(val) {
2540
2540
  function moonbitlang$core$double$$Double$to_string(self) {
2541
2541
  return moonbitlang$core$double$internal$ryu$$ryu_to_string(self);
2542
2542
  }
2543
- function f4ah6o$encoding_sjis_mbt$$decode_jis_x_0208(code) {
2543
+ function f4ah6o$encoding_sjis$$decode_jis_x_0208(code) {
2544
2544
  switch (code) {
2545
2545
  case 33088: return 12288;
2546
2546
  case 33089: return 12289;
@@ -9424,16 +9424,16 @@ function f4ah6o$encoding_sjis_mbt$$decode_jis_x_0208(code) {
9424
9424
  default: return -1;
9425
9425
  }
9426
9426
  }
9427
- function f4ah6o$encoding_sjis_mbt$$Decoder$new() {
9427
+ function f4ah6o$encoding_sjis$$Decoder$new() {
9428
9428
  return {
9429
9429
  pending_first_byte: 0,
9430
9430
  had_replacements: false
9431
9431
  };
9432
9432
  }
9433
- function f4ah6o$encoding_sjis_mbt$$new_decoder() {
9434
- return f4ah6o$encoding_sjis_mbt$$Decoder$new();
9433
+ function f4ah6o$encoding_sjis$$new_decoder() {
9434
+ return f4ah6o$encoding_sjis$$Decoder$new();
9435
9435
  }
9436
- function f4ah6o$encoding_sjis_mbt$$Decoder$decode_to_string(self, src, last) {
9436
+ function f4ah6o$encoding_sjis$$Decoder$decode_to_string(self, src, last) {
9437
9437
  let result = "";
9438
9438
  let i = 0;
9439
9439
  const len = src.length;
@@ -9448,7 +9448,7 @@ function f4ah6o$encoding_sjis_mbt$$Decoder$decode_to_string(self, src, last) {
9448
9448
  $bound_check(src, 0);
9449
9449
  const b2 = src[0];
9450
9450
  if (b2 >= 64 && b2 <= 252 && b2 !== 127) {
9451
- const _bind = f4ah6o$encoding_sjis_mbt$$decode_jis_x_0208(b1 << 8 | b2);
9451
+ const _bind = f4ah6o$encoding_sjis$$decode_jis_x_0208(b1 << 8 | b2);
9452
9452
  if (_bind === -1) {
9453
9453
  result = `${result}${moonbitlang$core$builtin$$Show$to_string$23$(65533)}`;
9454
9454
  self.had_replacements = true;
@@ -9477,7 +9477,7 @@ function f4ah6o$encoding_sjis_mbt$$Decoder$decode_to_string(self, src, last) {
9477
9477
  $bound_check(src, _tmp$2);
9478
9478
  const b2 = src[_tmp$2];
9479
9479
  if (b2 >= 64 && b2 <= 252 && b2 !== 127) {
9480
- const _bind = f4ah6o$encoding_sjis_mbt$$decode_jis_x_0208(b1 << 8 | b2);
9480
+ const _bind = f4ah6o$encoding_sjis$$decode_jis_x_0208(b1 << 8 | b2);
9481
9481
  if (_bind === -1) {
9482
9482
  result = `${result}${moonbitlang$core$builtin$$Show$to_string$23$(65533)}`;
9483
9483
  self.had_replacements = true;
@@ -9505,15 +9505,15 @@ function f4ah6o$encoding_sjis_mbt$$Decoder$decode_to_string(self, src, last) {
9505
9505
  } else break;
9506
9506
  return result;
9507
9507
  }
9508
- function f4ah6o$encoding_sjis_mbt$$decode(src) {
9509
- const decoder = f4ah6o$encoding_sjis_mbt$$new_decoder();
9508
+ function f4ah6o$encoding_sjis$$decode(src) {
9509
+ const decoder = f4ah6o$encoding_sjis$$new_decoder();
9510
9510
  return {
9511
- _0: f4ah6o$encoding_sjis_mbt$$Decoder$decode_to_string(decoder, src, true),
9511
+ _0: f4ah6o$encoding_sjis$$Decoder$decode_to_string(decoder, src, true),
9512
9512
  _1: decoder.had_replacements
9513
9513
  };
9514
9514
  }
9515
- function f4ah6o$encoding_sjis_mbt$$shift_jis_to_utf8(data) {
9516
- return f4ah6o$encoding_sjis_mbt$$decode(data)._0;
9515
+ function f4ah6o$encoding_sjis$$shift_jis_to_utf8(data) {
9516
+ return f4ah6o$encoding_sjis$$decode(data)._0;
9517
9517
  }
9518
9518
  function f4ah6o$jww_parser$core$$LayerGroup$default() {
9519
9519
  const layers = moonbitlang$core$array$$Array$new$46$inner$12$(0);
@@ -9678,7 +9678,7 @@ function f4ah6o$jww_parser$core$$read_cstring(reader) {
9678
9678
  }
9679
9679
  }
9680
9680
  if (length <= 0 || length > 1e6) return "";
9681
- return f4ah6o$encoding_sjis_mbt$$shift_jis_to_utf8(f4ah6o$jww_parser$core$$Reader$read_bytes(reader, (reader.data.length - reader.pos | 0) < length ? reader.data.length - reader.pos | 0 : length));
9681
+ return f4ah6o$encoding_sjis$$shift_jis_to_utf8(f4ah6o$jww_parser$core$$Reader$read_bytes(reader, (reader.data.length - reader.pos | 0) < length ? reader.data.length - reader.pos | 0 : length));
9682
9682
  }
9683
9683
  function f4ah6o$jww_parser$core$$parse_entity_by_class(class_name, reader, version) {
9684
9684
  if (class_name === "CDataSen") return new $64$f4ah6o$47$jww_parser$47$core$46$Entity$Line({