File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,18 @@ void printf_formattert::process_format(std::ostream &out)
159
159
out << ch;
160
160
break ;
161
161
162
+ case ' e' :
163
+ case ' E' :
164
+ format_constant.style =format_spect::stylet::SCIENTIFIC;
165
+ if (next_operand==operands.end ())
166
+ break ;
167
+ out << format_constant (
168
+ make_type (*(next_operand++), double_type ()));
169
+ break ;
170
+
162
171
case ' f' :
163
172
case ' F' :
173
+ format_constant.style =format_spect::stylet::DECIMAL;
164
174
if (next_operand==operands.end ())
165
175
break ;
166
176
out << format_constant (
@@ -169,6 +179,7 @@ void printf_formattert::process_format(std::ostream &out)
169
179
170
180
case ' g' :
171
181
case ' G' :
182
+ format_constant.style =format_spect::stylet::AUTOMATIC;
172
183
if (format_constant.precision ==0 )
173
184
format_constant.precision =1 ;
174
185
if (next_operand==operands.end ())
You can’t perform that action at this time.
0 commit comments