Changed Util::IsEqual to Util::Compare.
This commit is contained in:
@@ -159,7 +159,7 @@ namespace ehs
|
||||
if (size != in.size)
|
||||
return false;
|
||||
|
||||
return Util::IsEqual(data, in.data, size);
|
||||
return Util::Compare(data, in.data, size);
|
||||
}
|
||||
|
||||
bool operator!=(const Array& in) const
|
||||
@@ -167,7 +167,7 @@ namespace ehs
|
||||
if (size != in.size)
|
||||
return true;
|
||||
|
||||
return !Util::IsEqual(data, in.data, size);
|
||||
return !Util::Compare(data, in.data, size);
|
||||
}
|
||||
|
||||
/// Adds a given array object at the end of the array.
|
||||
|
@@ -124,7 +124,7 @@ namespace ehs
|
||||
if (size != in.size)
|
||||
return false;
|
||||
|
||||
return Util::IsEqual(data, in.data, size);
|
||||
return Util::Compare(data, in.data, size);
|
||||
}
|
||||
|
||||
bool operator!=(const Serializer& in) const
|
||||
@@ -132,7 +132,7 @@ namespace ehs
|
||||
if (size != in.size)
|
||||
return true;
|
||||
|
||||
return !Util::IsEqual(data, in.data, size);
|
||||
return !Util::Compare(data, in.data, size);
|
||||
}
|
||||
|
||||
Serializer& operator+=(const N size)
|
||||
|
@@ -449,7 +449,7 @@ namespace ehs
|
||||
if (size != Len(str))
|
||||
return false;
|
||||
|
||||
return Util::IsEqual(data, str, Size(true));
|
||||
return Util::Compare(data, str, Size(true));
|
||||
}
|
||||
|
||||
/// Compares with a C-style string. First comparing sizes.
|
||||
@@ -460,7 +460,7 @@ namespace ehs
|
||||
if (size != Len(str))
|
||||
return false;
|
||||
|
||||
return Util::IsEqual(data, str, Size(true));
|
||||
return Util::Compare(data, str, Size(true));
|
||||
}
|
||||
|
||||
/// Compares with a string object. First comparing sizes.
|
||||
@@ -471,7 +471,7 @@ namespace ehs
|
||||
if (size != str.size)
|
||||
return false;
|
||||
|
||||
return Util::IsEqual(data, str, Size(true));
|
||||
return Util::Compare(data, str, Size(true));
|
||||
}
|
||||
|
||||
/// Compares with a C-style string. First comparing sizes.
|
||||
@@ -482,7 +482,7 @@ namespace ehs
|
||||
if (size != Len(str))
|
||||
return true;
|
||||
|
||||
return !Util::IsEqual(data, str, Size(true));
|
||||
return !Util::Compare(data, str, Size(true));
|
||||
}
|
||||
|
||||
/// Compares with a string object. First comparing sizes.
|
||||
@@ -493,7 +493,7 @@ namespace ehs
|
||||
if (size != str.size)
|
||||
return true;
|
||||
|
||||
return !Util::IsEqual(data, str, Size(true));
|
||||
return !Util::Compare(data, str, Size(true));
|
||||
}
|
||||
|
||||
/// Retrieves the raw C-style string from casting a string object.
|
||||
@@ -1842,7 +1842,7 @@ bool operator==(const T* const first, const ehs::Str<T, N>& second)
|
||||
if (second.Size() != inSize)
|
||||
return false;
|
||||
|
||||
return ehs::Util::IsEqual(first, second, second.Size(true));
|
||||
return ehs::Util::Compare(first, second, second.Size(true));
|
||||
}
|
||||
|
||||
template<typename T = ehs::Char_8, typename N = ehs::UInt_64>
|
||||
@@ -1852,7 +1852,7 @@ bool operator!=(const T* const first, const ehs::Str<T, N>& second)
|
||||
if (second.Size() != inSize)
|
||||
return true;
|
||||
|
||||
return !ehs::Util::IsEqual(first, second, second.Size(true));
|
||||
return !ehs::Util::Compare(first, second, second.Size(true));
|
||||
}
|
||||
|
||||
/// Concatenates a C-style string with a string.
|
||||
|
@@ -7,10 +7,12 @@ namespace ehs
|
||||
class Util
|
||||
{
|
||||
public:
|
||||
static bool IsEqual(const void* const a, const void* const b, const UInt_64 size);
|
||||
static bool Compare(const void* a, const void* b, UInt_64 size);
|
||||
|
||||
static void Copy(void* const out, const void* const in, const UInt_64 size);
|
||||
static void Copy(void* out, const void* in, UInt_64 size);
|
||||
|
||||
static void Zero(void* const in, const UInt_64 size);
|
||||
static void Fill(void* out, UInt_64 outSize, const void* in, UInt_64 inSize);
|
||||
|
||||
static void Zero(void* in, UInt_64 size);
|
||||
};
|
||||
}
|
||||
|
@@ -164,7 +164,7 @@ namespace ehs
|
||||
if (size != in.size)
|
||||
return false;
|
||||
|
||||
return Util::IsEqual(data, in.data, size);
|
||||
return Util::Compare(data, in.data, size);
|
||||
}
|
||||
|
||||
bool operator!=(const Vector& in) const
|
||||
@@ -172,7 +172,7 @@ namespace ehs
|
||||
if (size != in.size)
|
||||
return true;
|
||||
|
||||
return !Util::IsEqual(data, in.data, size);
|
||||
return !Util::Compare(data, in.data, size);
|
||||
}
|
||||
|
||||
/// Adds a given initializer list at the end of the vector.
|
||||
|
Reference in New Issue
Block a user