mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 09:15:33 +00:00
0d68735e23
in the equality operator, no longer need ciequal since the id is already always lowercase
34 lines
588 B
C++
34 lines
588 B
C++
#include "refid.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
#include "components/misc/strings/algorithm.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
{
|
|
bool RefId::operator==(const RefId& rhs) const
|
|
{
|
|
return this->mId == rhs.mId;
|
|
}
|
|
|
|
std::ostream& operator<<(std::ostream& os, const RefId& refId)
|
|
{
|
|
os << refId.getRefIdString();
|
|
return os;
|
|
}
|
|
|
|
RefId RefId::stringRefId(const std::string_view & id)
|
|
{
|
|
RefId newRefId;
|
|
newRefId.mId = Misc::StringUtils::lowerCase(id);
|
|
return newRefId;
|
|
}
|
|
|
|
const RefId RefId::sEmpty = RefId::stringRefId("");
|
|
}
|
|
|
|
|
|
|
|
|