• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// generated by diplomat-tool
2import type { DataError } from "./DataError"
3import type { DataProvider } from "./DataProvider"
4import type { Locale } from "./Locale"
5import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
6
7
8/** A set of "exemplar characters" for a given locale.
9*
10*See the [Rust documentation for `locale`](https://docs.rs/icu/latest/icu/locale/index.html) for more information.
11*
12*See the [Rust documentation for `ExemplarCharacters`](https://docs.rs/icu/latest/icu/locale/exemplar_chars/struct.ExemplarCharacters.html) for more information.
13*
14*See the [Rust documentation for `ExemplarCharactersBorrowed`](https://docs.rs/icu/latest/icu/locale/exemplar_chars/struct.ExemplarCharactersBorrowed.html) for more information.
15*/
16
17
18export class ExemplarCharacters {
19
20    get ffiValue(): pointer;
21
22    containsStr(s: string): boolean;
23
24    contains(cp: codepoint): boolean;
25
26    static createMain(locale: Locale): ExemplarCharacters;
27
28    static createMainWithProvider(provider: DataProvider, locale: Locale): ExemplarCharacters;
29
30    static createAuxiliary(locale: Locale): ExemplarCharacters;
31
32    static createAuxiliaryWithProvider(provider: DataProvider, locale: Locale): ExemplarCharacters;
33
34    static createPunctuation(locale: Locale): ExemplarCharacters;
35
36    static createPunctuationWithProvider(provider: DataProvider, locale: Locale): ExemplarCharacters;
37
38    static createNumbers(locale: Locale): ExemplarCharacters;
39
40    static createNumbersWithProvider(provider: DataProvider, locale: Locale): ExemplarCharacters;
41
42    static createIndex(locale: Locale): ExemplarCharacters;
43
44    static createIndexWithProvider(provider: DataProvider, locale: Locale): ExemplarCharacters;
45}