Home | History | Annotate | Download | only in i18n

Lines Matching refs:formatters

498                   MessageFormat** formatters = (MessageFormat**)countToPatterns->get(pluralCount);
499 if (formatters == NULL) {
500 // formatters = new MessageFormat*[kTotal];
501 formatters = (MessageFormat**)uprv_malloc(2*sizeof(MessageFormat*));
502 formatters[kFull] = NULL;
503 formatters[kAbbreviate] = NULL;
504 countToPatterns->put(pluralCount, formatters, err);
506 delete [] formatters;
510 //delete formatters[style];
511 formatters[style] = messageFormat;
576 MessageFormat** formatters = (MessageFormat**)countToPatterns->get(pluralCount);
577 if( formatters == NULL || formatters[style] == NULL ) {
634 MessageFormat** formatters = (MessageFormat**)countToPatterns->get(srcPluralCount);
635 if (formatters == NULL) {
636 //formatters = new MessageFormat*[kTotal];
637 formatters = (MessageFormat**)uprv_malloc(2*sizeof(MessageFormat*));
638 formatters[kFull] = NULL;
639 formatters[kAbbreviate] = NULL;
640 countToPatterns->put(srcPluralCount, formatters, err);
642 delete [] formatters;
647 //delete formatters[style];
648 formatters[style] = messageFormat;
689 MessageFormat** formatters = (MessageFormat**)countToPatterns->get(srcPluralCount);
690 if (formatters == NULL) {
691 //formatters = new MessageFormat*[kTotal];
692 formatters = (MessageFormat**)uprv_malloc(2*sizeof(MessageFormat*));
693 formatters[kFull] = NULL;
694 formatters[kAbbreviate] = NULL;
695 countToPatterns->put(srcPluralCount, formatters, err);
697 delete [] formatters;
702 //delete formatters[style];
703 formatters[style] = messageFormat;