trisquel-icecat/icecat/intl/icu_capi/bindings/js/ICU4XDecomposed.mjs
2025-10-06 02:35:48 -06:00

9 lines
358 B
JavaScript

import wasm from "./diplomat-wasm.mjs"
import * as diplomatRuntime from "./diplomat-runtime.mjs"
export class ICU4XDecomposed {
constructor(underlying) {
this.first = String.fromCharCode((new Uint32Array(wasm.memory.buffer, underlying, 1))[0]);
this.second = String.fromCharCode((new Uint32Array(wasm.memory.buffer, underlying + 4, 1))[0]);
}
}