diff options
Diffstat (limited to 'intl/icu_capi/js/package/lib/ICU4XList.d.ts')
-rw-r--r-- | intl/icu_capi/js/package/lib/ICU4XList.d.ts | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/intl/icu_capi/js/package/lib/ICU4XList.d.ts b/intl/icu_capi/js/package/lib/ICU4XList.d.ts new file mode 100644 index 0000000000..facf54a8cb --- /dev/null +++ b/intl/icu_capi/js/package/lib/ICU4XList.d.ts @@ -0,0 +1,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; +} |