xo-unit: refactor: move bu_fallback_abbrev to bu_store

This commit is contained in:
Roland Conybeare 2024-05-08 16:55:54 -04:00
commit a9bb9631c2
2 changed files with 11 additions and 11 deletions

View file

@ -203,16 +203,6 @@ namespace xo {
.abbrev_str()));
};
inline
constexpr bu_abbrev_type
bu_fallback_abbrev(dim basis_dim,
const scalefactor_ratio_type & scalefactor)
{
return (bu_abbrev_type::from_flatstring
(flatstring_concat
(scalefactor.to_str<bu_abbrev_type::fixed_capacity>(),
native_unit2_v[static_cast<std::uint32_t>(basis_dim)].abbrev_str())));
}
}
} /*namespace qty*/
} /*namespace xo*/