/** * A destruction policy for using ICU4XList with std::unique_ptr.
*/ struct ICU4XListDeleter { voidoperator()(capi::ICU4XList* l) const noexcept {
capi::ICU4XList_destroy(l);
}
};
/** * A list of strings
*/ class ICU4XList { public:
/** * Create a new list of strings
*/ static ICU4XList create();
/** * Create a new list of strings with preallocated space to hold * at least `capacity` elements
*/ static ICU4XList create_with_capacity(size_t capacity);
/** * Push a string to the list * * Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according * to the WHATWG Encoding Standard.
*/ void push(const std::string_view val);
/** * The number of elements in this list
*/
size_t len() const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.