mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-26 01:25:22 +02:00
This API will always succeed in creating a String representing the provided number in base-10. (cherry picked from commit dd419b5a8df3b9a32478c4a8f0ea9f70334214cd; amended to update the rest of the system. No conflicts though!)
17 lines
253 B
C++
17 lines
253 B
C++
/*
|
|
* Copyright (c) 2023, Sam Atkins <atkinssj@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include "IntegerStyleValue.h"
|
|
|
|
namespace Web::CSS {
|
|
|
|
String IntegerStyleValue::to_string() const
|
|
{
|
|
return String::number(m_value);
|
|
}
|
|
|
|
}
|