Debian Codegraph @

intl/icu_capi/bindings/js/ICU4XGraphemeClusterBreakIteratorLatin1.mjs

raw
1 import wasm from "./diplomat-wasm.mjs"
2 import * as diplomatRuntime from "./diplomat-runtime.mjs"
3
4 const ICU4XGraphemeClusterBreakIteratorLatin1_box_destroy_registry = new FinalizationRegistry(underlying => {
5 wasm.ICU4XGraphemeClusterBreakIteratorLatin1_destroy(underlying);
6 });
7
8 export class ICU4XGraphemeClusterBreakIteratorLatin1 {
9 #lifetimeEdges = [];
10 constructor(underlying, owned, edges) {
11 this.underlying = underlying;
12 this.#lifetimeEdges.push(...edges);
13 if (owned) {
14 ICU4XGraphemeClusterBreakIteratorLatin1_box_destroy_registry.register(this, underlying);
15 }
16 }
17
18 next() {
19 return wasm.ICU4XGraphemeClusterBreakIteratorLatin1_next(this.underlying);
20 }
21 }