23 lines
1,000 B
TypeScript
23 lines
1,000 B
TypeScript
import { u8 } from "./diplomat-runtime"
|
|
import { FFIError } from "./diplomat-runtime"
|
|
import { ICU4XError } from "./ICU4XError";
|
|
|
|
/**
|
|
|
|
* A generic data struct to be used by ICU4X
|
|
|
|
* This can be used to construct a StructDataProvider.
|
|
*/
|
|
export class ICU4XDataStruct {
|
|
|
|
/**
|
|
|
|
* Construct a new DecimalSymbolsV1 data struct.
|
|
|
|
* Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according to the WHATWG Encoding Standard.
|
|
|
|
* See the {@link https://docs.rs/icu/latest/icu/decimal/provider/struct.DecimalSymbolsV1.html Rust documentation for `DecimalSymbolsV1`} for more information.
|
|
* @throws {@link FFIError}<{@link ICU4XError}>
|
|
*/
|
|
static create_decimal_symbols_v1(plus_sign_prefix: string, plus_sign_suffix: string, minus_sign_prefix: string, minus_sign_suffix: string, decimal_separator: string, grouping_separator: string, primary_group_size: u8, secondary_group_size: u8, min_group_size: u8, digits: Uint32Array): ICU4XDataStruct | never;
|
|
}
|