Compare commits
2 Commits
53ebe8102e
...
d2651bf09e
Author | SHA1 | Date | |
---|---|---|---|
d2651bf09e | |||
de7e58c274 |
@ -50,12 +50,12 @@ const char& StringView::operator[](usize index) 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
|
||||
{
|
||||
return !strncmp(m_string, other.m_string, m_length);
|
||||
return !strcmp(m_string, other.m_string);
|
||||
}
|
||||
|
||||
Result<Vector<String>> StringView::split(StringView delim) const
|
||||
|
Loading…
Reference in New Issue
Block a user