Home
last modified time | relevance | path

Searched refs:partIndex (Results 1 – 17 of 17) sorted by relevance

/external/messageformat/java/com/ibm/icu/simple/
DMessageFormat.java487 private int nextTopLevelArgStart(int partIndex) { in nextTopLevelArgStart() argument
488 if (partIndex != 0) { in nextTopLevelArgStart()
489 partIndex = msgPattern.getLimitPartIndex(partIndex); in nextTopLevelArgStart()
492 MessagePattern.Part.Type type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart()
494 return partIndex; in nextTopLevelArgStart()
502 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument
503 Part part = msgPattern.getPart(partIndex); in argNameMatches()
509 private String getArgName(int partIndex) { in getArgName() argument
510 Part part = msgPattern.getPart(partIndex); in getArgName()
551 for (int partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in setFormatsByArgumentIndex()
[all …]
DPluralFormat.java287 MessagePattern pattern, int partIndex, in findSubMessage() argument
291 MessagePattern.Part part=pattern.getPart(partIndex); in findSubMessage()
294 ++partIndex; in findSubMessage()
321 part=pattern.getPart(partIndex++); in findSubMessage()
328 if(pattern.getPartType(partIndex).hasNumericValue()) { in findSubMessage()
330 part=pattern.getPart(partIndex++); in findSubMessage()
333 return partIndex; in findSubMessage()
340 msgStart=partIndex; in findSubMessage()
360 msgStart=partIndex; in findSubMessage()
366 partIndex=pattern.getLimitPartIndex(partIndex); in findSubMessage()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java531 private int nextTopLevelArgStart(int partIndex) { in nextTopLevelArgStart() argument
532 if (partIndex != 0) { in nextTopLevelArgStart()
533 partIndex = msgPattern.getLimitPartIndex(partIndex); in nextTopLevelArgStart()
536 MessagePattern.Part.Type type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart()
538 return partIndex; in nextTopLevelArgStart()
546 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument
547 Part part = msgPattern.getPart(partIndex); in argNameMatches()
553 private String getArgName(int partIndex) { in getArgName() argument
554 Part part = msgPattern.getPart(partIndex); in getArgName()
595 for (int partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in setFormatsByArgumentIndex()
[all …]
DPluralFormat.java450 MessagePattern pattern, int partIndex, in findSubMessage() argument
454 MessagePattern.Part part=pattern.getPart(partIndex); in findSubMessage()
457 ++partIndex; in findSubMessage()
484 part=pattern.getPart(partIndex++); in findSubMessage()
491 if(pattern.getPartType(partIndex).hasNumericValue()) { in findSubMessage()
493 part=pattern.getPart(partIndex++); in findSubMessage()
496 return partIndex; in findSubMessage()
503 msgStart=partIndex; in findSubMessage()
523 msgStart=partIndex; in findSubMessage()
529 partIndex=pattern.getLimitPartIndex(partIndex); in findSubMessage()
[all …]
DSelectFormat.java222 /*package*/ static int findSubMessage(MessagePattern pattern, int partIndex, String keyword) { in findSubMessage() argument
227 MessagePattern.Part part=pattern.getPart(partIndex++); in findSubMessage()
236 return partIndex; in findSubMessage()
238 msgStart=partIndex; in findSubMessage()
240 partIndex=pattern.getLimitPartIndex(partIndex); in findSubMessage()
241 } while(++partIndex<count); in findSubMessage()
DMessagePattern.java459 public int getPatternIndex(int partIndex) { in getPatternIndex() argument
460 return parts.get(partIndex).index; in getPatternIndex()
/external/icu/icu4c/source/i18n/
Dchoicfmt.cpp423 ChoiceFormat::findSubMessage(const MessagePattern &pattern, int32_t partIndex, double number) { in findSubMessage() argument
429 partIndex += 2; in findSubMessage()
432 msgStart = partIndex; in findSubMessage()
433 partIndex = pattern.getLimitPartIndex(partIndex); in findSubMessage()
434 if (++partIndex >= count) { in findSubMessage()
439 const MessagePattern::Part &part = pattern.getPart(partIndex++); in findSubMessage()
450 int32_t selectorIndex = pattern.getPatternIndex(partIndex++); in findSubMessage()
505 const MessagePattern &pattern, int32_t partIndex, in parseArgument() argument
513 while (partIndex < count && pattern.getPartType(partIndex) != UMSGPAT_PART_TYPE_ARG_LIMIT) { in parseArgument()
514 tempNumber = pattern.getNumericValue(pattern.getPart(partIndex)); in parseArgument()
[all …]
Dplurfmt.cpp276 int32_t partIndex = findSubMessage(msgPattern, 0, pluralRulesWrapper, &dec, number, status); in format() local
281 int32_t prevIndex = msgPattern.getPart(partIndex).getLimit(); in format()
283 const MessagePattern::Part& part = msgPattern.getPart(++partIndex); in format()
298 partIndex = msgPattern.getLimitPartIndex(partIndex); in format()
299 index = msgPattern.getPart(partIndex).getLimit(); in format()
396 int32_t PluralFormat::findSubMessage(const MessagePattern& pattern, int32_t partIndex, in findSubMessage() argument
404 const MessagePattern::Part* part=&pattern.getPart(partIndex); in findSubMessage()
407 ++partIndex; in findSubMessage()
435 part=&pattern.getPart(partIndex++); in findSubMessage()
442 if(MessagePattern::Part::hasNumericValue(pattern.getPartType(partIndex))) { in findSubMessage()
[all …]
Dmsgfmt.cpp531 int32_t MessageFormat::nextTopLevelArgStart(int32_t partIndex) const { in nextTopLevelArgStart()
532 if (partIndex != 0) { in nextTopLevelArgStart()
533 partIndex = msgPattern.getLimitPartIndex(partIndex); in nextTopLevelArgStart()
536 UMessagePatternPartType type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart()
538 return partIndex; in nextTopLevelArgStart()
569 UBool MessageFormat::argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNum… in argNameMatches() argument
570 const MessagePattern::Part& part = msgPattern.getPart(partIndex); in argNameMatches()
621 for (int32_t partIndex = 0; in adoptFormats() local
623 (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in adoptFormats()
624 setCustomArgStartFormat(partIndex, newFormats[formatNumber], status); in adoptFormats()
[all …]
Dselfmt.cpp125 int32_t SelectFormat::findSubMessage(const MessagePattern& pattern, int32_t partIndex, in findSubMessage() argument
135 const MessagePattern::Part& part=pattern.getPart(partIndex++); in findSubMessage()
143 return partIndex; in findSubMessage()
145 msgStart=partIndex; in findSubMessage()
147 partIndex=pattern.getLimitPartIndex(partIndex); in findSubMessage()
148 } while(++partIndex<count); in findSubMessage()
/external/messageformat/java/com/ibm/icu/text/
DSelectFormat.java222 public static int findSubMessage(MessagePattern pattern, int partIndex, String keyword) { in findSubMessage() argument
227 MessagePattern.Part part=pattern.getPart(partIndex++); in findSubMessage()
236 return partIndex; in findSubMessage()
238 msgStart=partIndex; in findSubMessage()
240 partIndex=pattern.getLimitPartIndex(partIndex); in findSubMessage()
241 } while(++partIndex<count); in findSubMessage()
DMessagePattern.java459 public int getPatternIndex(int partIndex) { in getPatternIndex() argument
460 return parts.get(partIndex).index; in getPatternIndex()
/external/icu/icu4c/source/i18n/unicode/
Dchoicfmt.h507 static int32_t findSubMessage(const MessagePattern &pattern, int32_t partIndex, double number);
510 const MessagePattern &pattern, int32_t partIndex,
522 const MessagePattern &pattern, int32_t partIndex, int32_t limitPartIndex,
Dmsgfmt.h980 UnicodeString getArgName(int32_t partIndex);
986 int32_t nextTopLevelArgStart(int32_t partIndex) const;
988 UBool argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber);
1016 int32_t findOtherSubMessage(int32_t partIndex) const;
Dselfmt.h356 static int32_t findSubMessage(const MessagePattern& pattern, int32_t partIndex,
Dplurfmt.h600 const MessagePattern& pattern, int32_t partIndex,
/external/icu/icu4c/source/common/unicode/
Dmessagepattern.h644 int32_t getPatternIndex(int32_t partIndex) const { in getPatternIndex() argument
645 return getPart(partIndex).index; in getPatternIndex()