12std::string
upper(std::string_view s);
13std::string
lower(std::string_view s);
19std::string_view
net_leaf(std::string_view name);
std::optional< int > net_millivolts(std::string_view name)
Voltage in millivolts from a supply name: "+5V" 5000, "3V3" 3300, "+3.3V" 3300, "1V8" 1800,...
bool ground_like_name(std::string_view name)
std::optional< std::int64_t > capacitance_pf(std::string_view value)
Capacitance in picofarads from a value field: "100nF" 100000, "4u7" 4700000, "10uF/16V" 10000000,...
std::string ref_letters(std::string_view ref)
Leading letters of a reference, upper case: "C12" -> "C", "IC3" -> "IC", "FB1" -> "FB",...
std::string lower(std::string_view s)
std::string upper(std::string_view s)
std::string_view net_leaf(std::string_view name)
The last hierarchical component of a net name: "/mcu/XTAL_IN" -> "XTAL_IN".
bool natural_less(std::string_view a, std::string_view b)
Natural order of references: "C2" < "C10" < "D1"; ties broken by plain string comparison.
bool analog_supply_name(std::string_view name)
Analog supplies, references and core-regulator outputs that power_like_name misses (VREF,...
bool power_like_name(std::string_view name)
Supply-like net names (+3V3, VCC, VDD_IO, 5V, VBUS, GND, ...), including grounds.