ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
ICU4XList Class Reference

#include <ICU4XList.hpp>

Public Member Functions

void push (const std::string_view val)
 
size_t len () const
 
bool is_empty () const
 
 ICU4XList (capi::ICU4XList *i)
 
 ICU4XList ()=default
 
 ICU4XList (ICU4XList &&) noexcept=default
 
ICU4XListoperator= (ICU4XList &&other) noexcept=default
 

Static Public Member Functions

static ICU4XList create ()
 
static ICU4XList create_with_capacity (size_t capacity)
 

Detailed Description

A list of strings

Constructor & Destructor Documentation

◆ ICU4XList() [1/3]

ICU4XList::ICU4XList ( capi::ICU4XList * i)
inlineexplicit

◆ ICU4XList() [2/3]

ICU4XList::ICU4XList ( )
default

◆ ICU4XList() [3/3]

ICU4XList::ICU4XList ( ICU4XList && )
defaultnoexcept

Member Function Documentation

◆ create()

ICU4XList ICU4XList::create ( )
inlinestatic

Create a new list of strings

◆ create_with_capacity()

ICU4XList ICU4XList::create_with_capacity ( size_t capacity)
inlinestatic

Create a new list of strings with preallocated space to hold at least capacity elements

◆ is_empty()

bool ICU4XList::is_empty ( ) const
inline

Whether this list is empty

◆ len()

size_t ICU4XList::len ( ) const
inline

The number of elements in this list

◆ operator=()

ICU4XList & ICU4XList::operator= ( ICU4XList && other)
defaultnoexcept

◆ push()

void ICU4XList::push ( const std::string_view val)
inline

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.


The documentation for this class was generated from the following file: