diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-01-13 10:52:17 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-15 01:00:20 +0000 |
commit | 0ddc2e1f503e8566c7f153741739d380fc05a09f (patch) | |
tree | bb88a46c6d9071c779ad9464ddd572733a19f4f4 /Userland/Libraries/LibCrypto | |
parent | 63c814fa2f05e6278fdbeb084f99e851c28006c8 (diff) | |
download | serenity-0ddc2e1f503e8566c7f153741739d380fc05a09f.zip |
LibCrypto+Everywhere: Rename *BigInteger::to_base to to_base_deprecated
Diffstat (limited to 'Userland/Libraries/LibCrypto')
5 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibCrypto/BigFraction/BigFraction.cpp b/Userland/Libraries/LibCrypto/BigFraction/BigFraction.cpp index ce85134792..028ec45e47 100644 --- a/Userland/Libraries/LibCrypto/BigFraction/BigFraction.cpp +++ b/Userland/Libraries/LibCrypto/BigFraction/BigFraction.cpp @@ -203,7 +203,7 @@ DeprecatedString BigFraction::to_deprecated_string(unsigned rounding_threshold) auto const rounded_fraction = rounded(rounding_threshold); // We take the unsigned value as we already manage the '-' - auto const full_value = rounded_fraction.m_numerator.unsigned_value().to_base(10); + auto const full_value = rounded_fraction.m_numerator.unsigned_value().to_base_deprecated(10); int split = full_value.length() - (number_of_digits(rounded_fraction.m_denominator) - 1); if (split < 0) diff --git a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp index 020ce8b6f3..db4b2fa7bb 100644 --- a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp +++ b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.cpp @@ -51,14 +51,14 @@ SignedBigInteger SignedBigInteger::from_base(u16 N, StringView str) return { move(unsigned_data), sign }; } -DeprecatedString SignedBigInteger::to_base(u16 N) const +DeprecatedString SignedBigInteger::to_base_deprecated(u16 N) const { StringBuilder builder; if (m_sign) builder.append('-'); - builder.append(m_unsigned_data.to_base(N)); + builder.append(m_unsigned_data.to_base_deprecated(N)); return builder.to_deprecated_string(); } diff --git a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h index 92b8833891..a1dc4e9a3c 100644 --- a/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h +++ b/Userland/Libraries/LibCrypto/BigInt/SignedBigInteger.h @@ -63,7 +63,7 @@ public: size_t export_data(Bytes, bool remove_leading_zeros = false) const; [[nodiscard]] static SignedBigInteger from_base(u16 N, StringView str); - [[nodiscard]] DeprecatedString to_base(u16 N) const; + [[nodiscard]] DeprecatedString to_base_deprecated(u16 N) const; [[nodiscard]] u64 to_u64() const; [[nodiscard]] double to_double(UnsignedBigInteger::RoundingMode rounding_mode = UnsignedBigInteger::RoundingMode::IEEERoundAndTiesToEvenMantissa) const; diff --git a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp index 003b40e27b..b4572a8f50 100644 --- a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp +++ b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.cpp @@ -146,7 +146,7 @@ UnsignedBigInteger UnsignedBigInteger::from_base(u16 N, StringView str) return result; } -DeprecatedString UnsignedBigInteger::to_base(u16 N) const +DeprecatedString UnsignedBigInteger::to_base_deprecated(u16 N) const { VERIFY(N <= 36); if (*this == UnsignedBigInteger { 0 }) diff --git a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h index c9a4c38021..2738d5e18e 100644 --- a/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h +++ b/Userland/Libraries/LibCrypto/BigInt/UnsignedBigInteger.h @@ -63,7 +63,7 @@ public: size_t export_data(Bytes, bool remove_leading_zeros = false) const; [[nodiscard]] static UnsignedBigInteger from_base(u16 N, StringView str); - [[nodiscard]] DeprecatedString to_base(u16 N) const; + [[nodiscard]] DeprecatedString to_base_deprecated(u16 N) const; [[nodiscard]] u64 to_u64() const; |