mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 15:47:34 +00:00
Everywhere: Rename to_{string => deprecated_string}() where applicable
This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
This commit is contained in:
parent
6e19ab2bbc
commit
57dc179b1f
597 changed files with 1973 additions and 1972 deletions
|
@ -184,7 +184,7 @@ void BigFraction::reduce()
|
|||
m_denominator = denominator_divide.quotient;
|
||||
}
|
||||
|
||||
DeprecatedString BigFraction::to_string(unsigned rounding_threshold) const
|
||||
DeprecatedString BigFraction::to_deprecated_string(unsigned rounding_threshold) const
|
||||
{
|
||||
StringBuilder builder;
|
||||
if (m_numerator.is_negative() && m_numerator != "0"_bigint)
|
||||
|
@ -239,7 +239,7 @@ DeprecatedString BigFraction::to_string(unsigned rounding_threshold) const
|
|||
builder.append(fractional_value);
|
||||
}
|
||||
|
||||
return builder.to_string();
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
BigFraction BigFraction::sqrt() const
|
||||
|
|
|
@ -54,7 +54,7 @@ public:
|
|||
// - m_denominator = 10000
|
||||
BigFraction rounded(unsigned rounding_threshold) const;
|
||||
|
||||
DeprecatedString to_string(unsigned rounding_threshold) const;
|
||||
DeprecatedString to_deprecated_string(unsigned rounding_threshold) const;
|
||||
double to_double() const;
|
||||
|
||||
private:
|
||||
|
|
|
@ -60,7 +60,7 @@ DeprecatedString SignedBigInteger::to_base(u16 N) const
|
|||
|
||||
builder.append(m_unsigned_data.to_base(N));
|
||||
|
||||
return builder.to_string();
|
||||
return builder.to_deprecated_string();
|
||||
}
|
||||
|
||||
u64 SignedBigInteger::to_u64() const
|
||||
|
|
|
@ -164,7 +164,7 @@ DeprecatedString UnsignedBigInteger::to_base(u16 N) const
|
|||
temp.set_to(quotient);
|
||||
}
|
||||
|
||||
return builder.to_string().reverse();
|
||||
return builder.to_deprecated_string().reverse();
|
||||
}
|
||||
|
||||
u64 UnsignedBigInteger::to_u64() const
|
||||
|
|
|
@ -25,7 +25,7 @@ constexpr void swap_keys(u32* keys, size_t i, size_t j)
|
|||
}
|
||||
|
||||
#ifndef KERNEL
|
||||
DeprecatedString AESCipherBlock::to_string() const
|
||||
DeprecatedString AESCipherBlock::to_deprecated_string() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
for (auto value : m_data)
|
||||
|
@ -33,7 +33,7 @@ DeprecatedString AESCipherBlock::to_string() const
|
|||
return builder.build();
|
||||
}
|
||||
|
||||
DeprecatedString AESCipherKey::to_string() const
|
||||
DeprecatedString AESCipherKey::to_deprecated_string() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
for (size_t i = 0; i < (rounds() + 1) * 4; ++i)
|
||||
|
|
|
@ -49,7 +49,7 @@ public:
|
|||
}
|
||||
|
||||
#ifndef KERNEL
|
||||
DeprecatedString to_string() const;
|
||||
DeprecatedString to_deprecated_string() const;
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
@ -65,7 +65,7 @@ struct AESCipherKey : public CipherKey {
|
|||
static bool is_valid_key_size(size_t bits) { return bits == 128 || bits == 192 || bits == 256; };
|
||||
|
||||
#ifndef KERNEL
|
||||
DeprecatedString to_string() const;
|
||||
DeprecatedString to_deprecated_string() const;
|
||||
#endif
|
||||
|
||||
u32 const* round_keys() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue