AK: Rename StandardFormatter::Mode::Float => FixedPoint

This commit is contained in:
Lucas CHOLLET 2022-12-18 01:04:18 +01:00 committed by Linus Groh
parent b0ac88cf89
commit 25e39df7ba
Notes: sideshowbarker 2024-07-17 05:23:40 +09:00
2 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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) {