refactor: Rename ripple namespace to xrpl (#5982)

This change renames all occurrences of `namespace ripple` and `ripple::` to `namespace xrpl` and `xrpl::`, respectively, as well as the names of test suites. It also provides a script to allow developers to replicate the changes in their local branch or fork to avoid conflicts.
This commit is contained in:
Bart
2025-12-11 11:51:49 -05:00
committed by GitHub
parent 496efb71ca
commit 1eb0fdac65
1261 changed files with 4220 additions and 4235 deletions

View File

@@ -17,7 +17,7 @@
#include <string>
#include <system_error>
namespace ripple {
namespace xrpl {
template <>
STInteger<unsigned char>::STInteger(SerialIter& sit, SField const& name)
@@ -210,14 +210,14 @@ STUInt64::getJson(JsonOptions) const
auto convertToString = [](uint64_t const value, int const base) {
XRPL_ASSERT(
base == 10 || base == 16,
"ripple::STUInt64::getJson : base 10 or 16");
"xrpl::STUInt64::getJson : base 10 or 16");
std::string str(
base == 10 ? 20 : 16, 0); // Allocate space depending on base
auto ret =
std::to_chars(str.data(), str.data() + str.size(), value, base);
XRPL_ASSERT(
ret.ec == std::errc(),
"ripple::STUInt64::getJson : to_chars succeeded");
"xrpl::STUInt64::getJson : to_chars succeeded");
str.resize(std::distance(str.data(), ret.ptr));
return str;
};
@@ -259,4 +259,4 @@ STInt32::getJson(JsonOptions) const
return value_;
}
} // namespace ripple
} // namespace xrpl