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

@@ -13,7 +13,7 @@
#include <fstream>
#include <regex>
namespace ripple {
namespace xrpl {
namespace detail {
std::string
configContents(std::string const& dbPath, std::string const& validatorsFile)
@@ -109,7 +109,7 @@ backend=sqlite
/**
Write a rippled config file and remove when done.
*/
class RippledCfgGuard : public ripple::detail::FileDirGuard
class RippledCfgGuard : public xrpl::detail::FileDirGuard
{
private:
path dataDir_;
@@ -326,7 +326,7 @@ port_wss_admin
{
// read from file absolute path
auto const cwd = current_path();
ripple::detail::DirGuard const g0(*this, "test_db");
xrpl::detail::DirGuard const g0(*this, "test_db");
path const dataDirRel("test_data_dir");
path const dataDirAbs(cwd / g0.subdir() / dataDirRel);
detail::RippledCfgGuard const g(
@@ -1497,6 +1497,6 @@ r.ripple.com:51235
}
};
BEAST_DEFINE_TESTSUITE(Config, core, ripple);
BEAST_DEFINE_TESTSUITE(Config, core, xrpl);
} // namespace ripple
} // namespace xrpl