• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// generated by diplomat-tool
2import { CodePointRangeIterator } from "./CodePointRangeIterator.mjs"
3import { DataError } from "./DataError.mjs"
4import { DataProvider } from "./DataProvider.mjs"
5import { GeneralCategoryGroup } from "./GeneralCategoryGroup.mjs"
6import wasm from "./diplomat-wasm.mjs";
7import * as diplomatRuntime from "./diplomat-runtime.mjs";
8
9
10/** An ICU4X Unicode Set Property object, capable of querying whether a code point is contained in a set based on a Unicode property.
11*
12*See the [Rust documentation for `properties`](https://docs.rs/icu/latest/icu/properties/index.html) for more information.
13*
14*See the [Rust documentation for `CodePointSetData`](https://docs.rs/icu/latest/icu/properties/struct.CodePointSetData.html) for more information.
15*
16*See the [Rust documentation for `CodePointSetDataBorrowed`](https://docs.rs/icu/latest/icu/properties/struct.CodePointSetDataBorrowed.html) for more information.
17*/
18const CodePointSetData_box_destroy_registry = new FinalizationRegistry((ptr) => {
19    wasm.icu4x_CodePointSetData_destroy_mv1(ptr);
20});
21
22export class CodePointSetData {
23
24    // Internal ptr reference:
25    #ptr = null;
26
27    // Lifetimes are only to keep dependencies alive.
28    // Since JS won't garbage collect until there are no incoming edges.
29    #selfEdge = [];
30
31    #internalConstructor(symbol, ptr, selfEdge) {
32        if (symbol !== diplomatRuntime.internalConstructor) {
33            console.error("CodePointSetData is an Opaque type. You cannot call its constructor.");
34            return;
35        }
36
37        this.#ptr = ptr;
38        this.#selfEdge = selfEdge;
39
40        // Are we being borrowed? If not, we can register.
41        if (this.#selfEdge.length === 0) {
42            CodePointSetData_box_destroy_registry.register(this, this.#ptr);
43        }
44
45        return this;
46    }
47    get ffiValue() {
48        return this.#ptr;
49    }
50
51    contains(cp) {
52        const result = wasm.icu4x_CodePointSetData_contains_mv1(this.ffiValue, cp);
53
54        try {
55            return result;
56        }
57
58        finally {}
59    }
60
61    iterRanges() {
62        // This lifetime edge depends on lifetimes 'a
63        let aEdges = [this];
64
65        const result = wasm.icu4x_CodePointSetData_iter_ranges_mv1(this.ffiValue);
66
67        try {
68            return new CodePointRangeIterator(diplomatRuntime.internalConstructor, result, [], aEdges);
69        }
70
71        finally {}
72    }
73
74    iterRangesComplemented() {
75        // This lifetime edge depends on lifetimes 'a
76        let aEdges = [this];
77
78        const result = wasm.icu4x_CodePointSetData_iter_ranges_complemented_mv1(this.ffiValue);
79
80        try {
81            return new CodePointRangeIterator(diplomatRuntime.internalConstructor, result, [], aEdges);
82        }
83
84        finally {}
85    }
86
87    static createGeneralCategoryGroup(group) {
88        let functionCleanupArena = new diplomatRuntime.CleanupArena();
89
90        const result = wasm.icu4x_CodePointSetData_create_general_category_group_mv1(...GeneralCategoryGroup._fromSuppliedValue(diplomatRuntime.internalConstructor, group)._intoFFI(functionCleanupArena, {}));
91
92        try {
93            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
94        }
95
96        finally {
97            functionCleanupArena.free();
98        }
99    }
100
101    static createGeneralCategoryGroupWithProvider(provider, group) {
102        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
103
104        const result = wasm.icu4x_CodePointSetData_create_general_category_group_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue, group);
105
106        try {
107            if (!diplomatReceive.resultFlag) {
108                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
109                throw new globalThis.Error('DataError: ' + cause.value, { cause });
110            }
111            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
112        }
113
114        finally {
115            diplomatReceive.free();
116        }
117    }
118
119    static asciiHexDigitForChar(ch) {
120        const result = wasm.icu4x_CodePointSetData_ascii_hex_digit_for_char_mv1(ch);
121
122        try {
123            return result;
124        }
125
126        finally {}
127    }
128
129    static createAsciiHexDigit() {
130        const result = wasm.icu4x_CodePointSetData_create_ascii_hex_digit_mv1();
131
132        try {
133            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
134        }
135
136        finally {}
137    }
138
139    static createAsciiHexDigitWithProvider(provider) {
140        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
141
142        const result = wasm.icu4x_CodePointSetData_create_ascii_hex_digit_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
143
144        try {
145            if (!diplomatReceive.resultFlag) {
146                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
147                throw new globalThis.Error('DataError: ' + cause.value, { cause });
148            }
149            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
150        }
151
152        finally {
153            diplomatReceive.free();
154        }
155    }
156
157    static alnumForChar(ch) {
158        const result = wasm.icu4x_CodePointSetData_alnum_for_char_mv1(ch);
159
160        try {
161            return result;
162        }
163
164        finally {}
165    }
166
167    static createAlnum() {
168        const result = wasm.icu4x_CodePointSetData_create_alnum_mv1();
169
170        try {
171            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
172        }
173
174        finally {}
175    }
176
177    static createAlnumWithProvider(provider) {
178        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
179
180        const result = wasm.icu4x_CodePointSetData_create_alnum_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
181
182        try {
183            if (!diplomatReceive.resultFlag) {
184                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
185                throw new globalThis.Error('DataError: ' + cause.value, { cause });
186            }
187            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
188        }
189
190        finally {
191            diplomatReceive.free();
192        }
193    }
194
195    static alphabeticForChar(ch) {
196        const result = wasm.icu4x_CodePointSetData_alphabetic_for_char_mv1(ch);
197
198        try {
199            return result;
200        }
201
202        finally {}
203    }
204
205    static createAlphabetic() {
206        const result = wasm.icu4x_CodePointSetData_create_alphabetic_mv1();
207
208        try {
209            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
210        }
211
212        finally {}
213    }
214
215    static createAlphabeticWithProvider(provider) {
216        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
217
218        const result = wasm.icu4x_CodePointSetData_create_alphabetic_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
219
220        try {
221            if (!diplomatReceive.resultFlag) {
222                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
223                throw new globalThis.Error('DataError: ' + cause.value, { cause });
224            }
225            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
226        }
227
228        finally {
229            diplomatReceive.free();
230        }
231    }
232
233    static bidiControlForChar(ch) {
234        const result = wasm.icu4x_CodePointSetData_bidi_control_for_char_mv1(ch);
235
236        try {
237            return result;
238        }
239
240        finally {}
241    }
242
243    static createBidiControl() {
244        const result = wasm.icu4x_CodePointSetData_create_bidi_control_mv1();
245
246        try {
247            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
248        }
249
250        finally {}
251    }
252
253    static createBidiControlWithProvider(provider) {
254        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
255
256        const result = wasm.icu4x_CodePointSetData_create_bidi_control_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
257
258        try {
259            if (!diplomatReceive.resultFlag) {
260                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
261                throw new globalThis.Error('DataError: ' + cause.value, { cause });
262            }
263            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
264        }
265
266        finally {
267            diplomatReceive.free();
268        }
269    }
270
271    static bidiMirroredForChar(ch) {
272        const result = wasm.icu4x_CodePointSetData_bidi_mirrored_for_char_mv1(ch);
273
274        try {
275            return result;
276        }
277
278        finally {}
279    }
280
281    static createBidiMirrored() {
282        const result = wasm.icu4x_CodePointSetData_create_bidi_mirrored_mv1();
283
284        try {
285            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
286        }
287
288        finally {}
289    }
290
291    static createBidiMirroredWithProvider(provider) {
292        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
293
294        const result = wasm.icu4x_CodePointSetData_create_bidi_mirrored_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
295
296        try {
297            if (!diplomatReceive.resultFlag) {
298                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
299                throw new globalThis.Error('DataError: ' + cause.value, { cause });
300            }
301            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
302        }
303
304        finally {
305            diplomatReceive.free();
306        }
307    }
308
309    static blankForChar(ch) {
310        const result = wasm.icu4x_CodePointSetData_blank_for_char_mv1(ch);
311
312        try {
313            return result;
314        }
315
316        finally {}
317    }
318
319    static createBlank() {
320        const result = wasm.icu4x_CodePointSetData_create_blank_mv1();
321
322        try {
323            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
324        }
325
326        finally {}
327    }
328
329    static createBlankWithProvider(provider) {
330        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
331
332        const result = wasm.icu4x_CodePointSetData_create_blank_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
333
334        try {
335            if (!diplomatReceive.resultFlag) {
336                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
337                throw new globalThis.Error('DataError: ' + cause.value, { cause });
338            }
339            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
340        }
341
342        finally {
343            diplomatReceive.free();
344        }
345    }
346
347    static casedForChar(ch) {
348        const result = wasm.icu4x_CodePointSetData_cased_for_char_mv1(ch);
349
350        try {
351            return result;
352        }
353
354        finally {}
355    }
356
357    static createCased() {
358        const result = wasm.icu4x_CodePointSetData_create_cased_mv1();
359
360        try {
361            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
362        }
363
364        finally {}
365    }
366
367    static createCasedWithProvider(provider) {
368        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
369
370        const result = wasm.icu4x_CodePointSetData_create_cased_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
371
372        try {
373            if (!diplomatReceive.resultFlag) {
374                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
375                throw new globalThis.Error('DataError: ' + cause.value, { cause });
376            }
377            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
378        }
379
380        finally {
381            diplomatReceive.free();
382        }
383    }
384
385    static caseIgnorableForChar(ch) {
386        const result = wasm.icu4x_CodePointSetData_case_ignorable_for_char_mv1(ch);
387
388        try {
389            return result;
390        }
391
392        finally {}
393    }
394
395    static createCaseIgnorable() {
396        const result = wasm.icu4x_CodePointSetData_create_case_ignorable_mv1();
397
398        try {
399            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
400        }
401
402        finally {}
403    }
404
405    static createCaseIgnorableWithProvider(provider) {
406        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
407
408        const result = wasm.icu4x_CodePointSetData_create_case_ignorable_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
409
410        try {
411            if (!diplomatReceive.resultFlag) {
412                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
413                throw new globalThis.Error('DataError: ' + cause.value, { cause });
414            }
415            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
416        }
417
418        finally {
419            diplomatReceive.free();
420        }
421    }
422
423    static fullCompositionExclusionForChar(ch) {
424        const result = wasm.icu4x_CodePointSetData_full_composition_exclusion_for_char_mv1(ch);
425
426        try {
427            return result;
428        }
429
430        finally {}
431    }
432
433    static createFullCompositionExclusion() {
434        const result = wasm.icu4x_CodePointSetData_create_full_composition_exclusion_mv1();
435
436        try {
437            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
438        }
439
440        finally {}
441    }
442
443    static createFullCompositionExclusionWithProvider(provider) {
444        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
445
446        const result = wasm.icu4x_CodePointSetData_create_full_composition_exclusion_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
447
448        try {
449            if (!diplomatReceive.resultFlag) {
450                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
451                throw new globalThis.Error('DataError: ' + cause.value, { cause });
452            }
453            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
454        }
455
456        finally {
457            diplomatReceive.free();
458        }
459    }
460
461    static changesWhenCasefoldedForChar(ch) {
462        const result = wasm.icu4x_CodePointSetData_changes_when_casefolded_for_char_mv1(ch);
463
464        try {
465            return result;
466        }
467
468        finally {}
469    }
470
471    static createChangesWhenCasefolded() {
472        const result = wasm.icu4x_CodePointSetData_create_changes_when_casefolded_mv1();
473
474        try {
475            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
476        }
477
478        finally {}
479    }
480
481    static createChangesWhenCasefoldedWithProvider(provider) {
482        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
483
484        const result = wasm.icu4x_CodePointSetData_create_changes_when_casefolded_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
485
486        try {
487            if (!diplomatReceive.resultFlag) {
488                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
489                throw new globalThis.Error('DataError: ' + cause.value, { cause });
490            }
491            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
492        }
493
494        finally {
495            diplomatReceive.free();
496        }
497    }
498
499    static changesWhenCasemappedForChar(ch) {
500        const result = wasm.icu4x_CodePointSetData_changes_when_casemapped_for_char_mv1(ch);
501
502        try {
503            return result;
504        }
505
506        finally {}
507    }
508
509    static createChangesWhenCasemapped() {
510        const result = wasm.icu4x_CodePointSetData_create_changes_when_casemapped_mv1();
511
512        try {
513            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
514        }
515
516        finally {}
517    }
518
519    static createChangesWhenCasemappedWithProvider(provider) {
520        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
521
522        const result = wasm.icu4x_CodePointSetData_create_changes_when_casemapped_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
523
524        try {
525            if (!diplomatReceive.resultFlag) {
526                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
527                throw new globalThis.Error('DataError: ' + cause.value, { cause });
528            }
529            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
530        }
531
532        finally {
533            diplomatReceive.free();
534        }
535    }
536
537    static changesWhenNfkcCasefoldedForChar(ch) {
538        const result = wasm.icu4x_CodePointSetData_changes_when_nfkc_casefolded_for_char_mv1(ch);
539
540        try {
541            return result;
542        }
543
544        finally {}
545    }
546
547    static createChangesWhenNfkcCasefolded() {
548        const result = wasm.icu4x_CodePointSetData_create_changes_when_nfkc_casefolded_mv1();
549
550        try {
551            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
552        }
553
554        finally {}
555    }
556
557    static createChangesWhenNfkcCasefoldedWithProvider(provider) {
558        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
559
560        const result = wasm.icu4x_CodePointSetData_create_changes_when_nfkc_casefolded_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
561
562        try {
563            if (!diplomatReceive.resultFlag) {
564                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
565                throw new globalThis.Error('DataError: ' + cause.value, { cause });
566            }
567            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
568        }
569
570        finally {
571            diplomatReceive.free();
572        }
573    }
574
575    static changesWhenLowercasedForChar(ch) {
576        const result = wasm.icu4x_CodePointSetData_changes_when_lowercased_for_char_mv1(ch);
577
578        try {
579            return result;
580        }
581
582        finally {}
583    }
584
585    static createChangesWhenLowercased() {
586        const result = wasm.icu4x_CodePointSetData_create_changes_when_lowercased_mv1();
587
588        try {
589            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
590        }
591
592        finally {}
593    }
594
595    static createChangesWhenLowercasedWithProvider(provider) {
596        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
597
598        const result = wasm.icu4x_CodePointSetData_create_changes_when_lowercased_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
599
600        try {
601            if (!diplomatReceive.resultFlag) {
602                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
603                throw new globalThis.Error('DataError: ' + cause.value, { cause });
604            }
605            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
606        }
607
608        finally {
609            diplomatReceive.free();
610        }
611    }
612
613    static changesWhenTitlecasedForChar(ch) {
614        const result = wasm.icu4x_CodePointSetData_changes_when_titlecased_for_char_mv1(ch);
615
616        try {
617            return result;
618        }
619
620        finally {}
621    }
622
623    static createChangesWhenTitlecased() {
624        const result = wasm.icu4x_CodePointSetData_create_changes_when_titlecased_mv1();
625
626        try {
627            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
628        }
629
630        finally {}
631    }
632
633    static createChangesWhenTitlecasedWithProvider(provider) {
634        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
635
636        const result = wasm.icu4x_CodePointSetData_create_changes_when_titlecased_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
637
638        try {
639            if (!diplomatReceive.resultFlag) {
640                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
641                throw new globalThis.Error('DataError: ' + cause.value, { cause });
642            }
643            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
644        }
645
646        finally {
647            diplomatReceive.free();
648        }
649    }
650
651    static changesWhenUppercasedForChar(ch) {
652        const result = wasm.icu4x_CodePointSetData_changes_when_uppercased_for_char_mv1(ch);
653
654        try {
655            return result;
656        }
657
658        finally {}
659    }
660
661    static createChangesWhenUppercased() {
662        const result = wasm.icu4x_CodePointSetData_create_changes_when_uppercased_mv1();
663
664        try {
665            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
666        }
667
668        finally {}
669    }
670
671    static createChangesWhenUppercasedWithProvider(provider) {
672        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
673
674        const result = wasm.icu4x_CodePointSetData_create_changes_when_uppercased_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
675
676        try {
677            if (!diplomatReceive.resultFlag) {
678                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
679                throw new globalThis.Error('DataError: ' + cause.value, { cause });
680            }
681            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
682        }
683
684        finally {
685            diplomatReceive.free();
686        }
687    }
688
689    static dashForChar(ch) {
690        const result = wasm.icu4x_CodePointSetData_dash_for_char_mv1(ch);
691
692        try {
693            return result;
694        }
695
696        finally {}
697    }
698
699    static createDash() {
700        const result = wasm.icu4x_CodePointSetData_create_dash_mv1();
701
702        try {
703            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
704        }
705
706        finally {}
707    }
708
709    static createDashWithProvider(provider) {
710        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
711
712        const result = wasm.icu4x_CodePointSetData_create_dash_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
713
714        try {
715            if (!diplomatReceive.resultFlag) {
716                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
717                throw new globalThis.Error('DataError: ' + cause.value, { cause });
718            }
719            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
720        }
721
722        finally {
723            diplomatReceive.free();
724        }
725    }
726
727    static deprecatedForChar(ch) {
728        const result = wasm.icu4x_CodePointSetData_deprecated_for_char_mv1(ch);
729
730        try {
731            return result;
732        }
733
734        finally {}
735    }
736
737    static createDeprecated() {
738        const result = wasm.icu4x_CodePointSetData_create_deprecated_mv1();
739
740        try {
741            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
742        }
743
744        finally {}
745    }
746
747    static createDeprecatedWithProvider(provider) {
748        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
749
750        const result = wasm.icu4x_CodePointSetData_create_deprecated_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
751
752        try {
753            if (!diplomatReceive.resultFlag) {
754                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
755                throw new globalThis.Error('DataError: ' + cause.value, { cause });
756            }
757            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
758        }
759
760        finally {
761            diplomatReceive.free();
762        }
763    }
764
765    static defaultIgnorableCodePointForChar(ch) {
766        const result = wasm.icu4x_CodePointSetData_default_ignorable_code_point_for_char_mv1(ch);
767
768        try {
769            return result;
770        }
771
772        finally {}
773    }
774
775    static createDefaultIgnorableCodePoint() {
776        const result = wasm.icu4x_CodePointSetData_create_default_ignorable_code_point_mv1();
777
778        try {
779            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
780        }
781
782        finally {}
783    }
784
785    static createDefaultIgnorableCodePointWithProvider(provider) {
786        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
787
788        const result = wasm.icu4x_CodePointSetData_create_default_ignorable_code_point_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
789
790        try {
791            if (!diplomatReceive.resultFlag) {
792                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
793                throw new globalThis.Error('DataError: ' + cause.value, { cause });
794            }
795            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
796        }
797
798        finally {
799            diplomatReceive.free();
800        }
801    }
802
803    static diacriticForChar(ch) {
804        const result = wasm.icu4x_CodePointSetData_diacritic_for_char_mv1(ch);
805
806        try {
807            return result;
808        }
809
810        finally {}
811    }
812
813    static createDiacritic() {
814        const result = wasm.icu4x_CodePointSetData_create_diacritic_mv1();
815
816        try {
817            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
818        }
819
820        finally {}
821    }
822
823    static createDiacriticWithProvider(provider) {
824        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
825
826        const result = wasm.icu4x_CodePointSetData_create_diacritic_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
827
828        try {
829            if (!diplomatReceive.resultFlag) {
830                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
831                throw new globalThis.Error('DataError: ' + cause.value, { cause });
832            }
833            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
834        }
835
836        finally {
837            diplomatReceive.free();
838        }
839    }
840
841    static emojiModifierBaseForChar(ch) {
842        const result = wasm.icu4x_CodePointSetData_emoji_modifier_base_for_char_mv1(ch);
843
844        try {
845            return result;
846        }
847
848        finally {}
849    }
850
851    static createEmojiModifierBase() {
852        const result = wasm.icu4x_CodePointSetData_create_emoji_modifier_base_mv1();
853
854        try {
855            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
856        }
857
858        finally {}
859    }
860
861    static createEmojiModifierBaseWithProvider(provider) {
862        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
863
864        const result = wasm.icu4x_CodePointSetData_create_emoji_modifier_base_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
865
866        try {
867            if (!diplomatReceive.resultFlag) {
868                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
869                throw new globalThis.Error('DataError: ' + cause.value, { cause });
870            }
871            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
872        }
873
874        finally {
875            diplomatReceive.free();
876        }
877    }
878
879    static emojiComponentForChar(ch) {
880        const result = wasm.icu4x_CodePointSetData_emoji_component_for_char_mv1(ch);
881
882        try {
883            return result;
884        }
885
886        finally {}
887    }
888
889    static createEmojiComponent() {
890        const result = wasm.icu4x_CodePointSetData_create_emoji_component_mv1();
891
892        try {
893            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
894        }
895
896        finally {}
897    }
898
899    static createEmojiComponentWithProvider(provider) {
900        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
901
902        const result = wasm.icu4x_CodePointSetData_create_emoji_component_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
903
904        try {
905            if (!diplomatReceive.resultFlag) {
906                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
907                throw new globalThis.Error('DataError: ' + cause.value, { cause });
908            }
909            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
910        }
911
912        finally {
913            diplomatReceive.free();
914        }
915    }
916
917    static emojiModifierForChar(ch) {
918        const result = wasm.icu4x_CodePointSetData_emoji_modifier_for_char_mv1(ch);
919
920        try {
921            return result;
922        }
923
924        finally {}
925    }
926
927    static createEmojiModifier() {
928        const result = wasm.icu4x_CodePointSetData_create_emoji_modifier_mv1();
929
930        try {
931            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
932        }
933
934        finally {}
935    }
936
937    static createEmojiModifierWithProvider(provider) {
938        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
939
940        const result = wasm.icu4x_CodePointSetData_create_emoji_modifier_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
941
942        try {
943            if (!diplomatReceive.resultFlag) {
944                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
945                throw new globalThis.Error('DataError: ' + cause.value, { cause });
946            }
947            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
948        }
949
950        finally {
951            diplomatReceive.free();
952        }
953    }
954
955    static emojiForChar(ch) {
956        const result = wasm.icu4x_CodePointSetData_emoji_for_char_mv1(ch);
957
958        try {
959            return result;
960        }
961
962        finally {}
963    }
964
965    static createEmoji() {
966        const result = wasm.icu4x_CodePointSetData_create_emoji_mv1();
967
968        try {
969            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
970        }
971
972        finally {}
973    }
974
975    static createEmojiWithProvider(provider) {
976        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
977
978        const result = wasm.icu4x_CodePointSetData_create_emoji_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
979
980        try {
981            if (!diplomatReceive.resultFlag) {
982                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
983                throw new globalThis.Error('DataError: ' + cause.value, { cause });
984            }
985            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
986        }
987
988        finally {
989            diplomatReceive.free();
990        }
991    }
992
993    static emojiPresentationForChar(ch) {
994        const result = wasm.icu4x_CodePointSetData_emoji_presentation_for_char_mv1(ch);
995
996        try {
997            return result;
998        }
999
1000        finally {}
1001    }
1002
1003    static createEmojiPresentation() {
1004        const result = wasm.icu4x_CodePointSetData_create_emoji_presentation_mv1();
1005
1006        try {
1007            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1008        }
1009
1010        finally {}
1011    }
1012
1013    static createEmojiPresentationWithProvider(provider) {
1014        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1015
1016        const result = wasm.icu4x_CodePointSetData_create_emoji_presentation_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1017
1018        try {
1019            if (!diplomatReceive.resultFlag) {
1020                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1021                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1022            }
1023            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1024        }
1025
1026        finally {
1027            diplomatReceive.free();
1028        }
1029    }
1030
1031    static extenderForChar(ch) {
1032        const result = wasm.icu4x_CodePointSetData_extender_for_char_mv1(ch);
1033
1034        try {
1035            return result;
1036        }
1037
1038        finally {}
1039    }
1040
1041    static createExtender() {
1042        const result = wasm.icu4x_CodePointSetData_create_extender_mv1();
1043
1044        try {
1045            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1046        }
1047
1048        finally {}
1049    }
1050
1051    static createExtenderWithProvider(provider) {
1052        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1053
1054        const result = wasm.icu4x_CodePointSetData_create_extender_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1055
1056        try {
1057            if (!diplomatReceive.resultFlag) {
1058                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1059                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1060            }
1061            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1062        }
1063
1064        finally {
1065            diplomatReceive.free();
1066        }
1067    }
1068
1069    static extendedPictographicForChar(ch) {
1070        const result = wasm.icu4x_CodePointSetData_extended_pictographic_for_char_mv1(ch);
1071
1072        try {
1073            return result;
1074        }
1075
1076        finally {}
1077    }
1078
1079    static createExtendedPictographic() {
1080        const result = wasm.icu4x_CodePointSetData_create_extended_pictographic_mv1();
1081
1082        try {
1083            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1084        }
1085
1086        finally {}
1087    }
1088
1089    static createExtendedPictographicWithProvider(provider) {
1090        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1091
1092        const result = wasm.icu4x_CodePointSetData_create_extended_pictographic_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1093
1094        try {
1095            if (!diplomatReceive.resultFlag) {
1096                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1097                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1098            }
1099            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1100        }
1101
1102        finally {
1103            diplomatReceive.free();
1104        }
1105    }
1106
1107    static graphForChar(ch) {
1108        const result = wasm.icu4x_CodePointSetData_graph_for_char_mv1(ch);
1109
1110        try {
1111            return result;
1112        }
1113
1114        finally {}
1115    }
1116
1117    static createGraph() {
1118        const result = wasm.icu4x_CodePointSetData_create_graph_mv1();
1119
1120        try {
1121            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1122        }
1123
1124        finally {}
1125    }
1126
1127    static createGraphWithProvider(provider) {
1128        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1129
1130        const result = wasm.icu4x_CodePointSetData_create_graph_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1131
1132        try {
1133            if (!diplomatReceive.resultFlag) {
1134                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1135                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1136            }
1137            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1138        }
1139
1140        finally {
1141            diplomatReceive.free();
1142        }
1143    }
1144
1145    static graphemeBaseForChar(ch) {
1146        const result = wasm.icu4x_CodePointSetData_grapheme_base_for_char_mv1(ch);
1147
1148        try {
1149            return result;
1150        }
1151
1152        finally {}
1153    }
1154
1155    static createGraphemeBase() {
1156        const result = wasm.icu4x_CodePointSetData_create_grapheme_base_mv1();
1157
1158        try {
1159            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1160        }
1161
1162        finally {}
1163    }
1164
1165    static createGraphemeBaseWithProvider(provider) {
1166        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1167
1168        const result = wasm.icu4x_CodePointSetData_create_grapheme_base_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1169
1170        try {
1171            if (!diplomatReceive.resultFlag) {
1172                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1173                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1174            }
1175            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1176        }
1177
1178        finally {
1179            diplomatReceive.free();
1180        }
1181    }
1182
1183    static graphemeExtendForChar(ch) {
1184        const result = wasm.icu4x_CodePointSetData_grapheme_extend_for_char_mv1(ch);
1185
1186        try {
1187            return result;
1188        }
1189
1190        finally {}
1191    }
1192
1193    static createGraphemeExtend() {
1194        const result = wasm.icu4x_CodePointSetData_create_grapheme_extend_mv1();
1195
1196        try {
1197            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1198        }
1199
1200        finally {}
1201    }
1202
1203    static createGraphemeExtendWithProvider(provider) {
1204        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1205
1206        const result = wasm.icu4x_CodePointSetData_create_grapheme_extend_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1207
1208        try {
1209            if (!diplomatReceive.resultFlag) {
1210                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1211                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1212            }
1213            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1214        }
1215
1216        finally {
1217            diplomatReceive.free();
1218        }
1219    }
1220
1221    static graphemeLinkForChar(ch) {
1222        const result = wasm.icu4x_CodePointSetData_grapheme_link_for_char_mv1(ch);
1223
1224        try {
1225            return result;
1226        }
1227
1228        finally {}
1229    }
1230
1231    static createGraphemeLink() {
1232        const result = wasm.icu4x_CodePointSetData_create_grapheme_link_mv1();
1233
1234        try {
1235            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1236        }
1237
1238        finally {}
1239    }
1240
1241    static createGraphemeLinkWithProvider(provider) {
1242        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1243
1244        const result = wasm.icu4x_CodePointSetData_create_grapheme_link_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1245
1246        try {
1247            if (!diplomatReceive.resultFlag) {
1248                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1249                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1250            }
1251            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1252        }
1253
1254        finally {
1255            diplomatReceive.free();
1256        }
1257    }
1258
1259    static hexDigitForChar(ch) {
1260        const result = wasm.icu4x_CodePointSetData_hex_digit_for_char_mv1(ch);
1261
1262        try {
1263            return result;
1264        }
1265
1266        finally {}
1267    }
1268
1269    static createHexDigit() {
1270        const result = wasm.icu4x_CodePointSetData_create_hex_digit_mv1();
1271
1272        try {
1273            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1274        }
1275
1276        finally {}
1277    }
1278
1279    static createHexDigitWithProvider(provider) {
1280        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1281
1282        const result = wasm.icu4x_CodePointSetData_create_hex_digit_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1283
1284        try {
1285            if (!diplomatReceive.resultFlag) {
1286                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1287                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1288            }
1289            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1290        }
1291
1292        finally {
1293            diplomatReceive.free();
1294        }
1295    }
1296
1297    static hyphenForChar(ch) {
1298        const result = wasm.icu4x_CodePointSetData_hyphen_for_char_mv1(ch);
1299
1300        try {
1301            return result;
1302        }
1303
1304        finally {}
1305    }
1306
1307    static createHyphen() {
1308        const result = wasm.icu4x_CodePointSetData_create_hyphen_mv1();
1309
1310        try {
1311            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1312        }
1313
1314        finally {}
1315    }
1316
1317    static createHyphenWithProvider(provider) {
1318        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1319
1320        const result = wasm.icu4x_CodePointSetData_create_hyphen_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1321
1322        try {
1323            if (!diplomatReceive.resultFlag) {
1324                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1325                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1326            }
1327            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1328        }
1329
1330        finally {
1331            diplomatReceive.free();
1332        }
1333    }
1334
1335    static idContinueForChar(ch) {
1336        const result = wasm.icu4x_CodePointSetData_id_continue_for_char_mv1(ch);
1337
1338        try {
1339            return result;
1340        }
1341
1342        finally {}
1343    }
1344
1345    static createIdContinue() {
1346        const result = wasm.icu4x_CodePointSetData_create_id_continue_mv1();
1347
1348        try {
1349            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1350        }
1351
1352        finally {}
1353    }
1354
1355    static createIdContinueWithProvider(provider) {
1356        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1357
1358        const result = wasm.icu4x_CodePointSetData_create_id_continue_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1359
1360        try {
1361            if (!diplomatReceive.resultFlag) {
1362                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1363                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1364            }
1365            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1366        }
1367
1368        finally {
1369            diplomatReceive.free();
1370        }
1371    }
1372
1373    static ideographicForChar(ch) {
1374        const result = wasm.icu4x_CodePointSetData_ideographic_for_char_mv1(ch);
1375
1376        try {
1377            return result;
1378        }
1379
1380        finally {}
1381    }
1382
1383    static createIdeographic() {
1384        const result = wasm.icu4x_CodePointSetData_create_ideographic_mv1();
1385
1386        try {
1387            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1388        }
1389
1390        finally {}
1391    }
1392
1393    static createIdeographicWithProvider(provider) {
1394        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1395
1396        const result = wasm.icu4x_CodePointSetData_create_ideographic_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1397
1398        try {
1399            if (!diplomatReceive.resultFlag) {
1400                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1401                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1402            }
1403            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1404        }
1405
1406        finally {
1407            diplomatReceive.free();
1408        }
1409    }
1410
1411    static idStartForChar(ch) {
1412        const result = wasm.icu4x_CodePointSetData_id_start_for_char_mv1(ch);
1413
1414        try {
1415            return result;
1416        }
1417
1418        finally {}
1419    }
1420
1421    static createIdStart() {
1422        const result = wasm.icu4x_CodePointSetData_create_id_start_mv1();
1423
1424        try {
1425            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1426        }
1427
1428        finally {}
1429    }
1430
1431    static createIdStartWithProvider(provider) {
1432        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1433
1434        const result = wasm.icu4x_CodePointSetData_create_id_start_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1435
1436        try {
1437            if (!diplomatReceive.resultFlag) {
1438                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1439                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1440            }
1441            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1442        }
1443
1444        finally {
1445            diplomatReceive.free();
1446        }
1447    }
1448
1449    static idsBinaryOperatorForChar(ch) {
1450        const result = wasm.icu4x_CodePointSetData_ids_binary_operator_for_char_mv1(ch);
1451
1452        try {
1453            return result;
1454        }
1455
1456        finally {}
1457    }
1458
1459    static createIdsBinaryOperator() {
1460        const result = wasm.icu4x_CodePointSetData_create_ids_binary_operator_mv1();
1461
1462        try {
1463            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1464        }
1465
1466        finally {}
1467    }
1468
1469    static createIdsBinaryOperatorWithProvider(provider) {
1470        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1471
1472        const result = wasm.icu4x_CodePointSetData_create_ids_binary_operator_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1473
1474        try {
1475            if (!diplomatReceive.resultFlag) {
1476                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1477                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1478            }
1479            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1480        }
1481
1482        finally {
1483            diplomatReceive.free();
1484        }
1485    }
1486
1487    static idsTrinaryOperatorForChar(ch) {
1488        const result = wasm.icu4x_CodePointSetData_ids_trinary_operator_for_char_mv1(ch);
1489
1490        try {
1491            return result;
1492        }
1493
1494        finally {}
1495    }
1496
1497    static createIdsTrinaryOperator() {
1498        const result = wasm.icu4x_CodePointSetData_create_ids_trinary_operator_mv1();
1499
1500        try {
1501            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1502        }
1503
1504        finally {}
1505    }
1506
1507    static createIdsTrinaryOperatorWithProvider(provider) {
1508        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1509
1510        const result = wasm.icu4x_CodePointSetData_create_ids_trinary_operator_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1511
1512        try {
1513            if (!diplomatReceive.resultFlag) {
1514                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1515                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1516            }
1517            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1518        }
1519
1520        finally {
1521            diplomatReceive.free();
1522        }
1523    }
1524
1525    static joinControlForChar(ch) {
1526        const result = wasm.icu4x_CodePointSetData_join_control_for_char_mv1(ch);
1527
1528        try {
1529            return result;
1530        }
1531
1532        finally {}
1533    }
1534
1535    static createJoinControl() {
1536        const result = wasm.icu4x_CodePointSetData_create_join_control_mv1();
1537
1538        try {
1539            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1540        }
1541
1542        finally {}
1543    }
1544
1545    static createJoinControlWithProvider(provider) {
1546        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1547
1548        const result = wasm.icu4x_CodePointSetData_create_join_control_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1549
1550        try {
1551            if (!diplomatReceive.resultFlag) {
1552                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1553                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1554            }
1555            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1556        }
1557
1558        finally {
1559            diplomatReceive.free();
1560        }
1561    }
1562
1563    static logicalOrderExceptionForChar(ch) {
1564        const result = wasm.icu4x_CodePointSetData_logical_order_exception_for_char_mv1(ch);
1565
1566        try {
1567            return result;
1568        }
1569
1570        finally {}
1571    }
1572
1573    static createLogicalOrderException() {
1574        const result = wasm.icu4x_CodePointSetData_create_logical_order_exception_mv1();
1575
1576        try {
1577            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1578        }
1579
1580        finally {}
1581    }
1582
1583    static createLogicalOrderExceptionWithProvider(provider) {
1584        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1585
1586        const result = wasm.icu4x_CodePointSetData_create_logical_order_exception_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1587
1588        try {
1589            if (!diplomatReceive.resultFlag) {
1590                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1591                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1592            }
1593            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1594        }
1595
1596        finally {
1597            diplomatReceive.free();
1598        }
1599    }
1600
1601    static lowercaseForChar(ch) {
1602        const result = wasm.icu4x_CodePointSetData_lowercase_for_char_mv1(ch);
1603
1604        try {
1605            return result;
1606        }
1607
1608        finally {}
1609    }
1610
1611    static createLowercase() {
1612        const result = wasm.icu4x_CodePointSetData_create_lowercase_mv1();
1613
1614        try {
1615            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1616        }
1617
1618        finally {}
1619    }
1620
1621    static createLowercaseWithProvider(provider) {
1622        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1623
1624        const result = wasm.icu4x_CodePointSetData_create_lowercase_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1625
1626        try {
1627            if (!diplomatReceive.resultFlag) {
1628                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1629                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1630            }
1631            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1632        }
1633
1634        finally {
1635            diplomatReceive.free();
1636        }
1637    }
1638
1639    static mathForChar(ch) {
1640        const result = wasm.icu4x_CodePointSetData_math_for_char_mv1(ch);
1641
1642        try {
1643            return result;
1644        }
1645
1646        finally {}
1647    }
1648
1649    static createMath() {
1650        const result = wasm.icu4x_CodePointSetData_create_math_mv1();
1651
1652        try {
1653            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1654        }
1655
1656        finally {}
1657    }
1658
1659    static createMathWithProvider(provider) {
1660        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1661
1662        const result = wasm.icu4x_CodePointSetData_create_math_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1663
1664        try {
1665            if (!diplomatReceive.resultFlag) {
1666                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1667                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1668            }
1669            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1670        }
1671
1672        finally {
1673            diplomatReceive.free();
1674        }
1675    }
1676
1677    static noncharacterCodePointForChar(ch) {
1678        const result = wasm.icu4x_CodePointSetData_noncharacter_code_point_for_char_mv1(ch);
1679
1680        try {
1681            return result;
1682        }
1683
1684        finally {}
1685    }
1686
1687    static createNoncharacterCodePoint() {
1688        const result = wasm.icu4x_CodePointSetData_create_noncharacter_code_point_mv1();
1689
1690        try {
1691            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1692        }
1693
1694        finally {}
1695    }
1696
1697    static createNoncharacterCodePointWithProvider(provider) {
1698        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1699
1700        const result = wasm.icu4x_CodePointSetData_create_noncharacter_code_point_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1701
1702        try {
1703            if (!diplomatReceive.resultFlag) {
1704                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1705                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1706            }
1707            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1708        }
1709
1710        finally {
1711            diplomatReceive.free();
1712        }
1713    }
1714
1715    static nfcInertForChar(ch) {
1716        const result = wasm.icu4x_CodePointSetData_nfc_inert_for_char_mv1(ch);
1717
1718        try {
1719            return result;
1720        }
1721
1722        finally {}
1723    }
1724
1725    static createNfcInert() {
1726        const result = wasm.icu4x_CodePointSetData_create_nfc_inert_mv1();
1727
1728        try {
1729            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1730        }
1731
1732        finally {}
1733    }
1734
1735    static createNfcInertWithProvider(provider) {
1736        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1737
1738        const result = wasm.icu4x_CodePointSetData_create_nfc_inert_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1739
1740        try {
1741            if (!diplomatReceive.resultFlag) {
1742                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1743                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1744            }
1745            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1746        }
1747
1748        finally {
1749            diplomatReceive.free();
1750        }
1751    }
1752
1753    static nfdInertForChar(ch) {
1754        const result = wasm.icu4x_CodePointSetData_nfd_inert_for_char_mv1(ch);
1755
1756        try {
1757            return result;
1758        }
1759
1760        finally {}
1761    }
1762
1763    static createNfdInert() {
1764        const result = wasm.icu4x_CodePointSetData_create_nfd_inert_mv1();
1765
1766        try {
1767            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1768        }
1769
1770        finally {}
1771    }
1772
1773    static createNfdInertWithProvider(provider) {
1774        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1775
1776        const result = wasm.icu4x_CodePointSetData_create_nfd_inert_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1777
1778        try {
1779            if (!diplomatReceive.resultFlag) {
1780                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1781                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1782            }
1783            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1784        }
1785
1786        finally {
1787            diplomatReceive.free();
1788        }
1789    }
1790
1791    static nfkcInertForChar(ch) {
1792        const result = wasm.icu4x_CodePointSetData_nfkc_inert_for_char_mv1(ch);
1793
1794        try {
1795            return result;
1796        }
1797
1798        finally {}
1799    }
1800
1801    static createNfkcInert() {
1802        const result = wasm.icu4x_CodePointSetData_create_nfkc_inert_mv1();
1803
1804        try {
1805            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1806        }
1807
1808        finally {}
1809    }
1810
1811    static createNfkcInertWithProvider(provider) {
1812        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1813
1814        const result = wasm.icu4x_CodePointSetData_create_nfkc_inert_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1815
1816        try {
1817            if (!diplomatReceive.resultFlag) {
1818                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1819                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1820            }
1821            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1822        }
1823
1824        finally {
1825            diplomatReceive.free();
1826        }
1827    }
1828
1829    static nfkdInertForChar(ch) {
1830        const result = wasm.icu4x_CodePointSetData_nfkd_inert_for_char_mv1(ch);
1831
1832        try {
1833            return result;
1834        }
1835
1836        finally {}
1837    }
1838
1839    static createNfkdInert() {
1840        const result = wasm.icu4x_CodePointSetData_create_nfkd_inert_mv1();
1841
1842        try {
1843            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1844        }
1845
1846        finally {}
1847    }
1848
1849    static createNfkdInertWithProvider(provider) {
1850        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1851
1852        const result = wasm.icu4x_CodePointSetData_create_nfkd_inert_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1853
1854        try {
1855            if (!diplomatReceive.resultFlag) {
1856                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1857                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1858            }
1859            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1860        }
1861
1862        finally {
1863            diplomatReceive.free();
1864        }
1865    }
1866
1867    static patternSyntaxForChar(ch) {
1868        const result = wasm.icu4x_CodePointSetData_pattern_syntax_for_char_mv1(ch);
1869
1870        try {
1871            return result;
1872        }
1873
1874        finally {}
1875    }
1876
1877    static createPatternSyntax() {
1878        const result = wasm.icu4x_CodePointSetData_create_pattern_syntax_mv1();
1879
1880        try {
1881            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1882        }
1883
1884        finally {}
1885    }
1886
1887    static createPatternSyntaxWithProvider(provider) {
1888        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1889
1890        const result = wasm.icu4x_CodePointSetData_create_pattern_syntax_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1891
1892        try {
1893            if (!diplomatReceive.resultFlag) {
1894                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1895                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1896            }
1897            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1898        }
1899
1900        finally {
1901            diplomatReceive.free();
1902        }
1903    }
1904
1905    static patternWhiteSpaceForChar(ch) {
1906        const result = wasm.icu4x_CodePointSetData_pattern_white_space_for_char_mv1(ch);
1907
1908        try {
1909            return result;
1910        }
1911
1912        finally {}
1913    }
1914
1915    static createPatternWhiteSpace() {
1916        const result = wasm.icu4x_CodePointSetData_create_pattern_white_space_mv1();
1917
1918        try {
1919            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1920        }
1921
1922        finally {}
1923    }
1924
1925    static createPatternWhiteSpaceWithProvider(provider) {
1926        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1927
1928        const result = wasm.icu4x_CodePointSetData_create_pattern_white_space_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1929
1930        try {
1931            if (!diplomatReceive.resultFlag) {
1932                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1933                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1934            }
1935            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1936        }
1937
1938        finally {
1939            diplomatReceive.free();
1940        }
1941    }
1942
1943    static prependedConcatenationMarkForChar(ch) {
1944        const result = wasm.icu4x_CodePointSetData_prepended_concatenation_mark_for_char_mv1(ch);
1945
1946        try {
1947            return result;
1948        }
1949
1950        finally {}
1951    }
1952
1953    static createPrependedConcatenationMark() {
1954        const result = wasm.icu4x_CodePointSetData_create_prepended_concatenation_mark_mv1();
1955
1956        try {
1957            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1958        }
1959
1960        finally {}
1961    }
1962
1963    static createPrependedConcatenationMarkWithProvider(provider) {
1964        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
1965
1966        const result = wasm.icu4x_CodePointSetData_create_prepended_concatenation_mark_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
1967
1968        try {
1969            if (!diplomatReceive.resultFlag) {
1970                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
1971                throw new globalThis.Error('DataError: ' + cause.value, { cause });
1972            }
1973            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
1974        }
1975
1976        finally {
1977            diplomatReceive.free();
1978        }
1979    }
1980
1981    static printForChar(ch) {
1982        const result = wasm.icu4x_CodePointSetData_print_for_char_mv1(ch);
1983
1984        try {
1985            return result;
1986        }
1987
1988        finally {}
1989    }
1990
1991    static createPrint() {
1992        const result = wasm.icu4x_CodePointSetData_create_print_mv1();
1993
1994        try {
1995            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
1996        }
1997
1998        finally {}
1999    }
2000
2001    static createPrintWithProvider(provider) {
2002        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2003
2004        const result = wasm.icu4x_CodePointSetData_create_print_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2005
2006        try {
2007            if (!diplomatReceive.resultFlag) {
2008                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2009                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2010            }
2011            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2012        }
2013
2014        finally {
2015            diplomatReceive.free();
2016        }
2017    }
2018
2019    static quotationMarkForChar(ch) {
2020        const result = wasm.icu4x_CodePointSetData_quotation_mark_for_char_mv1(ch);
2021
2022        try {
2023            return result;
2024        }
2025
2026        finally {}
2027    }
2028
2029    static createQuotationMark() {
2030        const result = wasm.icu4x_CodePointSetData_create_quotation_mark_mv1();
2031
2032        try {
2033            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2034        }
2035
2036        finally {}
2037    }
2038
2039    static createQuotationMarkWithProvider(provider) {
2040        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2041
2042        const result = wasm.icu4x_CodePointSetData_create_quotation_mark_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2043
2044        try {
2045            if (!diplomatReceive.resultFlag) {
2046                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2047                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2048            }
2049            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2050        }
2051
2052        finally {
2053            diplomatReceive.free();
2054        }
2055    }
2056
2057    static radicalForChar(ch) {
2058        const result = wasm.icu4x_CodePointSetData_radical_for_char_mv1(ch);
2059
2060        try {
2061            return result;
2062        }
2063
2064        finally {}
2065    }
2066
2067    static createRadical() {
2068        const result = wasm.icu4x_CodePointSetData_create_radical_mv1();
2069
2070        try {
2071            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2072        }
2073
2074        finally {}
2075    }
2076
2077    static createRadicalWithProvider(provider) {
2078        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2079
2080        const result = wasm.icu4x_CodePointSetData_create_radical_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2081
2082        try {
2083            if (!diplomatReceive.resultFlag) {
2084                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2085                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2086            }
2087            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2088        }
2089
2090        finally {
2091            diplomatReceive.free();
2092        }
2093    }
2094
2095    static regionalIndicatorForChar(ch) {
2096        const result = wasm.icu4x_CodePointSetData_regional_indicator_for_char_mv1(ch);
2097
2098        try {
2099            return result;
2100        }
2101
2102        finally {}
2103    }
2104
2105    static createRegionalIndicator() {
2106        const result = wasm.icu4x_CodePointSetData_create_regional_indicator_mv1();
2107
2108        try {
2109            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2110        }
2111
2112        finally {}
2113    }
2114
2115    static createRegionalIndicatorWithProvider(provider) {
2116        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2117
2118        const result = wasm.icu4x_CodePointSetData_create_regional_indicator_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2119
2120        try {
2121            if (!diplomatReceive.resultFlag) {
2122                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2123                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2124            }
2125            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2126        }
2127
2128        finally {
2129            diplomatReceive.free();
2130        }
2131    }
2132
2133    static softDottedForChar(ch) {
2134        const result = wasm.icu4x_CodePointSetData_soft_dotted_for_char_mv1(ch);
2135
2136        try {
2137            return result;
2138        }
2139
2140        finally {}
2141    }
2142
2143    static createSoftDotted() {
2144        const result = wasm.icu4x_CodePointSetData_create_soft_dotted_mv1();
2145
2146        try {
2147            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2148        }
2149
2150        finally {}
2151    }
2152
2153    static createSoftDottedWithProvider(provider) {
2154        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2155
2156        const result = wasm.icu4x_CodePointSetData_create_soft_dotted_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2157
2158        try {
2159            if (!diplomatReceive.resultFlag) {
2160                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2161                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2162            }
2163            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2164        }
2165
2166        finally {
2167            diplomatReceive.free();
2168        }
2169    }
2170
2171    static segmentStarterForChar(ch) {
2172        const result = wasm.icu4x_CodePointSetData_segment_starter_for_char_mv1(ch);
2173
2174        try {
2175            return result;
2176        }
2177
2178        finally {}
2179    }
2180
2181    static createSegmentStarter() {
2182        const result = wasm.icu4x_CodePointSetData_create_segment_starter_mv1();
2183
2184        try {
2185            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2186        }
2187
2188        finally {}
2189    }
2190
2191    static createSegmentStarterWithProvider(provider) {
2192        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2193
2194        const result = wasm.icu4x_CodePointSetData_create_segment_starter_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2195
2196        try {
2197            if (!diplomatReceive.resultFlag) {
2198                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2199                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2200            }
2201            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2202        }
2203
2204        finally {
2205            diplomatReceive.free();
2206        }
2207    }
2208
2209    static caseSensitiveForChar(ch) {
2210        const result = wasm.icu4x_CodePointSetData_case_sensitive_for_char_mv1(ch);
2211
2212        try {
2213            return result;
2214        }
2215
2216        finally {}
2217    }
2218
2219    static createCaseSensitive() {
2220        const result = wasm.icu4x_CodePointSetData_create_case_sensitive_mv1();
2221
2222        try {
2223            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2224        }
2225
2226        finally {}
2227    }
2228
2229    static createCaseSensitiveWithProvider(provider) {
2230        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2231
2232        const result = wasm.icu4x_CodePointSetData_create_case_sensitive_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2233
2234        try {
2235            if (!diplomatReceive.resultFlag) {
2236                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2237                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2238            }
2239            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2240        }
2241
2242        finally {
2243            diplomatReceive.free();
2244        }
2245    }
2246
2247    static sentenceTerminalForChar(ch) {
2248        const result = wasm.icu4x_CodePointSetData_sentence_terminal_for_char_mv1(ch);
2249
2250        try {
2251            return result;
2252        }
2253
2254        finally {}
2255    }
2256
2257    static createSentenceTerminal() {
2258        const result = wasm.icu4x_CodePointSetData_create_sentence_terminal_mv1();
2259
2260        try {
2261            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2262        }
2263
2264        finally {}
2265    }
2266
2267    static createSentenceTerminalWithProvider(provider) {
2268        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2269
2270        const result = wasm.icu4x_CodePointSetData_create_sentence_terminal_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2271
2272        try {
2273            if (!diplomatReceive.resultFlag) {
2274                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2275                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2276            }
2277            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2278        }
2279
2280        finally {
2281            diplomatReceive.free();
2282        }
2283    }
2284
2285    static terminalPunctuationForChar(ch) {
2286        const result = wasm.icu4x_CodePointSetData_terminal_punctuation_for_char_mv1(ch);
2287
2288        try {
2289            return result;
2290        }
2291
2292        finally {}
2293    }
2294
2295    static createTerminalPunctuation() {
2296        const result = wasm.icu4x_CodePointSetData_create_terminal_punctuation_mv1();
2297
2298        try {
2299            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2300        }
2301
2302        finally {}
2303    }
2304
2305    static createTerminalPunctuationWithProvider(provider) {
2306        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2307
2308        const result = wasm.icu4x_CodePointSetData_create_terminal_punctuation_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2309
2310        try {
2311            if (!diplomatReceive.resultFlag) {
2312                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2313                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2314            }
2315            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2316        }
2317
2318        finally {
2319            diplomatReceive.free();
2320        }
2321    }
2322
2323    static unifiedIdeographForChar(ch) {
2324        const result = wasm.icu4x_CodePointSetData_unified_ideograph_for_char_mv1(ch);
2325
2326        try {
2327            return result;
2328        }
2329
2330        finally {}
2331    }
2332
2333    static createUnifiedIdeograph() {
2334        const result = wasm.icu4x_CodePointSetData_create_unified_ideograph_mv1();
2335
2336        try {
2337            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2338        }
2339
2340        finally {}
2341    }
2342
2343    static createUnifiedIdeographWithProvider(provider) {
2344        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2345
2346        const result = wasm.icu4x_CodePointSetData_create_unified_ideograph_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2347
2348        try {
2349            if (!diplomatReceive.resultFlag) {
2350                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2351                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2352            }
2353            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2354        }
2355
2356        finally {
2357            diplomatReceive.free();
2358        }
2359    }
2360
2361    static uppercaseForChar(ch) {
2362        const result = wasm.icu4x_CodePointSetData_uppercase_for_char_mv1(ch);
2363
2364        try {
2365            return result;
2366        }
2367
2368        finally {}
2369    }
2370
2371    static createUppercase() {
2372        const result = wasm.icu4x_CodePointSetData_create_uppercase_mv1();
2373
2374        try {
2375            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2376        }
2377
2378        finally {}
2379    }
2380
2381    static createUppercaseWithProvider(provider) {
2382        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2383
2384        const result = wasm.icu4x_CodePointSetData_create_uppercase_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2385
2386        try {
2387            if (!diplomatReceive.resultFlag) {
2388                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2389                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2390            }
2391            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2392        }
2393
2394        finally {
2395            diplomatReceive.free();
2396        }
2397    }
2398
2399    static variationSelectorForChar(ch) {
2400        const result = wasm.icu4x_CodePointSetData_variation_selector_for_char_mv1(ch);
2401
2402        try {
2403            return result;
2404        }
2405
2406        finally {}
2407    }
2408
2409    static createVariationSelector() {
2410        const result = wasm.icu4x_CodePointSetData_create_variation_selector_mv1();
2411
2412        try {
2413            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2414        }
2415
2416        finally {}
2417    }
2418
2419    static createVariationSelectorWithProvider(provider) {
2420        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2421
2422        const result = wasm.icu4x_CodePointSetData_create_variation_selector_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2423
2424        try {
2425            if (!diplomatReceive.resultFlag) {
2426                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2427                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2428            }
2429            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2430        }
2431
2432        finally {
2433            diplomatReceive.free();
2434        }
2435    }
2436
2437    static whiteSpaceForChar(ch) {
2438        const result = wasm.icu4x_CodePointSetData_white_space_for_char_mv1(ch);
2439
2440        try {
2441            return result;
2442        }
2443
2444        finally {}
2445    }
2446
2447    static createWhiteSpace() {
2448        const result = wasm.icu4x_CodePointSetData_create_white_space_mv1();
2449
2450        try {
2451            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2452        }
2453
2454        finally {}
2455    }
2456
2457    static createWhiteSpaceWithProvider(provider) {
2458        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2459
2460        const result = wasm.icu4x_CodePointSetData_create_white_space_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2461
2462        try {
2463            if (!diplomatReceive.resultFlag) {
2464                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2465                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2466            }
2467            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2468        }
2469
2470        finally {
2471            diplomatReceive.free();
2472        }
2473    }
2474
2475    static xdigitForChar(ch) {
2476        const result = wasm.icu4x_CodePointSetData_xdigit_for_char_mv1(ch);
2477
2478        try {
2479            return result;
2480        }
2481
2482        finally {}
2483    }
2484
2485    static createXdigit() {
2486        const result = wasm.icu4x_CodePointSetData_create_xdigit_mv1();
2487
2488        try {
2489            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2490        }
2491
2492        finally {}
2493    }
2494
2495    static createXdigitWithProvider(provider) {
2496        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2497
2498        const result = wasm.icu4x_CodePointSetData_create_xdigit_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2499
2500        try {
2501            if (!diplomatReceive.resultFlag) {
2502                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2503                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2504            }
2505            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2506        }
2507
2508        finally {
2509            diplomatReceive.free();
2510        }
2511    }
2512
2513    static xidContinueForChar(ch) {
2514        const result = wasm.icu4x_CodePointSetData_xid_continue_for_char_mv1(ch);
2515
2516        try {
2517            return result;
2518        }
2519
2520        finally {}
2521    }
2522
2523    static createXidContinue() {
2524        const result = wasm.icu4x_CodePointSetData_create_xid_continue_mv1();
2525
2526        try {
2527            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2528        }
2529
2530        finally {}
2531    }
2532
2533    static createXidContinueWithProvider(provider) {
2534        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2535
2536        const result = wasm.icu4x_CodePointSetData_create_xid_continue_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2537
2538        try {
2539            if (!diplomatReceive.resultFlag) {
2540                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2541                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2542            }
2543            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2544        }
2545
2546        finally {
2547            diplomatReceive.free();
2548        }
2549    }
2550
2551    static xidStartForChar(ch) {
2552        const result = wasm.icu4x_CodePointSetData_xid_start_for_char_mv1(ch);
2553
2554        try {
2555            return result;
2556        }
2557
2558        finally {}
2559    }
2560
2561    static createXidStart() {
2562        const result = wasm.icu4x_CodePointSetData_create_xid_start_mv1();
2563
2564        try {
2565            return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
2566        }
2567
2568        finally {}
2569    }
2570
2571    static createXidStartWithProvider(provider) {
2572        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2573
2574        const result = wasm.icu4x_CodePointSetData_create_xid_start_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
2575
2576        try {
2577            if (!diplomatReceive.resultFlag) {
2578                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2579                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2580            }
2581            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2582        }
2583
2584        finally {
2585            diplomatReceive.free();
2586        }
2587    }
2588
2589    static createForEcma262(propertyName) {
2590        let functionCleanupArena = new diplomatRuntime.CleanupArena();
2591
2592        const propertyNameSlice = functionCleanupArena.alloc(diplomatRuntime.DiplomatBuf.str8(wasm, propertyName));
2593
2594        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2595
2596        const result = wasm.icu4x_CodePointSetData_create_for_ecma262_mv1(diplomatReceive.buffer, ...propertyNameSlice.splat());
2597
2598        try {
2599            if (!diplomatReceive.resultFlag) {
2600                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2601                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2602            }
2603            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2604        }
2605
2606        finally {
2607            functionCleanupArena.free();
2608
2609            diplomatReceive.free();
2610        }
2611    }
2612
2613    static createForEcma262WithProvider(provider, propertyName) {
2614        let functionCleanupArena = new diplomatRuntime.CleanupArena();
2615
2616        const propertyNameSlice = functionCleanupArena.alloc(diplomatRuntime.DiplomatBuf.str8(wasm, propertyName));
2617
2618        const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
2619
2620        const result = wasm.icu4x_CodePointSetData_create_for_ecma262_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue, ...propertyNameSlice.splat());
2621
2622        try {
2623            if (!diplomatReceive.resultFlag) {
2624                const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
2625                throw new globalThis.Error('DataError: ' + cause.value, { cause });
2626            }
2627            return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
2628        }
2629
2630        finally {
2631            functionCleanupArena.free();
2632
2633            diplomatReceive.free();
2634        }
2635    }
2636
2637    constructor(symbol, ptr, selfEdge) {
2638        return this.#internalConstructor(...arguments)
2639    }
2640}