Lines Matching defs:enumerator
602 ucnvsel_close_selector_iterator(UEnumeration *enumerator) {
603 uprv_free(((Enumerator*)(enumerator->context))->index);
604 uprv_free(enumerator->context);
605 uprv_free(enumerator);
610 ucnvsel_count_encodings(UEnumeration *enumerator, UErrorCode *status) {
615 return ((Enumerator*)(enumerator->context))->length;
619 static const char* U_CALLCONV ucnvsel_next_encoding(UEnumeration* enumerator,
627 int16_t cur = ((Enumerator*)(enumerator->context))->cur;
630 if (cur >= ((Enumerator*)(enumerator->context))->length) {
633 sel = ((Enumerator*)(enumerator->context))->sel;
634 result = sel->encodings[((Enumerator*)(enumerator->context))->index[cur] ];
635 ((Enumerator*)(enumerator->context))->cur++;
642 static void U_CALLCONV ucnvsel_reset_iterator(UEnumeration* enumerator,
648 ((Enumerator*)(enumerator->context))->cur = 0;
735 //the enumerator code anyway)