Quelle CodePointSetData.mjs
Sprache: unbekannt
|
|
Untersuchungsergebnis.mjs Download desUnknown {[0] [0] [0]}
// generated by diplomat-tool
import { CodePointRangeIterator } from "./CodePointRangeIterator.mjs"
import { DataError } from "./DataError.mjs"
import { DataProvider } from "./DataProvider.mjs"
import { GeneralCategoryGroup } from "./GeneralCategoryGroup.mjs"
import wasm from "./diplomat-wasm.mjs";
import * as diplomatRuntime from "./diplomat-runtime.mjs";
const CodePointSetData_box_destroy_registry = new FinalizationRegistry((ptr) => {
wasm.icu4x_CodePointSetData_destroy_mv1(ptr);
});
/**
* An ICU4X Unicode Set Property object, capable of querying whether a code point is contained in a set based on a Unicode property.
*
* See the [Rust documentation for `properties`](https://docs.rs/icu/2.1.1/icu/properties/index.html) for more information.
*
* See the [Rust documentation for `CodePointSetData`](https://docs.rs/icu/2.1.1/icu/properties/struct.CodePointSetData.html) for more information.
*
* See the [Rust documentation for `CodePointSetDataBorrowed`](https://docs.rs/icu/2.1.1/icu/properties/struct.CodePointSetDataBorrowed.html) for more information.
*/
export class CodePointSetData {
// Internal ptr reference:
#ptr = null;
// Lifetimes are only to keep dependencies alive.
// Since JS won't garbage collect until there are no incoming edges.
#selfEdge = [];
#internalConstructor(symbol, ptr, selfEdge) {
if (symbol !== diplomatRuntime.internalConstructor) {
console.error("CodePointSetData is an Opaque type. You cannot call its constructor.");
return;
}
this.#ptr = ptr;
this.#selfEdge = selfEdge;
// Are we being borrowed? If not, we can register.
if (this.#selfEdge.length === 0) {
CodePointSetData_box_destroy_registry.register(this, this.#ptr);
}
return this;
}
/** @internal */
get ffiValue() {
return this.#ptr;
}
/**
* Checks whether the code point is in the set.
*
* See the [Rust documentation for `contains`](https://docs.rs/icu/2.1.1/icu/properties/struct.CodePointSetDataBorrowed.html#method.contains) for more information.
*/
contains(cp) {
const result = wasm.icu4x_CodePointSetData_contains_mv1(this.ffiValue, cp);
try {
return result;
}
finally {
}
}
/**
* Produces an iterator over ranges of code points contained in this set
*
* See the [Rust documentation for `iter_ranges`](https://docs.rs/icu/2.1.1/icu/properties/struct.CodePointSetDataBorrowed.html#method.iter_ranges) for more information.
*/
iterRanges() {
// This lifetime edge depends on lifetimes 'a
let aEdges = [this];
const result = wasm.icu4x_CodePointSetData_iter_ranges_mv1(this.ffiValue);
try {
return new CodePointRangeIterator(diplomatRuntime.internalConstructor, result, [], aEdges);
}
finally {
}
}
/**
* Produces an iterator over ranges of code points not contained in this set
*
* See the [Rust documentation for `iter_ranges_complemented`](https://docs.rs/icu/2.1.1/icu/properties/struct.CodePointSetDataBorrowed.html#method.iter_ranges_complemented) for more information.
*/
iterRangesComplemented() {
// This lifetime edge depends on lifetimes 'a
let aEdges = [this];
const result = wasm.icu4x_CodePointSetData_iter_ranges_complemented_mv1(this.ffiValue);
try {
return new CodePointRangeIterator(diplomatRuntime.internalConstructor, result, [], aEdges);
}
finally {
}
}
/**
* Produces a set for obtaining General Category Group values
* which is a mask with the same format as the `U_GC_XX_MASK` mask in ICU4C, using compiled data.
*
* See the [Rust documentation for `GeneralCategoryGroup`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.GeneralCategoryGroup.html) for more information.
*
* See the [Rust documentation for `get_set_for_value_group`](https://docs.rs/icu/2.1.1/icu/properties/struct.CodePointMapDataBorrowed.html#method.get_set_for_value_group) for more information.
*/
static createGeneralCategoryGroup(group) {
let functionCleanupArena = new diplomatRuntime.CleanupArena();
const result = wasm.icu4x_CodePointSetData_create_general_category_group_mv1(GeneralCategoryGroup._fromSuppliedValue(diplomatRuntime.internalConstructor, group)._intoFFI(functionCleanupArena, {}, false));
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
functionCleanupArena.free();
}
}
/**
* Produces a set for obtaining General Category Group values
* which is a mask with the same format as the `U_GC_XX_MASK` mask in ICU4C, using a provided data source.
*
* See the [Rust documentation for `GeneralCategoryGroup`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.GeneralCategoryGroup.html) for more information.
*
* See the [Rust documentation for `get_set_for_value_group`](https://docs.rs/icu/2.1.1/icu/properties/struct.CodePointMapDataBorrowed.html#method.get_set_for_value_group) for more information.
*/
static createGeneralCategoryGroupWithProvider(provider, group) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_general_category_group_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue, group);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Ascii_Hex_Digit` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static asciiHexDigitForChar(ch) {
const result = wasm.icu4x_CodePointSetData_ascii_hex_digit_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Ascii_Hex_Digit` property, using compiled data.
*
* See the [Rust documentation for `AsciiHexDigit`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.AsciiHexDigit.html) for more information.
*/
static createAsciiHexDigit() {
const result = wasm.icu4x_CodePointSetData_create_ascii_hex_digit_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Ascii_Hex_Digit` property, using a particular data source.
*
* See the [Rust documentation for `AsciiHexDigit`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.AsciiHexDigit.html) for more information.
*/
static createAsciiHexDigitWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_ascii_hex_digit_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Alnum` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static alnumForChar(ch) {
const result = wasm.icu4x_CodePointSetData_alnum_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Alnum` property, using compiled data.
*
* See the [Rust documentation for `Alnum`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Alnum.html) for more information.
*/
static createAlnum() {
const result = wasm.icu4x_CodePointSetData_create_alnum_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Alnum` property, using a particular data source.
*
* See the [Rust documentation for `Alnum`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Alnum.html) for more information.
*/
static createAlnumWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_alnum_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Alphabetic` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static alphabeticForChar(ch) {
const result = wasm.icu4x_CodePointSetData_alphabetic_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Alphabetic` property, using compiled data.
*
* See the [Rust documentation for `Alphabetic`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Alphabetic.html) for more information.
*/
static createAlphabetic() {
const result = wasm.icu4x_CodePointSetData_create_alphabetic_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Alphabetic` property, using a particular data source.
*
* See the [Rust documentation for `Alphabetic`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Alphabetic.html) for more information.
*/
static createAlphabeticWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_alphabetic_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Bidi_Control` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static bidiControlForChar(ch) {
const result = wasm.icu4x_CodePointSetData_bidi_control_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Bidi_Control` property, using compiled data.
*
* See the [Rust documentation for `BidiControl`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.BidiControl.html) for more information.
*/
static createBidiControl() {
const result = wasm.icu4x_CodePointSetData_create_bidi_control_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Bidi_Control` property, using a particular data source.
*
* See the [Rust documentation for `BidiControl`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.BidiControl.html) for more information.
*/
static createBidiControlWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_bidi_control_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Bidi_Mirrored` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static bidiMirroredForChar(ch) {
const result = wasm.icu4x_CodePointSetData_bidi_mirrored_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Bidi_Mirrored` property, using compiled data.
*
* See the [Rust documentation for `BidiMirrored`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.BidiMirrored.html) for more information.
*/
static createBidiMirrored() {
const result = wasm.icu4x_CodePointSetData_create_bidi_mirrored_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Bidi_Mirrored` property, using a particular data source.
*
* See the [Rust documentation for `BidiMirrored`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.BidiMirrored.html) for more information.
*/
static createBidiMirroredWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_bidi_mirrored_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Blank` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static blankForChar(ch) {
const result = wasm.icu4x_CodePointSetData_blank_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Blank` property, using compiled data.
*
* See the [Rust documentation for `Blank`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Blank.html) for more information.
*/
static createBlank() {
const result = wasm.icu4x_CodePointSetData_create_blank_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Blank` property, using a particular data source.
*
* See the [Rust documentation for `Blank`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Blank.html) for more information.
*/
static createBlankWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_blank_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Cased` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static casedForChar(ch) {
const result = wasm.icu4x_CodePointSetData_cased_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Cased` property, using compiled data.
*
* See the [Rust documentation for `Cased`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Cased.html) for more information.
*/
static createCased() {
const result = wasm.icu4x_CodePointSetData_create_cased_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Cased` property, using a particular data source.
*
* See the [Rust documentation for `Cased`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Cased.html) for more information.
*/
static createCasedWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_cased_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Case_Ignorable` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static caseIgnorableForChar(ch) {
const result = wasm.icu4x_CodePointSetData_case_ignorable_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Case_Ignorable` property, using compiled data.
*
* See the [Rust documentation for `CaseIgnorable`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.CaseIgnorable.html) for more information.
*/
static createCaseIgnorable() {
const result = wasm.icu4x_CodePointSetData_create_case_ignorable_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Case_Ignorable` property, using a particular data source.
*
* See the [Rust documentation for `CaseIgnorable`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.CaseIgnorable.html) for more information.
*/
static createCaseIgnorableWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_case_ignorable_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Full_Composition_Exclusion` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static fullCompositionExclusionForChar(ch) {
const result = wasm.icu4x_CodePointSetData_full_composition_exclusion_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Full_Composition_Exclusion` property, using compiled data.
*
* See the [Rust documentation for `FullCompositionExclusion`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.FullCompositionExclusion.html) for more information.
*/
static createFullCompositionExclusion() {
const result = wasm.icu4x_CodePointSetData_create_full_composition_exclusion_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Full_Composition_Exclusion` property, using a particular data source.
*
* See the [Rust documentation for `FullCompositionExclusion`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.FullCompositionExclusion.html) for more information.
*/
static createFullCompositionExclusionWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_full_composition_exclusion_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Changes_When_Casefolded` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static changesWhenCasefoldedForChar(ch) {
const result = wasm.icu4x_CodePointSetData_changes_when_casefolded_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Changes_When_Casefolded` property, using compiled data.
*
* See the [Rust documentation for `ChangesWhenCasefolded`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ChangesWhenCasefolded.html) for more information.
*/
static createChangesWhenCasefolded() {
const result = wasm.icu4x_CodePointSetData_create_changes_when_casefolded_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Changes_When_Casefolded` property, using a particular data source.
*
* See the [Rust documentation for `ChangesWhenCasefolded`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ChangesWhenCasefolded.html) for more information.
*/
static createChangesWhenCasefoldedWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_changes_when_casefolded_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Changes_When_Casemapped` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static changesWhenCasemappedForChar(ch) {
const result = wasm.icu4x_CodePointSetData_changes_when_casemapped_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Changes_When_Casemapped` property, using compiled data.
*
* See the [Rust documentation for `ChangesWhenCasemapped`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ChangesWhenCasemapped.html) for more information.
*/
static createChangesWhenCasemapped() {
const result = wasm.icu4x_CodePointSetData_create_changes_when_casemapped_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Changes_When_Casemapped` property, using a particular data source.
*
* See the [Rust documentation for `ChangesWhenCasemapped`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ChangesWhenCasemapped.html) for more information.
*/
static createChangesWhenCasemappedWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_changes_when_casemapped_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Changes_When_Nfkc_Casefolded` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static changesWhenNfkcCasefoldedForChar(ch) {
const result = wasm.icu4x_CodePointSetData_changes_when_nfkc_casefolded_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Changes_When_Nfkc_Casefolded` property, using compiled data.
*
* See the [Rust documentation for `ChangesWhenNfkcCasefolded`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ChangesWhenNfkcCasefolded.html) for more information.
*/
static createChangesWhenNfkcCasefolded() {
const result = wasm.icu4x_CodePointSetData_create_changes_when_nfkc_casefolded_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Changes_When_Nfkc_Casefolded` property, using a particular data source.
*
* See the [Rust documentation for `ChangesWhenNfkcCasefolded`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ChangesWhenNfkcCasefolded.html) for more information.
*/
static createChangesWhenNfkcCasefoldedWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_changes_when_nfkc_casefolded_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Changes_When_Lowercased` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static changesWhenLowercasedForChar(ch) {
const result = wasm.icu4x_CodePointSetData_changes_when_lowercased_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Changes_When_Lowercased` property, using compiled data.
*
* See the [Rust documentation for `ChangesWhenLowercased`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ChangesWhenLowercased.html) for more information.
*/
static createChangesWhenLowercased() {
const result = wasm.icu4x_CodePointSetData_create_changes_when_lowercased_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Changes_When_Lowercased` property, using a particular data source.
*
* See the [Rust documentation for `ChangesWhenLowercased`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ChangesWhenLowercased.html) for more information.
*/
static createChangesWhenLowercasedWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_changes_when_lowercased_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Changes_When_Titlecased` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static changesWhenTitlecasedForChar(ch) {
const result = wasm.icu4x_CodePointSetData_changes_when_titlecased_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Changes_When_Titlecased` property, using compiled data.
*
* See the [Rust documentation for `ChangesWhenTitlecased`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ChangesWhenTitlecased.html) for more information.
*/
static createChangesWhenTitlecased() {
const result = wasm.icu4x_CodePointSetData_create_changes_when_titlecased_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Changes_When_Titlecased` property, using a particular data source.
*
* See the [Rust documentation for `ChangesWhenTitlecased`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ChangesWhenTitlecased.html) for more information.
*/
static createChangesWhenTitlecasedWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_changes_when_titlecased_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Changes_When_Uppercased` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static changesWhenUppercasedForChar(ch) {
const result = wasm.icu4x_CodePointSetData_changes_when_uppercased_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Changes_When_Uppercased` property, using compiled data.
*
* See the [Rust documentation for `ChangesWhenUppercased`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ChangesWhenUppercased.html) for more information.
*/
static createChangesWhenUppercased() {
const result = wasm.icu4x_CodePointSetData_create_changes_when_uppercased_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Changes_When_Uppercased` property, using a particular data source.
*
* See the [Rust documentation for `ChangesWhenUppercased`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ChangesWhenUppercased.html) for more information.
*/
static createChangesWhenUppercasedWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_changes_when_uppercased_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Dash` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static dashForChar(ch) {
const result = wasm.icu4x_CodePointSetData_dash_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Dash` property, using compiled data.
*
* See the [Rust documentation for `Dash`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Dash.html) for more information.
*/
static createDash() {
const result = wasm.icu4x_CodePointSetData_create_dash_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Dash` property, using a particular data source.
*
* See the [Rust documentation for `Dash`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Dash.html) for more information.
*/
static createDashWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_dash_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Deprecated` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static deprecatedForChar(ch) {
const result = wasm.icu4x_CodePointSetData_deprecated_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Deprecated` property, using compiled data.
*
* See the [Rust documentation for `Deprecated`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Deprecated.html) for more information.
*/
static createDeprecated() {
const result = wasm.icu4x_CodePointSetData_create_deprecated_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Deprecated` property, using a particular data source.
*
* See the [Rust documentation for `Deprecated`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Deprecated.html) for more information.
*/
static createDeprecatedWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_deprecated_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Default_Ignorable_Code_Point` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static defaultIgnorableCodePointForChar(ch) {
const result = wasm.icu4x_CodePointSetData_default_ignorable_code_point_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Default_Ignorable_Code_Point` property, using compiled data.
*
* See the [Rust documentation for `DefaultIgnorableCodePoint`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.DefaultIgnorableCodePoint.html) for more information.
*/
static createDefaultIgnorableCodePoint() {
const result = wasm.icu4x_CodePointSetData_create_default_ignorable_code_point_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Default_Ignorable_Code_Point` property, using a particular data source.
*
* See the [Rust documentation for `DefaultIgnorableCodePoint`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.DefaultIgnorableCodePoint.html) for more information.
*/
static createDefaultIgnorableCodePointWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_default_ignorable_code_point_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Diacritic` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static diacriticForChar(ch) {
const result = wasm.icu4x_CodePointSetData_diacritic_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Diacritic` property, using compiled data.
*
* See the [Rust documentation for `Diacritic`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Diacritic.html) for more information.
*/
static createDiacritic() {
const result = wasm.icu4x_CodePointSetData_create_diacritic_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Diacritic` property, using a particular data source.
*
* See the [Rust documentation for `Diacritic`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Diacritic.html) for more information.
*/
static createDiacriticWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_diacritic_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Emoji_Modifier_Base` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static emojiModifierBaseForChar(ch) {
const result = wasm.icu4x_CodePointSetData_emoji_modifier_base_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Emoji_Modifier_Base` property, using compiled data.
*
* See the [Rust documentation for `EmojiModifierBase`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.EmojiModifierBase.html) for more information.
*/
static createEmojiModifierBase() {
const result = wasm.icu4x_CodePointSetData_create_emoji_modifier_base_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Emoji_Modifier_Base` property, using a particular data source.
*
* See the [Rust documentation for `EmojiModifierBase`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.EmojiModifierBase.html) for more information.
*/
static createEmojiModifierBaseWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_emoji_modifier_base_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Emoji_Component` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static emojiComponentForChar(ch) {
const result = wasm.icu4x_CodePointSetData_emoji_component_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Emoji_Component` property, using compiled data.
*
* See the [Rust documentation for `EmojiComponent`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.EmojiComponent.html) for more information.
*/
static createEmojiComponent() {
const result = wasm.icu4x_CodePointSetData_create_emoji_component_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Emoji_Component` property, using a particular data source.
*
* See the [Rust documentation for `EmojiComponent`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.EmojiComponent.html) for more information.
*/
static createEmojiComponentWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_emoji_component_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Emoji_Modifier` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static emojiModifierForChar(ch) {
const result = wasm.icu4x_CodePointSetData_emoji_modifier_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Emoji_Modifier` property, using compiled data.
*
* See the [Rust documentation for `EmojiModifier`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.EmojiModifier.html) for more information.
*/
static createEmojiModifier() {
const result = wasm.icu4x_CodePointSetData_create_emoji_modifier_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Emoji_Modifier` property, using a particular data source.
*
* See the [Rust documentation for `EmojiModifier`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.EmojiModifier.html) for more information.
*/
static createEmojiModifierWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_emoji_modifier_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Emoji` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static emojiForChar(ch) {
const result = wasm.icu4x_CodePointSetData_emoji_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Emoji` property, using compiled data.
*
* See the [Rust documentation for `Emoji`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Emoji.html) for more information.
*/
static createEmoji() {
const result = wasm.icu4x_CodePointSetData_create_emoji_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Emoji` property, using a particular data source.
*
* See the [Rust documentation for `Emoji`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Emoji.html) for more information.
*/
static createEmojiWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_emoji_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Emoji_Presentation` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static emojiPresentationForChar(ch) {
const result = wasm.icu4x_CodePointSetData_emoji_presentation_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Emoji_Presentation` property, using compiled data.
*
* See the [Rust documentation for `EmojiPresentation`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.EmojiPresentation.html) for more information.
*/
static createEmojiPresentation() {
const result = wasm.icu4x_CodePointSetData_create_emoji_presentation_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Emoji_Presentation` property, using a particular data source.
*
* See the [Rust documentation for `EmojiPresentation`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.EmojiPresentation.html) for more information.
*/
static createEmojiPresentationWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_emoji_presentation_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Extender` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static extenderForChar(ch) {
const result = wasm.icu4x_CodePointSetData_extender_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Extender` property, using compiled data.
*
* See the [Rust documentation for `Extender`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Extender.html) for more information.
*/
static createExtender() {
const result = wasm.icu4x_CodePointSetData_create_extender_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Extender` property, using a particular data source.
*
* See the [Rust documentation for `Extender`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Extender.html) for more information.
*/
static createExtenderWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_extender_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Extended_Pictographic` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static extendedPictographicForChar(ch) {
const result = wasm.icu4x_CodePointSetData_extended_pictographic_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Extended_Pictographic` property, using compiled data.
*
* See the [Rust documentation for `ExtendedPictographic`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ExtendedPictographic.html) for more information.
*/
static createExtendedPictographic() {
const result = wasm.icu4x_CodePointSetData_create_extended_pictographic_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Extended_Pictographic` property, using a particular data source.
*
* See the [Rust documentation for `ExtendedPictographic`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.ExtendedPictographic.html) for more information.
*/
static createExtendedPictographicWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_extended_pictographic_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Graph` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static graphForChar(ch) {
const result = wasm.icu4x_CodePointSetData_graph_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Graph` property, using compiled data.
*
* See the [Rust documentation for `Graph`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Graph.html) for more information.
*/
static createGraph() {
const result = wasm.icu4x_CodePointSetData_create_graph_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Graph` property, using a particular data source.
*
* See the [Rust documentation for `Graph`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Graph.html) for more information.
*/
static createGraphWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_graph_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Grapheme_Base` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static graphemeBaseForChar(ch) {
const result = wasm.icu4x_CodePointSetData_grapheme_base_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Grapheme_Base` property, using compiled data.
*
* See the [Rust documentation for `GraphemeBase`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.GraphemeBase.html) for more information.
*/
static createGraphemeBase() {
const result = wasm.icu4x_CodePointSetData_create_grapheme_base_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Grapheme_Base` property, using a particular data source.
*
* See the [Rust documentation for `GraphemeBase`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.GraphemeBase.html) for more information.
*/
static createGraphemeBaseWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_grapheme_base_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Grapheme_Extend` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static graphemeExtendForChar(ch) {
const result = wasm.icu4x_CodePointSetData_grapheme_extend_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Grapheme_Extend` property, using compiled data.
*
* See the [Rust documentation for `GraphemeExtend`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.GraphemeExtend.html) for more information.
*/
static createGraphemeExtend() {
const result = wasm.icu4x_CodePointSetData_create_grapheme_extend_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Grapheme_Extend` property, using a particular data source.
*
* See the [Rust documentation for `GraphemeExtend`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.GraphemeExtend.html) for more information.
*/
static createGraphemeExtendWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_grapheme_extend_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Grapheme_Link` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static graphemeLinkForChar(ch) {
const result = wasm.icu4x_CodePointSetData_grapheme_link_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Grapheme_Link` property, using compiled data.
*
* See the [Rust documentation for `GraphemeLink`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.GraphemeLink.html) for more information.
*/
static createGraphemeLink() {
const result = wasm.icu4x_CodePointSetData_create_grapheme_link_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Grapheme_Link` property, using a particular data source.
*
* See the [Rust documentation for `GraphemeLink`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.GraphemeLink.html) for more information.
*/
static createGraphemeLinkWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_grapheme_link_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Hex_Digit` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static hexDigitForChar(ch) {
const result = wasm.icu4x_CodePointSetData_hex_digit_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Hex_Digit` property, using compiled data.
*
* See the [Rust documentation for `HexDigit`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.HexDigit.html) for more information.
*/
static createHexDigit() {
const result = wasm.icu4x_CodePointSetData_create_hex_digit_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Hex_Digit` property, using a particular data source.
*
* See the [Rust documentation for `HexDigit`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.HexDigit.html) for more information.
*/
static createHexDigitWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_hex_digit_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Hyphen` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static hyphenForChar(ch) {
const result = wasm.icu4x_CodePointSetData_hyphen_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Hyphen` property, using compiled data.
*
* See the [Rust documentation for `Hyphen`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Hyphen.html) for more information.
*/
static createHyphen() {
const result = wasm.icu4x_CodePointSetData_create_hyphen_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Hyphen` property, using a particular data source.
*
* See the [Rust documentation for `Hyphen`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Hyphen.html) for more information.
*/
static createHyphenWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_hyphen_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `ID_Compat_Math_Continue` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static idCompatMathContinueForChar(ch) {
const result = wasm.icu4x_CodePointSetData_id_compat_math_continue_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `ID_Compat_Math_Continue` property, using compiled data.
*
* See the [Rust documentation for `IdCompatMathContinue`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.IdCompatMathContinue.html) for more information.
*/
static createIdCompatMathContinue() {
const result = wasm.icu4x_CodePointSetData_create_id_compat_math_continue_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `ID_Compat_Math_Continue` property, using a particular data source.
*
* See the [Rust documentation for `IdCompatMathContinue`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.IdCompatMathContinue.html) for more information.
*/
static createIdCompatMathContinueWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_id_compat_math_continue_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `ID_Compat_Math_Start` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static idCompatMathStartForChar(ch) {
const result = wasm.icu4x_CodePointSetData_id_compat_math_start_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `ID_Compat_Math_Start` property, using compiled data.
*
* See the [Rust documentation for `IdCompatMathStart`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.IdCompatMathStart.html) for more information.
*/
static createIdCompatMathStart() {
const result = wasm.icu4x_CodePointSetData_create_id_compat_math_start_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `ID_Compat_Math_Start` property, using a particular data source.
*
* See the [Rust documentation for `IdCompatMathStart`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.IdCompatMathStart.html) for more information.
*/
static createIdCompatMathStartWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_id_compat_math_start_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Id_Continue` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static idContinueForChar(ch) {
const result = wasm.icu4x_CodePointSetData_id_continue_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Id_Continue` property, using compiled data.
*
* See the [Rust documentation for `IdContinue`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.IdContinue.html) for more information.
*/
static createIdContinue() {
const result = wasm.icu4x_CodePointSetData_create_id_continue_mv1();
try {
return new CodePointSetData(diplomatRuntime.internalConstructor, result, []);
}
finally {
}
}
/**
* Create a set for the `Id_Continue` property, using a particular data source.
*
* See the [Rust documentation for `IdContinue`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.IdContinue.html) for more information.
*/
static createIdContinueWithProvider(provider) {
const diplomatReceive = new diplomatRuntime.DiplomatReceiveBuf(wasm, 5, 4, true);
const result = wasm.icu4x_CodePointSetData_create_id_continue_with_provider_mv1(diplomatReceive.buffer, provider.ffiValue);
try {
if (!diplomatReceive.resultFlag) {
const cause = new DataError(diplomatRuntime.internalConstructor, diplomatRuntime.enumDiscriminant(wasm, diplomatReceive.buffer));
throw new globalThis.Error('DataError.' + cause.value, { cause });
}
return new CodePointSetData(diplomatRuntime.internalConstructor, diplomatRuntime.ptrRead(wasm, diplomatReceive.buffer), []);
}
finally {
diplomatReceive.free();
}
}
/**
* Get the `Ideographic` value for a given character, using compiled data
*
* See the [Rust documentation for `for_char`](https://docs.rs/icu/2.1.1/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information.
*/
static ideographicForChar(ch) {
const result = wasm.icu4x_CodePointSetData_ideographic_for_char_mv1(ch);
try {
return result;
}
finally {
}
}
/**
* Create a set for the `Ideographic` property, using compiled data.
*
* See the [Rust documentation for `Ideographic`](https://docs.rs/icu/2.1.1/icu/properties/props/struct.Ideographic.html) for more information. | |