mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:47:44 +00:00
AK: Rename StandardFormatter::Mode::Float
=> FixedPoint
This commit is contained in:
parent
b0ac88cf89
commit
25e39df7ba
2 changed files with 5 additions and 5 deletions
|
@ -651,7 +651,7 @@ void StandardFormatter::parse(TypeErasedFormatParams& params, FormatParser& pars
|
|||
else if (parser.consume_specific('p'))
|
||||
m_mode = Mode::Pointer;
|
||||
else if (parser.consume_specific('f'))
|
||||
m_mode = Mode::Float;
|
||||
m_mode = Mode::FixedPoint;
|
||||
else if (parser.consume_specific('a'))
|
||||
m_mode = Mode::Hexfloat;
|
||||
else if (parser.consume_specific('A'))
|
||||
|
@ -794,7 +794,7 @@ ErrorOr<void> Formatter<long double>::format(FormatBuilder& builder, long double
|
|||
{
|
||||
u8 base;
|
||||
bool upper_case;
|
||||
if (m_mode == Mode::Default || m_mode == Mode::Float) {
|
||||
if (m_mode == Mode::Default || m_mode == Mode::FixedPoint) {
|
||||
base = 10;
|
||||
upper_case = false;
|
||||
} else if (m_mode == Mode::Hexfloat) {
|
||||
|
@ -817,7 +817,7 @@ ErrorOr<void> Formatter<double>::format(FormatBuilder& builder, double value)
|
|||
{
|
||||
u8 base;
|
||||
bool upper_case;
|
||||
if (m_mode == Mode::Default || m_mode == Mode::Float) {
|
||||
if (m_mode == Mode::Default || m_mode == Mode::FixedPoint) {
|
||||
base = 10;
|
||||
upper_case = false;
|
||||
} else if (m_mode == Mode::Hexfloat) {
|
||||
|
|
|
@ -292,7 +292,7 @@ struct StandardFormatter {
|
|||
Character,
|
||||
String,
|
||||
Pointer,
|
||||
Float,
|
||||
FixedPoint,
|
||||
Hexfloat,
|
||||
HexfloatUppercase,
|
||||
HexDump,
|
||||
|
@ -520,7 +520,7 @@ struct Formatter<FixedPoint<precision, Underlying>> : StandardFormatter {
|
|||
{
|
||||
u8 base;
|
||||
bool upper_case;
|
||||
if (m_mode == Mode::Default || m_mode == Mode::Float) {
|
||||
if (m_mode == Mode::Default || m_mode == Mode::FixedPoint) {
|
||||
base = 10;
|
||||
upper_case = false;
|
||||
} else if (m_mode == Mode::Hexfloat) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue