refactor: Rename ripple namespace to xrpl

This commit is contained in:
Bart
2025-11-10 11:49:19 -05:00
parent 7141781db4
commit 09c61d6fc4
1235 changed files with 3810 additions and 3823 deletions

View File

@@ -24,7 +24,7 @@
#include <type_traits>
#include <utility>
namespace ripple {
namespace xrpl {
class STArray;
@@ -747,7 +747,7 @@ STObject::Proxy<T>::assign(U&& u)
t = dynamic_cast<T*>(st_->getPField(*f_, true));
else
t = dynamic_cast<T*>(st_->makeFieldPresent(*f_));
XRPL_ASSERT(t, "ripple::STObject::Proxy::assign : type cast succeeded");
XRPL_ASSERT(t, "xrpl::STObject::Proxy::assign : type cast succeeded");
*t = std::forward<U>(u);
}
@@ -1037,18 +1037,17 @@ STObject::at(TypedField<T> const& f) const
return u->value();
XRPL_ASSERT(
mType,
"ripple::STObject::at(TypedField auto) : field template non-null");
mType, "xrpl::STObject::at(TypedField auto) : field template non-null");
XRPL_ASSERT(
b->getSType() == STI_NOTPRESENT,
"ripple::STObject::at(TypedField auto) : type not present");
"xrpl::STObject::at(TypedField auto) : type not present");
if (mType->style(f) == soeOPTIONAL)
Throw<STObject::FieldErr>("Missing optional field: " + f.getName());
XRPL_ASSERT(
mType->style(f) == soeDEFAULT,
"ripple::STObject::at(TypedField auto) : template style is default");
"xrpl::STObject::at(TypedField auto) : template style is default");
// Used to help handle the case where value_type is a const reference,
// otherwise we would return the address of a temporary.
@@ -1068,16 +1067,16 @@ STObject::at(OptionaledField<T> const& of) const
{
XRPL_ASSERT(
mType,
"ripple::STObject::at(OptionaledField auto) : field template "
"xrpl::STObject::at(OptionaledField auto) : field template "
"non-null");
XRPL_ASSERT(
b->getSType() == STI_NOTPRESENT,
"ripple::STObject::at(OptionaledField auto) : type not present");
"xrpl::STObject::at(OptionaledField auto) : type not present");
if (mType->style(*of.f) == soeOPTIONAL)
return std::nullopt;
XRPL_ASSERT(
mType->style(*of.f) == soeDEFAULT,
"ripple::STObject::at(OptionaledField auto) : template style is "
"xrpl::STObject::at(OptionaledField auto) : template style is "
"default");
return typename T::value_type{};
}
@@ -1237,6 +1236,6 @@ STObject::peekField(SField const& field)
return *cf;
}
} // namespace ripple
} // namespace xrpl
#endif