/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | MessageFormat.java | 550 private int nextTopLevelArgStart(int partIndex) { in nextTopLevelArgStart() argument 551 if (partIndex != 0) { in nextTopLevelArgStart() 552 partIndex = msgPattern.getLimitPartIndex(partIndex); in nextTopLevelArgStart() 555 MessagePattern.Part.Type type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart() 557 return partIndex; in nextTopLevelArgStart() 565 private boolean argNameMatches(int partIndex, String argName, int argNumber) { in argNameMatches() argument 566 Part part = msgPattern.getPart(partIndex); in argNameMatches() 572 private String getArgName(int partIndex) { in getArgName() argument 573 Part part = msgPattern.getPart(partIndex); in getArgName() 613 for (int partIndex = 0; (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in setFormatsByArgumentIndex() [all …]
|
D | PluralFormat.java | 435 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 …]
|
D | SelectFormat.java | 219 /*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()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | MessageFormat.java | 561 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 …]
|
D | PluralFormat.java | 450 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 …]
|
D | SelectFormat.java | 223 /*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()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | choicfmt.cpp | 425 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 …]
|
D | msgfmt.cpp | 536 int32_t MessageFormat::nextTopLevelArgStart(int32_t partIndex) const { in nextTopLevelArgStart() 537 if (partIndex != 0) { in nextTopLevelArgStart() 538 partIndex = msgPattern.getLimitPartIndex(partIndex); in nextTopLevelArgStart() 541 UMessagePatternPartType type = msgPattern.getPartType(++partIndex); in nextTopLevelArgStart() 543 return partIndex; in nextTopLevelArgStart() 574 UBool MessageFormat::argNameMatches(int32_t partIndex, const UnicodeString& argName, int32_t argNum… in argNameMatches() argument 575 const MessagePattern::Part& part = msgPattern.getPart(partIndex); in argNameMatches() 626 for (int32_t partIndex = 0; in adoptFormats() local 628 (partIndex = nextTopLevelArgStart(partIndex)) >= 0;) { in adoptFormats() 629 setCustomArgStartFormat(partIndex, newFormats[formatNumber], status); in adoptFormats() [all …]
|
D | plurfmt.cpp | 297 …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 …]
|
D | selfmt.cpp | 127 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()
|
/third_party/icu/icu4c/source/i18n/ |
D | choicfmt.cpp | 425 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 …]
|
D | msgfmt.cpp | 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() [all …]
|
D | plurfmt.cpp | 297 …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 …]
|
D | selfmt.cpp | 127 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()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | choicfmt.cpp | 425 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 …]
|
D | plurfmt.cpp | 297 …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 …]
|
D | msgfmt.cpp | 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() [all …]
|
D | selfmt.cpp | 127 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()
|
/third_party/skia/tests/ |
D | SubsetPath.cpp | 20 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()
|
/third_party/skia/third_party/externals/icu/source/i18n/unicode/ |
D | choicfmt.h | 512 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,
|
D | msgfmt.h | 1002 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;
|
/third_party/node/deps/icu-small/source/i18n/unicode/ |
D | choicfmt.h | 512 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,
|
D | msgfmt.h | 1002 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); 1038 int32_t findOtherSubMessage(int32_t partIndex) const;
|
/third_party/icu/icu4c/source/i18n/unicode/ |
D | choicfmt.h | 512 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,
|
D | msgfmt.h | 1002 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); 1038 int32_t findOtherSubMessage(int32_t partIndex) const;
|