mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03:00
AK: Rename StandardFormatter::Mode::Float
=> FixedPoint
This commit is contained in:
parent
b0ac88cf89
commit
25e39df7ba
Notes:
sideshowbarker
2024-07-17 05:23:40 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/25e39df7ba Pull-request: https://github.com/SerenityOS/serenity/pull/16564 Reviewed-by: https://github.com/linusg
@ -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…
Reference in New Issue
Block a user