MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / operator==

Method operator==

include/stringzilla/stringzilla.hpp:2040–2042  ·  view source on GitHub ↗

@brief Checks if the string is equal to the other string. */

Source from the content-addressed store, hash-verified

2038
2039 /** @brief Checks if the string is equal to the other string. */
2040 bool operator==(string_view other) const noexcept {
2041 return size() == other.size() && sz_equal(data(), other.data(), other.size()) == sz_true_k;
2042 }
2043
2044 /** @brief Checks if the string is equal to a concatenation of two strings. */
2045 bool operator==(concatenation<string_view, string_view> const &other) const noexcept {

Callers

nothing calls this directly

Calls 3

sz_equalFunction · 0.70
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected