Home
last modified time | relevance | path

Searched refs:partIndex (Results 1 – 22 of 22) 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.java532 private int nextTopLevelArgStart(int partIndex) { in nextTopLevelArgStart() argument
533 if (partIndex != 0) { in nextTopLevelArgStart()
534 partIndex = msgPattern.getLimitPartIndex(partIndex); in nextTopLevelArgStart()
537 MessagePattern.Part.Type type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart()
539 return partIndex; in nextTopLevelArgStart()
547 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument
548 Part part = msgPattern.getPart(partIndex); in argNameMatches()
554 private String getArgName(int partIndex) { in getArgName() argument
555 Part part = msgPattern.getPart(partIndex); in getArgName()
596 for (int partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in setFormatsByArgumentIndex()
[all …]
DPluralFormat.java447 MessagePattern pattern, int partIndex, in findSubMessage() argument
451 MessagePattern.Part part=pattern.getPart(partIndex); in findSubMessage()
454 ++partIndex; in findSubMessage()
481 part=pattern.getPart(partIndex++); in findSubMessage()
488 if(pattern.getPartType(partIndex).hasNumericValue()) { in findSubMessage()
490 part=pattern.getPart(partIndex++); in findSubMessage()
493 return partIndex; in findSubMessage()
500 msgStart=partIndex; in findSubMessage()
520 msgStart=partIndex; in findSubMessage()
526 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/android_icu4j/src/main/java/android/icu/text/
DMessageFormat.java521 private int nextTopLevelArgStart(int partIndex) { in nextTopLevelArgStart() argument
522 if (partIndex != 0) { in nextTopLevelArgStart()
523 partIndex = msgPattern.getLimitPartIndex(partIndex); in nextTopLevelArgStart()
526 MessagePattern.Part.Type type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart()
528 return partIndex; in nextTopLevelArgStart()
536 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument
537 Part part = msgPattern.getPart(partIndex); in argNameMatches()
543 private String getArgName(int partIndex) { in getArgName() argument
544 Part part = msgPattern.getPart(partIndex); in getArgName()
584 for (int partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in setFormatsByArgumentIndex()
[all …]
DPluralFormat.java432 MessagePattern pattern, int partIndex, in findSubMessage() argument
436 MessagePattern.Part part=pattern.getPart(partIndex); in findSubMessage()
439 ++partIndex; in findSubMessage()
466 part=pattern.getPart(partIndex++); in findSubMessage()
473 if(pattern.getPartType(partIndex).hasNumericValue()) { in findSubMessage()
475 part=pattern.getPart(partIndex++); in findSubMessage()
478 return partIndex; in findSubMessage()
485 msgStart=partIndex; in findSubMessage()
505 msgStart=partIndex; in findSubMessage()
511 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/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.cpp299 int32_t partIndex = findSubMessage(msgPattern, 0, pluralRulesWrapper, &dec, number, status); in format() local
304 int32_t prevIndex = msgPattern.getPart(partIndex).getLimit(); in format()
306 const MessagePattern::Part& part = msgPattern.getPart(++partIndex); in format()
321 partIndex = msgPattern.getLimitPartIndex(partIndex); in format()
322 index = msgPattern.getPart(partIndex).getLimit(); in format()
419 int32_t PluralFormat::findSubMessage(const MessagePattern& pattern, int32_t partIndex, in findSubMessage() argument
427 const MessagePattern::Part* part=&pattern.getPart(partIndex); in findSubMessage()
430 ++partIndex; in findSubMessage()
458 part=&pattern.getPart(partIndex++); in findSubMessage()
465 if(MessagePattern::Part::hasNumericValue(pattern.getPartType(partIndex))) { in findSubMessage()
[all …]
Dmsgfmt.cpp534 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()
[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/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/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/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.h982 UnicodeString getArgName(int32_t partIndex);
988 int32_t nextTopLevelArgStart(int32_t partIndex) const;
990 UBool argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber);
1018 int32_t findOtherSubMessage(int32_t partIndex) const;
Dselfmt.h358 static int32_t findSubMessage(const MessagePattern& pattern, int32_t partIndex,
Dplurfmt.h602 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()