• Home
  • Raw
  • Download

Lines Matching refs:partIndex

535 int32_t MessageFormat::nextTopLevelArgStart(int32_t partIndex) const {  in nextTopLevelArgStart()
536 if (partIndex != 0) { in nextTopLevelArgStart()
537 partIndex = msgPattern.getLimitPartIndex(partIndex); in nextTopLevelArgStart()
540 UMessagePatternPartType type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart()
542 return partIndex; in nextTopLevelArgStart()
573 UBool MessageFormat::argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNum… in argNameMatches() argument
574 const MessagePattern::Part& part = msgPattern.getPart(partIndex); in argNameMatches()
625 for (int32_t partIndex = 0; in adoptFormats() local
627 (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in adoptFormats()
628 setCustomArgStartFormat(partIndex, newFormats[formatNumber], status); in adoptFormats()
658 for (int32_t partIndex = 0; in setFormats() local
659 …formatNumber < count && U_SUCCESS(status) && (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in setFormats()
667 setCustomArgStartFormat(partIndex, newFormat, status); in setFormats()
684 for (int32_t partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in adoptFormat() local
687 setCustomArgStartFormat(partIndex, p.orphan(), status); in adoptFormat()
711 for (int32_t partIndex = 0; in adoptFormat() local
712 (partIndex = nextTopLevelArgStart(partIndex)) >= 0 && U_SUCCESS(status); in adoptFormat()
714 if (argNameMatches(partIndex + 1, formatName, argNumber)) { in adoptFormat()
727 setCustomArgStartFormat(partIndex, f, status); in adoptFormat()
740 for (int32_t partIndex = 0; in setFormat() local
741 (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in setFormat()
746 setCustomArgStartFormat(partIndex, new_format, status); in setFormat()
767 for (int32_t partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in getFormat() local
768 if (argNameMatches(partIndex + 1, formatName, argNumber)) { in getFormat()
769 return getCachedFormatter(partIndex); in getFormat()
789 for (int32_t partIndex = 0; in setFormat() local
790 (partIndex = nextTopLevelArgStart(partIndex)) >= 0 && U_SUCCESS(status); in setFormat()
792 if (argNameMatches(partIndex + 1, formatName, argNumber)) { in setFormat()
798 setCustomArgStartFormat(partIndex, new_format, status); in setFormat()
816 …for (int32_t partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0; ++totalCapacity) {} in getFormats() local
840 for (int32_t partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in getFormats() local
841 t->formatAliases[cnt++] = getCachedFormatter(partIndex); in getFormats()
848 UnicodeString MessageFormat::getArgName(int32_t partIndex) { in getArgName() argument
849 const MessagePattern::Part& part = msgPattern.getPart(partIndex); in getArgName()
864 for (int32_t partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in getFormatNames() local
865 fFormatNames->addElement(new UnicodeString(getArgName(partIndex + 1)), status); in getFormatNames()
1261 MessageFormat::findOtherSubMessage(int32_t partIndex) const { in findOtherSubMessage()
1263 const MessagePattern::Part *part = &msgPattern.getPart(partIndex); in findOtherSubMessage()
1265 ++partIndex; in findOtherSubMessage()
1271 part=&msgPattern.getPart(partIndex++); in findOtherSubMessage()
1279 return partIndex; in findOtherSubMessage()
1281 if(MessagePattern::Part::hasNumericValue(msgPattern.getPartType(partIndex))) { in findOtherSubMessage()
1282 ++partIndex; // skip the numeric-value part of "=1" etc. in findOtherSubMessage()
1284 partIndex=msgPattern.getLimitPartIndex(partIndex); in findOtherSubMessage()
1285 } while(++partIndex<count); in findOtherSubMessage()