Home | History | Annotate | Download | only in indexeddb

Lines Matching refs:other

12  *     documentation and/or other materials provided with the distribution.
66 int IDBKey::compare(const IDBKey* other) const
68 ASSERT(other);
69 if (m_type != other->m_type)
70 return m_type > other->m_type ? -1 : 1;
74 for (size_t i = 0; i < m_array.size() && i < other->m_array.size(); ++i) {
75 if (int result = m_array[i]->compare(other->m_array[i].get()))
78 return compareNumbers(m_array.size(), other->m_array.size());
80 if (int result = memcmp(m_binary->data(), other->m_binary->data(), std::min(m_binary->size(), other->m_binary->size())))
82 return compareNumbers(m_binary->size(), other->m_binary->size());
84 return codePointCompare(m_string, other->m_string);
87 return compareNumbers(m_number, other->m_number);
98 bool IDBKey::isLessThan(const IDBKey* other) const
100 ASSERT(other);
101 return compare(other) == -1;
104 bool IDBKey::isEqual(const IDBKey* other) const
106 if (!other)
109 return !compare(other);