Lines Matching full:enumerator
591 struct Enumerator {
601 ucnvsel_close_selector_iterator(UEnumeration *enumerator) {
602 uprv_free(((Enumerator*)(enumerator->context))->index);
603 uprv_free(enumerator->context);
604 uprv_free(enumerator);
609 ucnvsel_count_encodings(UEnumeration *enumerator, UErrorCode *status) {
614 return ((Enumerator*)(enumerator->context))->length;
618 static const char* U_CALLCONV ucnvsel_next_encoding(UEnumeration* enumerator,
626 int16_t cur = ((Enumerator*)(enumerator->context))->cur;
629 if (cur >= ((Enumerator*)(enumerator->context))->length) {
632 sel = ((Enumerator*)(enumerator->context))->sel;
633 result = sel->encodings[((Enumerator*)(enumerator->context))->index[cur] ];
634 ((Enumerator*)(enumerator->context))->cur++;
641 static void U_CALLCONV ucnvsel_reset_iterator(UEnumeration* enumerator,
647 ((Enumerator*)(enumerator->context))->cur = 0;
695 struct Enumerator* result = (Enumerator*)uprv_malloc(sizeof(Enumerator));
707 // TODO(markus): Combine Enumerator and UEnumeration into one struct.
734 //the enumerator code anyway)