Lines Matching full:enumerator
593 struct Enumerator { struct
603 ucnvsel_close_selector_iterator(UEnumeration *enumerator) { in ucnvsel_close_selector_iterator() argument
604 uprv_free(((Enumerator*)(enumerator->context))->index); in ucnvsel_close_selector_iterator() argument
605 uprv_free(enumerator->context); in ucnvsel_close_selector_iterator()
606 uprv_free(enumerator); in ucnvsel_close_selector_iterator()
611 ucnvsel_count_encodings(UEnumeration *enumerator, UErrorCode *status) { in ucnvsel_count_encodings() argument
616 return ((Enumerator*)(enumerator->context))->length; in ucnvsel_count_encodings()
620 static const char* U_CALLCONV ucnvsel_next_encoding(UEnumeration* enumerator, in ucnvsel_next_encoding() argument
628 int16_t cur = ((Enumerator*)(enumerator->context))->cur; in ucnvsel_next_encoding()
631 if (cur >= ((Enumerator*)(enumerator->context))->length) { in ucnvsel_next_encoding()
634 sel = ((Enumerator*)(enumerator->context))->sel; in ucnvsel_next_encoding()
635 result = sel->encodings[((Enumerator*)(enumerator->context))->index[cur] ]; in ucnvsel_next_encoding()
636 ((Enumerator*)(enumerator->context))->cur++; in ucnvsel_next_encoding()
643 static void U_CALLCONV ucnvsel_reset_iterator(UEnumeration* enumerator, in ucnvsel_reset_iterator() argument
649 ((Enumerator*)(enumerator->context))->cur = 0; in ucnvsel_reset_iterator()
698 LocalMemory<Enumerator> result(static_cast<Enumerator *>(uprv_malloc(sizeof(Enumerator)))); in selectForMask()
709 // TODO(markus): Combine Enumerator and UEnumeration into one struct. in selectForMask()
736 //the enumerator code anyway) in selectForMask()