Lines Matching refs:partIndex
534 int32_t MessageFormat::nextTopLevelArgStart(int32_t partIndex) const { in nextTopLevelArgStart()
535 if (partIndex != 0) { in nextTopLevelArgStart()
536 partIndex = msgPattern.getLimitPartIndex(partIndex); in nextTopLevelArgStart()
539 UMessagePatternPartType type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart()
541 return partIndex; in nextTopLevelArgStart()
572 UBool MessageFormat::argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNum… in argNameMatches() argument
573 const MessagePattern::Part& part = msgPattern.getPart(partIndex); in argNameMatches()
624 for (int32_t partIndex = 0; in adoptFormats() local
626 (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in adoptFormats()
627 setCustomArgStartFormat(partIndex, newFormats[formatNumber], status); in adoptFormats()
657 for (int32_t partIndex = 0; in setFormats() local
658 …formatNumber < count && U_SUCCESS(status) && (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in setFormats()
666 setCustomArgStartFormat(partIndex, newFormat, status); in setFormats()
683 for (int32_t partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in adoptFormat() local
686 setCustomArgStartFormat(partIndex, p.orphan(), status); in adoptFormat()
710 for (int32_t partIndex = 0; in adoptFormat() local
711 (partIndex = nextTopLevelArgStart(partIndex)) >= 0 && U_SUCCESS(status); in adoptFormat()
713 if (argNameMatches(partIndex + 1, formatName, argNumber)) { in adoptFormat()
726 setCustomArgStartFormat(partIndex, f, status); in adoptFormat()
739 for (int32_t partIndex = 0; in setFormat() local
740 (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in setFormat()
745 setCustomArgStartFormat(partIndex, new_format, status); in setFormat()
766 for (int32_t partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in getFormat() local
767 if (argNameMatches(partIndex + 1, formatName, argNumber)) { in getFormat()
768 return getCachedFormatter(partIndex); in getFormat()
788 for (int32_t partIndex = 0; in setFormat() local
789 (partIndex = nextTopLevelArgStart(partIndex)) >= 0 && U_SUCCESS(status); in setFormat()
791 if (argNameMatches(partIndex + 1, formatName, argNumber)) { in setFormat()
797 setCustomArgStartFormat(partIndex, new_format, status); in setFormat()
834 for (int32_t partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in getFormats() local
835 t->formatAliases[cnt++] = getCachedFormatter(partIndex); in getFormats()
842 UnicodeString MessageFormat::getArgName(int32_t partIndex) { in getArgName() argument
843 const MessagePattern::Part& part = msgPattern.getPart(partIndex); in getArgName()
858 for (int32_t partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in getFormatNames() local
859 fFormatNames->addElement(new UnicodeString(getArgName(partIndex + 1)), status); in getFormatNames()
1255 MessageFormat::findOtherSubMessage(int32_t partIndex) const { in findOtherSubMessage()
1257 const MessagePattern::Part *part = &msgPattern.getPart(partIndex); in findOtherSubMessage()
1259 ++partIndex; in findOtherSubMessage()
1265 part=&msgPattern.getPart(partIndex++); in findOtherSubMessage()
1273 return partIndex; in findOtherSubMessage()
1275 if(MessagePattern::Part::hasNumericValue(msgPattern.getPartType(partIndex))) { in findOtherSubMessage()
1276 ++partIndex; // skip the numeric-value part of "=1" etc. in findOtherSubMessage()
1278 partIndex=msgPattern.getLimitPartIndex(partIndex); in findOtherSubMessage()
1279 } while(++partIndex<count); in findOtherSubMessage()