TSDuck v3.40-3963
MPEG Transport Stream Toolkit
|
A class to register new std::chrono::duration units. More...
#include <tsUString.h>
Public Member Functions | |
RegisterChronoUnit (std::intmax_t num, std::intmax_t den, const UChar *sname, const UChar *lname=nullptr, const UChar *pname=nullptr) | |
The constructor registers a new std::chrono::duration unit name. | |
A class to register new std::chrono::duration units.
The registration is performed using constructors. Thus, it is possible to perform a registration in a source file, outside any code.
ts::UString::RegisterChronoUnit::RegisterChronoUnit | ( | std::intmax_t | num, |
std::intmax_t | den, | ||
const UChar * | sname, | ||
const UChar * | lname = nullptr , |
||
const UChar * | pname = nullptr |
||
) |
The constructor registers a new std::chrono::duration unit name.
[in] | num | Ratio numerator. |
[in] | den | Ratio denominator. |
[in] | sname | The short name to assign to the corresponding std::chrono::duration type. |
[in] | lname | The long name to assign to the corresponding std::chrono::duration type. Default: same as lname. |
[in] | pname | The plural form of long name. Default: add "s" to lname. |