Lines Matching defs:CollationKey
44 * Collation keys are generated by the Collator class. Use the CollationKey objects
45 * instead of Collator to compare strings multiple times. A CollationKey
57 * <p>Typical use of CollationKeys are in databases, where you store a CollationKey
65 * CollationKey* keys = new CollationKey [3];
71 * CollationKey tmp;
80 * You can then cache the collation keys and compare them using CollationKey::compareTo().
96 class U_I18N_API CollationKey : public UObject {
105 CollationKey();
114 CollationKey(const uint8_t* values,
122 CollationKey(const CollationKey& other);
128 virtual ~CollationKey();
135 const CollationKey& operator=(const CollationKey& other);
143 UBool operator==(const CollationKey& source) const;
151 UBool operator!=(const CollationKey& source) const;
194 Collator::EComparisonResult compareTo(const CollationKey& target) const;
207 UCollationResult compareTo(const CollationKey& target, UErrorCode &status) const;
217 * . CollationKey key1, key2;
267 * Set the CollationKey to a "bogus" or invalid state
268 * @return this CollationKey
270 CollationKey& setToBogus(void);
272 * Resets this CollationKey to an empty state
273 * @return this CollationKey
275 CollationKey& reset(void);
283 // Class fields. sizeof(CollationKey) is intended to be 48 bytes
296 * Unique hash value of this CollationKey.
315 CollationKey::operator!=(const CollationKey& other) const
321 CollationKey::isBogus() const
327 CollationKey::getByteArray(int32_t &count) const