KiCad PCB EDA Suite
Loading...
Searching...
No Matches
utf8_utils::SI_PREFIX_HANDLER Struct Reference

Classes

struct  PREFIX
 

Static Public Member Functions

static constexpr bool is_si_prefix (UnicodeCodepoint auto cp) noexcept
 
static constexpr double get_multiplier (UnicodeCodepoint auto cp) noexcept
 

Static Public Attributes

static constexpr std::array< PREFIX, 18 > prefixes
 

Detailed Description

Definition at line 300 of file text_eval_wrapper.cpp.

Member Function Documentation

◆ get_multiplier()

static constexpr double utf8_utils::SI_PREFIX_HANDLER::get_multiplier ( UnicodeCodepoint auto cp)
inlinestaticconstexprnoexcept

◆ is_si_prefix()

static constexpr bool utf8_utils::SI_PREFIX_HANDLER::is_si_prefix ( UnicodeCodepoint auto cp)
inlinestaticconstexprnoexcept

Member Data Documentation

◆ prefixes

std::array<PREFIX, 18> utf8_utils::SI_PREFIX_HANDLER::prefixes
staticconstexpr
Initial value:
= { {
{U'a', 1e-18},
{U'f', 1e-15},
{U'p', 1e-12},
{U'n', 1e-9},
{U'u', 1e-6}, {U'µ', 1e-6}, {U'μ', 1e-6},
{U'm', 1e-3},
{U'k', 1e3}, {U'K', 1e3},
{U'M', 1e6},
{U'G', 1e9},
{U'T', 1e12},
{U'P', 1e15},
{U'E', 1e18}
} }

Definition at line 308 of file text_eval_wrapper.cpp.

Referenced by get_multiplier(), and is_si_prefix().


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