hex_format
string.ReplaceFirst("%2", hex_format(pfmts[i].type));
string.ReplaceFirst("%4", hex_format(pfmts[i].group));
bstr.ReplaceFirst("%3", hex_format(static_cast<uint32>(cs)));
bstr.ReplaceFirst("%11", hex_format(tinfo.type));
bstr.ReplaceFirst("%14", hex_format(tinfo.group));