StringView: Fix equality operator
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c24a261233
commit
de7e58c274
@ -50,12 +50,12 @@ const char& StringView::operator[](usize index) const
|
|||||||
|
|
||||||
bool StringView::operator==(const char* other) const
|
bool StringView::operator==(const char* other) const
|
||||||
{
|
{
|
||||||
return !strncmp(m_string, other, m_length);
|
return !strcmp(m_string, other);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool StringView::operator==(StringView other) const
|
bool StringView::operator==(StringView other) const
|
||||||
{
|
{
|
||||||
return !strncmp(m_string, other.m_string, m_length);
|
return !strcmp(m_string, other.m_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result<Vector<String>> StringView::split(StringView delim) const
|
Result<Vector<String>> StringView::split(StringView delim) const
|
||||||
|
Loading…
Reference in New Issue
Block a user