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

@@ -9,7 +9,7 @@
#include <string>
#include <utility>
namespace ripple {
namespace xrpl {
STBase::STBase() : fName(&sfGeneric)
{
@@ -17,7 +17,7 @@ STBase::STBase() : fName(&sfGeneric)
STBase::STBase(SField const& n) : fName(&n)
{
XRPL_ASSERT(fName, "ripple::STBase::STBase : field is set");
XRPL_ASSERT(fName, "xrpl::STBase::STBase : field is set");
}
STBase&
@@ -94,7 +94,7 @@ STBase::add(Serializer& s) const
{
// Should never be called
// LCOV_EXCL_START
UNREACHABLE("ripple::STBase::add : not implemented");
UNREACHABLE("xrpl::STBase::add : not implemented");
// LCOV_EXCL_STOP
}
@@ -103,7 +103,7 @@ STBase::isEquivalent(STBase const& t) const
{
XRPL_ASSERT(
getSType() == STI_NOTPRESENT,
"ripple::STBase::isEquivalent : type not present");
"xrpl::STBase::isEquivalent : type not present");
return t.getSType() == STI_NOTPRESENT;
}
@@ -117,7 +117,7 @@ void
STBase::setFName(SField const& n)
{
fName = &n;
XRPL_ASSERT(fName, "ripple::STBase::setFName : field is set");
XRPL_ASSERT(fName, "xrpl::STBase::setFName : field is set");
}
SField const&
@@ -130,7 +130,7 @@ void
STBase::addFieldID(Serializer& s) const
{
XRPL_ASSERT(
fName->isBinary(), "ripple::STBase::addFieldID : field is binary");
fName->isBinary(), "xrpl::STBase::addFieldID : field is binary");
s.addFieldID(fName->fieldType, fName->fieldValue);
}
@@ -142,4 +142,4 @@ operator<<(std::ostream& out, STBase const& t)
return out << t.getFullText();
}
} // namespace ripple
} // namespace xrpl