Home
last modified time | relevance | path

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

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java561 private int nextTopLevelArgStart(int partIndex) { in nextTopLevelArgStart() argument
562 if (partIndex != 0) { in nextTopLevelArgStart()
563 partIndex = msgPattern.getLimitPartIndex(partIndex); in nextTopLevelArgStart()
566 MessagePattern.Part.Type type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart()
568 return partIndex; in nextTopLevelArgStart()
576 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument
577 Part part = msgPattern.getPart(partIndex); in argNameMatches()
583 private String getArgName(int partIndex) { in getArgName() argument
584 Part part = msgPattern.getPart(partIndex); in getArgName()
625 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/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/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.cpp297 …int32_t partIndex = findSubMessage(msgPattern, 0, pluralRulesWrapper, &data.quantity, number, stat… in format() local
302 int32_t prevIndex = msgPattern.getPart(partIndex).getLimit(); in format()
304 const MessagePattern::Part& part = msgPattern.getPart(++partIndex); in format()
319 partIndex = msgPattern.getLimitPartIndex(partIndex); in format()
320 index = msgPattern.getPart(partIndex).getLimit(); in format()
417 int32_t PluralFormat::findSubMessage(const MessagePattern& pattern, int32_t partIndex, in findSubMessage() argument
425 const MessagePattern::Part* part=&pattern.getPart(partIndex); in findSubMessage()
428 ++partIndex; in findSubMessage()
456 part=&pattern.getPart(partIndex++); in findSubMessage()
463 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.cpp20 int partIndex = fSubset - parts; in range() local
21 SkASSERT(partIndex >= 0); in range()
23 int start = count * partIndex / parts; in range()
24 *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.h512 static int32_t findSubMessage(const MessagePattern &pattern, int32_t partIndex, double number);
515 const MessagePattern &pattern, int32_t partIndex,
527 const MessagePattern &pattern, int32_t partIndex, int32_t limitPartIndex,
Dmsgfmt.h1002 UnicodeString getArgName(int32_t partIndex);
1008 int32_t nextTopLevelArgStart(int32_t partIndex) const;
1010 UBool argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber);
1040 int32_t findOtherSubMessage(int32_t partIndex) const;
Dselfmt.h361 static int32_t findSubMessage(const MessagePattern& pattern, int32_t partIndex,
Dplurfmt.h589 const MessagePattern& pattern, int32_t partIndex,
/external/icu/libicu/cts_headers/unicode/
Dchoicfmt.h512 static int32_t findSubMessage(const MessagePattern &pattern, int32_t partIndex, double number);
515 const MessagePattern &pattern, int32_t partIndex,
527 const MessagePattern &pattern, int32_t partIndex, int32_t limitPartIndex,
Dmsgfmt.h1002 UnicodeString getArgName(int32_t partIndex);
1008 int32_t nextTopLevelArgStart(int32_t partIndex) const;
1010 UBool argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNumber);
1040 int32_t findOtherSubMessage(int32_t partIndex) const;
Dselfmt.h361 static int32_t findSubMessage(const MessagePattern& pattern, int32_t partIndex,
Dmessagepattern.h648 int32_t getPatternIndex(int32_t partIndex) const { in getPatternIndex() argument
649 return getPart(partIndex).index; in getPatternIndex()
Dplurfmt.h589 const MessagePattern& pattern, int32_t partIndex,
/external/icu/icu4c/source/common/unicode/
Dmessagepattern.h648 int32_t getPatternIndex(int32_t partIndex) const { in getPatternIndex() argument
649 return getPart(partIndex).index; in getPatternIndex()
/external/llvm-project/lld/ELF/
DWriter.cpp489 in.partIndex = make<PartitionIndexSection>(); in createSyntheticSections()
490 addOptionalRegular("__part_index_begin", in.partIndex, 0); in createSyntheticSections()
491 addOptionalRegular("__part_index_end", in.partIndex, in createSyntheticSections()
492 in.partIndex->getSize()); in createSyntheticSections()
493 add(in.partIndex); in createSyntheticSections()
2143 finalizeSynthetic(in.partIndex); in finalizeSections()

12