ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
icu4x::UnitsConverter Class Reference

#include <UnitsConverter.d.hpp>

Public Member Functions

double convert (double value) const
 
std::unique_ptr< icu4x::UnitsConverterclone () const
 

Static Public Member Functions

static void operator delete (void *ptr)
 

Detailed Description

An ICU4X Units Converter object, capable of converting between two MeasureUnits.

You can create an instance of this object using UnitsConverterFactory by calling the converter method.

See the Rust documentation for UnitsConverter for more information.

Member Function Documentation

◆ clone()

std::unique_ptr< icu4x::UnitsConverter > icu4x::UnitsConverter::clone ( ) const
inline

Clones the current UnitsConverter object.

See the Rust documentation for clone for more information.

◆ convert()

double icu4x::UnitsConverter::convert ( double value) const
inline

Converts the input value from the input unit to the output unit (that have been used to create this converter). NOTE: The conversion using floating-point operations is not as accurate as the conversion using ratios.

See the Rust documentation for convert for more information.

◆ operator delete()

void icu4x::UnitsConverter::operator delete ( void * ptr)
inlinestatic

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