MCPcopy Create free account
hub / github.com/apache/tvm-ffi / compare

Method compare

include/tvm/ffi/string.h:540–542  ·  view source on GitHub ↗

! * \brief Compares this String object to other * * \param other The String to compare with. * * \return zero if both char sequences compare equal. negative if this appear * before other, positive otherwise. */

Source from the content-addressed store, hash-verified

538 * before other, positive otherwise.
539 */
540 int compare(const String& other) const {
541 return Bytes::memncmp(data(), other.data(), size(), other.size());
542 }
543
544 /*!
545 * \brief Compares this String object to other

Callers 9

StringViewToDLDataType_Function · 0.45
MakeObjectFromPackedArgsFunction · 0.45
TESTFunction · 0.45
operator<Function · 0.45
operator>Function · 0.45
operator<=Function · 0.45
operator>=Function · 0.45
operator==Function · 0.45
operator!=Function · 0.45

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.36