Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/java/android/icu/text/
DMessageFormat.java522 private int nextTopLevelArgStart(int partIndex) { in nextTopLevelArgStart() argument
523 if (partIndex != 0) { in nextTopLevelArgStart()
524 partIndex = msgPattern.getLimitPartIndex(partIndex); in nextTopLevelArgStart()
527 MessagePattern.Part.Type type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart()
529 return partIndex; in nextTopLevelArgStart()
537 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument
538 Part part = msgPattern.getPart(partIndex); in argNameMatches()
544 private String getArgName(int partIndex) { in getArgName() argument
545 Part part = msgPattern.getPart(partIndex); in getArgName()
585 for (int partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in setFormatsByArgumentIndex()
[all …]
DPluralFormat.java435 MessagePattern pattern, int partIndex, in findSubMessage() argument
439 MessagePattern.Part part=pattern.getPart(partIndex); in findSubMessage()
442 ++partIndex; in findSubMessage()
469 part=pattern.getPart(partIndex++); in findSubMessage()
476 if(pattern.getPartType(partIndex).hasNumericValue()) { in findSubMessage()
478 part=pattern.getPart(partIndex++); in findSubMessage()
481 return partIndex; in findSubMessage()
488 msgStart=partIndex; in findSubMessage()
508 msgStart=partIndex; in findSubMessage()
514 partIndex=pattern.getLimitPartIndex(partIndex); in findSubMessage()
[all …]
DSelectFormat.java219 /*package*/ static int findSubMessage(MessagePattern pattern, int partIndex, String keyword) { in findSubMessage() argument
224 MessagePattern.Part part=pattern.getPart(partIndex++); in findSubMessage()
233 return partIndex; in findSubMessage()
235 msgStart=partIndex; in findSubMessage()
237 partIndex=pattern.getLimitPartIndex(partIndex); in findSubMessage()
238 } while(++partIndex<count); in findSubMessage()
DMessagePattern.java435 public int getPatternIndex(int partIndex) { in getPatternIndex() argument
436 return parts.get(partIndex).index; in getPatternIndex()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java536 private int nextTopLevelArgStart(int partIndex) { in nextTopLevelArgStart() argument
537 if (partIndex != 0) { in nextTopLevelArgStart()
538 partIndex = msgPattern.getLimitPartIndex(partIndex); in nextTopLevelArgStart()
541 MessagePattern.Part.Type type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart()
543 return partIndex; in nextTopLevelArgStart()
551 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument
552 Part part = msgPattern.getPart(partIndex); in argNameMatches()
558 private String getArgName(int partIndex) { in getArgName() argument
559 Part part = msgPattern.getPart(partIndex); in getArgName()
600 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.java223 /*package*/ static int findSubMessage(MessagePattern pattern, int partIndex, String keyword) { in findSubMessage() argument
228 MessagePattern.Part part=pattern.getPart(partIndex++); in findSubMessage()
237 return partIndex; in findSubMessage()
239 msgStart=partIndex; in findSubMessage()
241 partIndex=pattern.getLimitPartIndex(partIndex); in findSubMessage()
242 } while(++partIndex<count); in findSubMessage()
DMessagePattern.java462 public int getPatternIndex(int partIndex) { in getPatternIndex() argument
463 return parts.get(partIndex).index; in getPatternIndex()
/external/icu/icu4c/source/i18n/
Dchoicfmt.cpp425 ChoiceFormat::findSubMessage(const MessagePattern &pattern, int32_t partIndex, double number) { in findSubMessage() argument
431 partIndex += 2; in findSubMessage()
434 msgStart = partIndex; in findSubMessage()
435 partIndex = pattern.getLimitPartIndex(partIndex); in findSubMessage()
436 if (++partIndex >= count) { in findSubMessage()
441 const MessagePattern::Part &part = pattern.getPart(partIndex++); in findSubMessage()
452 int32_t selectorIndex = pattern.getPatternIndex(partIndex++); in findSubMessage()
507 const MessagePattern &pattern, int32_t partIndex, in parseArgument() argument
515 while (partIndex < count && pattern.getPartType(partIndex) != UMSGPAT_PART_TYPE_ARG_LIMIT) { in parseArgument()
516 tempNumber = pattern.getNumericValue(pattern.getPart(partIndex)); in parseArgument()
[all …]
Dplurfmt.cpp290 …int32_t partIndex = findSubMessage(msgPattern, 0, pluralRulesWrapper, &data.quantity, number, stat… in format() local
295 int32_t prevIndex = msgPattern.getPart(partIndex).getLimit(); in format()
297 const MessagePattern::Part& part = msgPattern.getPart(++partIndex); in format()
312 partIndex = msgPattern.getLimitPartIndex(partIndex); in format()
313 index = msgPattern.getPart(partIndex).getLimit(); in format()
410 int32_t PluralFormat::findSubMessage(const MessagePattern& pattern, int32_t partIndex, in findSubMessage() argument
418 const MessagePattern::Part* part=&pattern.getPart(partIndex); in findSubMessage()
421 ++partIndex; in findSubMessage()
449 part=&pattern.getPart(partIndex++); in findSubMessage()
456 if(MessagePattern::Part::hasNumericValue(pattern.getPartType(partIndex))) { in findSubMessage()
[all …]
Dmsgfmt.cpp535 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()
[all …]
Dselfmt.cpp127 int32_t SelectFormat::findSubMessage(const MessagePattern& pattern, int32_t partIndex, in findSubMessage() argument
137 const MessagePattern::Part& part=pattern.getPart(partIndex++); in findSubMessage()
145 return partIndex; in findSubMessage()
147 msgStart=partIndex; in findSubMessage()
149 partIndex=pattern.getLimitPartIndex(partIndex); in findSubMessage()
150 } while(++partIndex<count); in findSubMessage()
/external/skia/tests/
DSubsetPath.cpp19 int partIndex = fSubset - parts; in range() local
20 SkASSERT(partIndex >= 0); in range()
22 int start = count * partIndex / parts; in range()
23 *end = count * (partIndex + 1) / parts; in range()
/external/skqp/tests/
DSubsetPath.cpp19 int partIndex = fSubset - parts; in range() local
20 SkASSERT(partIndex >= 0); in range()
22 int start = count * partIndex / parts; in range()
23 *end = count * (partIndex + 1) / parts; in range()
/external/icu/icu4c/source/i18n/unicode/
Dchoicfmt.h509 static int32_t findSubMessage(const MessagePattern &pattern, int32_t partIndex, double number);
512 const MessagePattern &pattern, int32_t partIndex,
524 const MessagePattern &pattern, int32_t partIndex, int32_t limitPartIndex,
Dmsgfmt.h985 UnicodeString getArgName(int32_t partIndex);
991 int32_t nextTopLevelArgStart(int32_t partIndex) const;
993 UBool argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber);
1021 int32_t findOtherSubMessage(int32_t partIndex) const;
Dselfmt.h358 static int32_t findSubMessage(const MessagePattern& pattern, int32_t partIndex,
Dplurfmt.h590 const MessagePattern& pattern, int32_t partIndex,
/external/icu/icu4c/source/common/unicode/
Dmessagepattern.h646 int32_t getPatternIndex(int32_t partIndex) const { in getPatternIndex() argument
647 return getPart(partIndex).index; in getPatternIndex()