Debian Codegraph @

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

raw
1 import { usize } from "./diplomat-runtime"
2
3 /**
4
5 * A list of strings
6 */
7 export class ICU4XList {
8
9 /**
10
11 * Create a new list of strings
12 */
13 static create(): ICU4XList;
14
15 /**
16
17 * Create a new list of strings with preallocated space to hold at least `capacity` elements
18 */
19 static create_with_capacity(capacity: usize): ICU4XList;
20
21 /**
22
23 * Push a string to the list
24
25 * Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according to the WHATWG Encoding Standard.
26 */
27 push(val: string): void;
28
29 /**
30
31 * The number of elements in this list
32 */
33 len(): usize;
34
35 /**
36
37 * Whether this list is empty
38 */
39 is_empty(): boolean;
40 }