Lines Matching full:enumerator
590 struct Enumerator {
600 ucnvsel_close_selector_iterator(UEnumeration *enumerator) {
601 uprv_free(((Enumerator*)(enumerator->context))->index);
602 uprv_free(enumerator->context);
603 uprv_free(enumerator);
608 ucnvsel_count_encodings(UEnumeration *enumerator, UErrorCode *status) {
613 return ((Enumerator*)(enumerator->context))->length;
617 static const char* U_CALLCONV ucnvsel_next_encoding(UEnumeration* enumerator,
625 int16_t cur = ((Enumerator*)(enumerator->context))->cur;
628 if (cur >= ((Enumerator*)(enumerator->context))->length) {
631 sel = ((Enumerator*)(enumerator->context))->sel;
632 result = sel->encodings[((Enumerator*)(enumerator->context))->index[cur] ];
633 ((Enumerator*)(enumerator->context))->cur++;
640 static void U_CALLCONV ucnvsel_reset_iterator(UEnumeration* enumerator,
646 ((Enumerator*)(enumerator->context))->cur = 0;
694 struct Enumerator* result = (Enumerator*)uprv_malloc(sizeof(Enumerator));
706 // TODO(markus): Combine Enumerator and UEnumeration into one struct.
733 //the enumerator code anyway)