Debian Codegraph @

intl/icu_capi/bindings/js/ICU4XPluralOperands.d.ts

raw
1 import { FFIError } from "./diplomat-runtime"
2 import { ICU4XError } from "./ICU4XError";
3 import { ICU4XFixedDecimal } from "./ICU4XFixedDecimal";
4
5 /**
6
7 * See the {@link https://docs.rs/icu/latest/icu/plurals/struct.PluralOperands.html Rust documentation for `PluralOperands`} for more information.
8 */
9 export class ICU4XPluralOperands {
10
11 /**
12
13 * Construct for a given string representing a number
14
15 * See the {@link https://docs.rs/icu/latest/icu/plurals/struct.PluralOperands.html#method.from_str Rust documentation for `from_str`} for more information.
16 * @throws {@link FFIError}<{@link ICU4XError}>
17 */
18 static create_from_string(s: string): ICU4XPluralOperands | never;
19
20 /**
21
22 * Construct from a FixedDecimal
23
24 * Retains at most 18 digits each from the integer and fraction parts.
25 */
26 static create_from_fixed_decimal(x: ICU4XFixedDecimal): ICU4XPluralOperands;
27 }