Lines Matching defs:en
337 enumClose(UEnumeration *en) {
338 if(en->context != NULL) {
339 DELETE_ARRAY(en->context);
342 DELETE_ARRAY(en);
346 enumCount(UEnumeration *en, UErrorCode *) {
347 if (((Context *)en->context)->all) {
354 UBool *enabledArray = ((Context *)en->context)->enabledRecognizers;
374 enumNext(UEnumeration *en, int32_t *resultLength, UErrorCode * /*status*/) {
377 if (((Context *)en->context)->currIndex < fCSRecognizers_size) {
378 if (((Context *)en->context)->all) {
380 currName = fCSRecognizers[((Context *)en->context)->currIndex]->recognizer->getName();
381 ((Context *)en->context)->currIndex++;
384 UBool *enabledArray = ((Context *)en->context)->enabledRecognizers;
387 while (currName == NULL && ((Context *)en->context)->currIndex < fCSRecognizers_size) {
388 if (enabledArray[((Context *)en->context)->currIndex]) {
389 currName = fCSRecognizers[((Context *)en->context)->currIndex]->recognizer->getName();
391 ((Context *)en->context)->currIndex++;
395 while (currName == NULL && ((Context *)en->context)->currIndex < fCSRecognizers_size) {
396 if (fCSRecognizers[((Context *)en->context)->currIndex]->isDefaultEnabled) {
397 currName = fCSRecognizers[((Context *)en->context)->currIndex]->recognizer->getName();
399 ((Context *)en->context)->currIndex++;
414 enumReset(UEnumeration *en, UErrorCode *) {
415 ((Context *)en->context)->currIndex = 0;
442 UEnumeration *en = NEW_ARRAY(UEnumeration, 1);
443 if (en == NULL) {
447 memcpy(en, &gCSDetEnumeration, sizeof(UEnumeration));
448 en->context = (void*)NEW_ARRAY(Context, 1);
449 if (en->context == NULL) {
451 DELETE_ARRAY(en);
454 uprv_memset(en->context, 0, sizeof(Context));
455 ((Context*)en->context)->all = TRUE;
456 return en;
465 UEnumeration *en = NEW_ARRAY(UEnumeration, 1);
466 if (en == NULL) {
470 memcpy(en, &gCSDetEnumeration, sizeof(UEnumeration));
471 en->context = (void*)NEW_ARRAY(Context, 1);
472 if (en->context == NULL) {
474 DELETE_ARRAY(en);
477 uprv_memset(en->context, 0, sizeof(Context));
478 ((Context*)en->context)->all = FALSE;
479 ((Context*)en->context)->enabledRecognizers = fEnabledRecognizers;
480 return en;