mol_plot_all 1.2.1551 → 1.2.1553

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/node.js CHANGED
@@ -3123,6 +3123,22 @@ var $;
3123
3123
  return pos - from;
3124
3124
  }
3125
3125
  $.$mol_charset_encode_to = $mol_charset_encode_to;
3126
+ function $mol_charset_encode_size(str) {
3127
+ let size = 0;
3128
+ for (let i = 0; i < str.length; i++) {
3129
+ let code = str.charCodeAt(i);
3130
+ if (code < 0x80)
3131
+ size += 1;
3132
+ else if (code < 0x800)
3133
+ size += 2;
3134
+ else if (code < 0xd800 || code >= 0xe000)
3135
+ size += 3;
3136
+ else
3137
+ size += 4;
3138
+ }
3139
+ return size;
3140
+ }
3141
+ $.$mol_charset_encode_size = $mol_charset_encode_size;
3126
3142
  })($ || ($ = {}));
3127
3143
 
3128
3144
  ;