| 1 |
import { u32, char } from "./diplomat-runtime" |
| 2 |
import { FFIError } from "./diplomat-runtime" |
| 3 |
import { ICU4XDataProvider } from "./ICU4XDataProvider"; |
| 4 |
import { ICU4XError } from "./ICU4XError"; |
| 5 |
import { ICU4XLocale } from "./ICU4XLocale"; |
| 6 |
|
| 7 |
/** |
| 8 |
|
| 9 |
* An ICU4X Unicode Set Property object, capable of querying whether a code point is contained in a set based on a Unicode property. |
| 10 |
|
| 11 |
* See the {@link https://docs.rs/icu/latest/icu/properties/index.html Rust documentation for `properties`} for more information. |
| 12 |
|
| 13 |
* See the {@link https://docs.rs/icu/latest/icu/properties/sets/struct.UnicodeSetData.html Rust documentation for `UnicodeSetData`} for more information. |
| 14 |
|
| 15 |
* See the {@link https://docs.rs/icu/latest/icu/properties/sets/struct.UnicodeSetDataBorrowed.html Rust documentation for `UnicodeSetDataBorrowed`} for more information. |
| 16 |
*/ |
| 17 |
export class ICU4XUnicodeSetData { |
| 18 |
|
| 19 |
/** |
| 20 |
|
| 21 |
* Checks whether the string is in the set. |
| 22 |
|
| 23 |
* See the {@link https://docs.rs/icu/latest/icu/properties/sets/struct.UnicodeSetDataBorrowed.html#method.contains Rust documentation for `contains`} for more information. |
| 24 |
*/ |
| 25 |
contains(s: string): boolean; |
| 26 |
|
| 27 |
/** |
| 28 |
|
| 29 |
* Checks whether the code point is in the set. |
| 30 |
|
| 31 |
* See the {@link https://docs.rs/icu/latest/icu/properties/sets/struct.UnicodeSetDataBorrowed.html#method.contains_char Rust documentation for `contains_char`} for more information. |
| 32 |
*/ |
| 33 |
contains_char(cp: char): boolean; |
| 34 |
|
| 35 |
/** |
| 36 |
|
| 37 |
* Checks whether the code point (specified as a 32 bit integer, in UTF-32) is in the set. |
| 38 |
*/ |
| 39 |
contains32(cp: u32): boolean; |
| 40 |
|
| 41 |
/** |
| 42 |
|
| 43 |
* See the {@link https://docs.rs/icu/latest/icu/properties/sets/fn.basic_emoji.html Rust documentation for `basic_emoji`} for more information. |
| 44 |
* @throws {@link FFIError}<{@link ICU4XError}> |
| 45 |
*/ |
| 46 |
static load_basic_emoji(provider: ICU4XDataProvider): ICU4XUnicodeSetData | never; |
| 47 |
|
| 48 |
/** |
| 49 |
|
| 50 |
* See the {@link https://docs.rs/icu/latest/icu/properties/exemplar_chars/fn.exemplars_main.html Rust documentation for `exemplars_main`} for more information. |
| 51 |
* @throws {@link FFIError}<{@link ICU4XError}> |
| 52 |
*/ |
| 53 |
static load_exemplars_main(provider: ICU4XDataProvider, locale: ICU4XLocale): ICU4XUnicodeSetData | never; |
| 54 |
|
| 55 |
/** |
| 56 |
|
| 57 |
* See the {@link https://docs.rs/icu/latest/icu/properties/exemplar_chars/fn.exemplars_auxiliary.html Rust documentation for `exemplars_auxiliary`} for more information. |
| 58 |
* @throws {@link FFIError}<{@link ICU4XError}> |
| 59 |
*/ |
| 60 |
static load_exemplars_auxiliary(provider: ICU4XDataProvider, locale: ICU4XLocale): ICU4XUnicodeSetData | never; |
| 61 |
|
| 62 |
/** |
| 63 |
|
| 64 |
* See the {@link https://docs.rs/icu/latest/icu/properties/exemplar_chars/fn.exemplars_punctuation.html Rust documentation for `exemplars_punctuation`} for more information. |
| 65 |
* @throws {@link FFIError}<{@link ICU4XError}> |
| 66 |
*/ |
| 67 |
static load_exemplars_punctuation(provider: ICU4XDataProvider, locale: ICU4XLocale): ICU4XUnicodeSetData | never; |
| 68 |
|
| 69 |
/** |
| 70 |
|
| 71 |
* See the {@link https://docs.rs/icu/latest/icu/properties/exemplar_chars/fn.exemplars_numbers.html Rust documentation for `exemplars_numbers`} for more information. |
| 72 |
* @throws {@link FFIError}<{@link ICU4XError}> |
| 73 |
*/ |
| 74 |
static load_exemplars_numbers(provider: ICU4XDataProvider, locale: ICU4XLocale): ICU4XUnicodeSetData | never; |
| 75 |
|
| 76 |
/** |
| 77 |
|
| 78 |
* See the {@link https://docs.rs/icu/latest/icu/properties/exemplar_chars/fn.exemplars_index.html Rust documentation for `exemplars_index`} for more information. |
| 79 |
* @throws {@link FFIError}<{@link ICU4XError}> |
| 80 |
*/ |
| 81 |
static load_exemplars_index(provider: ICU4XDataProvider, locale: ICU4XLocale): ICU4XUnicodeSetData | never; |
| 82 |
} |