Lines Matching defs:variants
784 UVector *variants = (UVector*) targets->get(target);
785 // variants may be 0 if the source/target are invalid
786 return (variants == 0) ? 0 : variants->size();
798 UVector *variants = (UVector*) targets->get(target);
799 if (variants == 0) {
803 UnicodeString *v = (UnicodeString*) variants->elementAt(index);
929 * UVector of variants.
946 UVector *variants = (UVector*) targets->get(target);
947 if (variants == 0) {
948 variants = new UVector(uprv_deleteUObject,
950 if (variants == 0) {
953 targets->put(target, variants, status);
958 if (!variants->contains((void*) &variant)) {
963 variants->addElement(tempus, status);
968 variants->insertElementAt(tempus, 0, status);
987 UVector *variants = (UVector*) targets->get(target);
988 if (variants == 0) {
991 variants->removeElement((void*) &variant);
992 if (variants->size() == 0) {
993 targets->remove(target); // should delete variants