summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/lib/ICU4XList.d.ts
blob: facf54a8cb41807245db650b0463b7694205cd50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { usize } from "./diplomat-runtime"

/**

 * A list of strings
 */
export class ICU4XList {

  /**

   * Create a new list of strings
   */
  static create(): ICU4XList;

  /**

   * Create a new list of strings with preallocated space to hold at least `capacity` elements
   */
  static create_with_capacity(capacity: usize): ICU4XList;

  /**

   * Push a string to the list

   * For C++ users, potentially invalid UTF8 will be handled via REPLACEMENT CHARACTERs
   */
  push(val: string): void;

  /**

   * The number of elements in this list
   */
  len(): usize;
}