• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// generated by diplomat-tool
2import type { CollatorAlternateHandling } from "./CollatorAlternateHandling"
3import type { CollatorBackwardSecondLevel } from "./CollatorBackwardSecondLevel"
4import type { CollatorCaseLevel } from "./CollatorCaseLevel"
5import type { CollatorMaxVariable } from "./CollatorMaxVariable"
6import type { CollatorStrength } from "./CollatorStrength"
7import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
8
9
10/** See the [Rust documentation for `CollatorOptions`](https://docs.rs/icu/latest/icu/collator/options/struct.CollatorOptions.html) for more information.
11*/
12type CollatorOptions_obj = {
13    strength?: CollatorStrength | null;
14    alternateHandling?: CollatorAlternateHandling | null;
15    maxVariable?: CollatorMaxVariable | null;
16    caseLevel?: CollatorCaseLevel | null;
17    backwardSecondLevel?: CollatorBackwardSecondLevel | null;
18};
19
20
21
22export class CollatorOptions {
23
24    get strength() : CollatorStrength | null;
25    set strength(value: CollatorStrength | null);
26
27    get alternateHandling() : CollatorAlternateHandling | null;
28    set alternateHandling(value: CollatorAlternateHandling | null);
29
30    get maxVariable() : CollatorMaxVariable | null;
31    set maxVariable(value: CollatorMaxVariable | null);
32
33    get caseLevel() : CollatorCaseLevel | null;
34    set caseLevel(value: CollatorCaseLevel | null);
35
36    get backwardSecondLevel() : CollatorBackwardSecondLevel | null;
37    set backwardSecondLevel(value: CollatorBackwardSecondLevel | null);
38
39    /** Create `CollatorOptions` from an object that contains all of `CollatorOptions`s fields.
40    * Optional fields do not need to be included in the provided object.
41    */
42    static fromFields(structObj : CollatorOptions_obj) : CollatorOptions;
43
44
45    constructor(structObj : CollatorOptions_obj);
46}