Lines Matching refs:other
12 * documentation and/or other materials provided with the distribution.
52 int IDBKey::compare(const IDBKey* other) const
54 ASSERT(other);
55 if (m_type != other->m_type)
56 return m_type > other->m_type ? -1 : 1;
60 for (size_t i = 0; i < m_array.size() && i < other->m_array.size(); ++i) {
61 if (int result = m_array[i]->compare(other->m_array[i].get()))
64 if (m_array.size() < other->m_array.size())
66 if (m_array.size() > other->m_array.size())
70 return -codePointCompare(other->m_string, m_string);
73 return (m_number < other->m_number) ? -1 :
74 (m_number > other-> m_number) ? 1 : 0;
85 bool IDBKey::isLessThan(const IDBKey* other) const
87 ASSERT(other);
88 return compare(other) == -1;
91 bool IDBKey::isEqual(const IDBKey* other) const
93 if (!other)
96 return !compare(other);