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