17#include <unordered_map>
24 static std::unordered_map<NumericConverterType, NumericFormatSymbol> symbols;
36 if (defaultSymbols.find(type) != defaultSymbols.end())
44 defaultSymbols.emplace(type, symbol);
51 auto it = defaultSymbols.find(type);
53 if (it != defaultSymbols.end())
67 if (formatIdentifier.
empty())
72 if (result ==
nullptr)
75 return result->symbol;
87 return {
XO(
"hh:mm:ss + samples") };
93 return {
XO(
"seconds") };
100 return {
XO(
"hh:mm:ss") };
107 return {
XO(
"hh:mm:ss + milliseconds") };
114 return {
XO(
"hh:mm:ss + hundredths") };
127 return {
XO(
"octaves") };
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
A context in which formatter operates.
An explicitly nonlocalized string, not meant for the user to see.
static const NumericConverterRegistryItem * Find(const FormatterContext &context, const NumericConverterType &type, const NumericFormatID &symbol)