Skip to main content

chronon::params::detail

Functions

Name
std::stringtoLower(std::string s)
std::pair< double, std::string >parseValueAndUnit(const std::string & s, const char * type_name)
Split a unit-suffixed numeric string into value and unit (e.g. "3GHz" → {3.0, "GHz"}).

Functions Documentation

function toLower

inline std::string toLower(
std::string s
)

function parseValueAndUnit

inline std::pair< double, std::string > parseValueAndUnit(
const std::string & s,
const char * type_name
)

Split a unit-suffixed numeric string into value and unit (e.g. "3GHz" → {3.0, "GHz"}).

Exceptions:

  • std::invalid_argument if the string is empty or has no numeric prefix.

Updated on 2026-05-26 at 05:42:32 +0000