icu_capi 1.2.0

C interface to ICU4X
Documentation
1
2
3
4
5
6
7
8
9
10
import wasm from "./diplomat-wasm.mjs"
import * as diplomatRuntime from "./diplomat-runtime.js"

export class CodePointRangeIteratorResult {
  constructor(underlying) {
    this.start = (new Uint32Array(wasm.memory.buffer, underlying, 1))[0];
    this.end = (new Uint32Array(wasm.memory.buffer, underlying + 4, 1))[0];
    this.done = (new Uint8Array(wasm.memory.buffer, underlying + 8, 1))[0] == 1;
  }
}