Home | History | Annotate | Download | only in i18n

Lines Matching refs:en

339 enumClose(UEnumeration *en) {
340 if(en->context != NULL) {
341 DELETE_ARRAY(en->context);
344 DELETE_ARRAY(en);
348 enumCount(UEnumeration *en, UErrorCode *) {
349 if (((Context *)en->context)->all) {
356 UBool *enabledArray = ((Context *)en->context)->enabledRecognizers;
376 enumNext(UEnumeration *en, int32_t *resultLength, UErrorCode * /*status*/) {
379 if (((Context *)en->context)->currIndex < fCSRecognizers_size) {
380 if (((Context *)en->context)->all) {
382 currName = fCSRecognizers[((Context *)en->context)->currIndex]->recognizer->getName();
383 ((Context *)en->context)->currIndex++;
386 UBool *enabledArray = ((Context *)en->context)->enabledRecognizers;
389 while (currName == NULL && ((Context *)en->context)->currIndex < fCSRecognizers_size) {
390 if (enabledArray[((Context *)en->context)->currIndex]) {
391 currName = fCSRecognizers[((Context *)en->context)->currIndex]->recognizer->getName();
393 ((Context *)en->context)->currIndex++;
397 while (currName == NULL && ((Context *)en->context)->currIndex < fCSRecognizers_size) {
398 if (fCSRecognizers[((Context *)en->context)->currIndex]->isDefaultEnabled) {
399 currName = fCSRecognizers[((Context *)en->context)->currIndex]->recognizer->getName();
401 ((Context *)en->context)->currIndex++;
416 enumReset(UEnumeration *en, UErrorCode *) {
417 ((Context *)en->context)->currIndex = 0;
444 UEnumeration *en = NEW_ARRAY(UEnumeration, 1);
445 if (en == NULL) {
449 memcpy(en, &gCSDetEnumeration, sizeof(UEnumeration));
450 en->context = (void*)NEW_ARRAY(Context, 1);
451 if (en->context == NULL) {
453 DELETE_ARRAY(en);
456 uprv_memset(en->context, 0, sizeof(Context));
457 ((Context*)en->context)->all = TRUE;
458 return en;
467 UEnumeration *en = NEW_ARRAY(UEnumeration, 1);
468 if (en == NULL) {
472 memcpy(en, &gCSDetEnumeration, sizeof(UEnumeration));
473 en->context = (void*)NEW_ARRAY(Context, 1);
474 if (en->context == NULL) {
476 DELETE_ARRAY(en);
479 uprv_memset(en->context, 0, sizeof(Context));
480 ((Context*)en->context)->all = FALSE;
481 ((Context*)en->context)->enabledRecognizers = fEnabledRecognizers;
482 return en;