ICU4X
International Components for Unicode
|
#include <UnitsConverterFactory.d.hpp>
Public Member Functions | |
std::unique_ptr< icu4x::UnitsConverter > | converter (const icu4x::MeasureUnit &from, const icu4x::MeasureUnit &to) const |
Static Public Member Functions | |
static std::unique_ptr< icu4x::UnitsConverterFactory > | create () |
static diplomat::result< std::unique_ptr< icu4x::UnitsConverterFactory >, icu4x::DataError > | create_with_provider (const icu4x::DataProvider &provider) |
static void | operator delete (void *ptr) |
An ICU4X Units Converter Factory object, capable of creating converters a UnitsConverter
for converting between two MeasureUnit
s.
Also, it can parse the CLDR unit identifier (e.g. meter-per-square-second
) and get the MeasureUnit
.
See the Rust documentation for ConverterFactory
for more information.
|
inline |
Creates a new UnitsConverter
from the input and output MeasureUnit
s. Returns nothing if the conversion between the two units is not possible. For example, conversion between meter
and second
is not possible.
See the Rust documentation for converter
for more information.
|
inlinestatic |
Construct a new UnitsConverterFactory
instance using compiled data.
See the Rust documentation for new
for more information.
|
inlinestatic |
Construct a new UnitsConverterFactory
instance using a particular data source.
See the Rust documentation for new
for more information.
|
inlinestatic |