/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | NFSubstitution.java | 292 …public void doSubstitution(long number, StringBuilder toInsertInto, int position, int recursionCou… in doSubstitution() argument 299 ruleSet.format(numberToFormat, toInsertInto, position + pos, recursionCount); in doSubstitution() 301 toInsertInto.insert(position + pos, numberFormat.format(numberToFormat)); in doSubstitution() 315 …public void doSubstitution(double number, StringBuilder toInsertInto, int position, int recursionC… in doSubstitution() argument 323 infiniteRule.doFormat(numberToFormat, toInsertInto, position + pos, recursionCount); in doSubstitution() 330 ruleSet.format((long)numberToFormat, toInsertInto, position + pos, recursionCount); in doSubstitution() local 337 ruleSet.format(numberToFormat, toInsertInto, position + pos, recursionCount); in doSubstitution() 339 toInsertInto.insert(position + this.pos, numberFormat.format(numberToFormat)); in doSubstitution() 878 …public void doSubstitution(long number, StringBuilder toInsertInto, int position, int recursionCou… in doSubstitution() argument 883 super.doSubstitution(number, toInsertInto, position, recursionCount); in doSubstitution() [all …]
|
D | NFRule.java | 744 public void doFormat(long number, StringBuilder toInsertInto, int pos, int recursionCount) { in doFormat() argument 753 toInsertInto.insert(pos, ruleText); in doFormat() 758 int initialLength = toInsertInto.length(); in doFormat() 760 toInsertInto.insert(pos, ruleText.substring(pluralRuleEnd + 2)); in doFormat() 762 toInsertInto.insert(pos, rulePatternFormat.format(number / power(radix, exponent))); in doFormat() 764 toInsertInto.insert(pos, ruleText.substring(0, pluralRuleStart)); in doFormat() 766 lengthOffset = ruleText.length() - (toInsertInto.length() - initialLength); in doFormat() 769 …sub2.doSubstitution(number, toInsertInto, pos - (sub2.getPos() > pluralRuleStart ? lengthOffset : … in doFormat() 772 …sub1.doSubstitution(number, toInsertInto, pos - (sub1.getPos() > pluralRuleStart ? lengthOffset : … in doFormat() 785 public void doFormat(double number, StringBuilder toInsertInto, int pos, int recursionCount) { in doFormat() argument [all …]
|
D | NFRuleSet.java | 434 public void format(long number, StringBuilder toInsertInto, int pos, int recursionCount) { in format() argument 439 applicableRule.doFormat(number, toInsertInto, pos, ++recursionCount); in format() 450 public void format(double number, StringBuilder toInsertInto, int pos, int recursionCount) { in format() argument 455 applicableRule.doFormat(number, toInsertInto, pos, ++recursionCount); in format()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | NFSubstitution.java | 291 …public void doSubstitution(long number, StringBuilder toInsertInto, int position, int recursionCou… in doSubstitution() argument 298 ruleSet.format(numberToFormat, toInsertInto, position + pos, recursionCount); in doSubstitution() 300 toInsertInto.insert(position + pos, numberFormat.format(numberToFormat)); in doSubstitution() 314 …public void doSubstitution(double number, StringBuilder toInsertInto, int position, int recursionC… in doSubstitution() argument 322 infiniteRule.doFormat(numberToFormat, toInsertInto, position + pos, recursionCount); in doSubstitution() 329 ruleSet.format((long)numberToFormat, toInsertInto, position + pos, recursionCount); in doSubstitution() local 336 ruleSet.format(numberToFormat, toInsertInto, position + pos, recursionCount); in doSubstitution() 338 toInsertInto.insert(position + this.pos, numberFormat.format(numberToFormat)); in doSubstitution() 877 …public void doSubstitution(long number, StringBuilder toInsertInto, int position, int recursionCou… in doSubstitution() argument 882 super.doSubstitution(number, toInsertInto, position, recursionCount); in doSubstitution() [all …]
|
D | NFRule.java | 743 public void doFormat(long number, StringBuilder toInsertInto, int pos, int recursionCount) { in doFormat() argument 752 toInsertInto.insert(pos, ruleText); in doFormat() 757 int initialLength = toInsertInto.length(); in doFormat() 759 toInsertInto.insert(pos, ruleText.substring(pluralRuleEnd + 2)); in doFormat() 761 toInsertInto.insert(pos, rulePatternFormat.format(number / power(radix, exponent))); in doFormat() 763 toInsertInto.insert(pos, ruleText.substring(0, pluralRuleStart)); in doFormat() 765 lengthOffset = ruleText.length() - (toInsertInto.length() - initialLength); in doFormat() 768 …sub2.doSubstitution(number, toInsertInto, pos - (sub2.getPos() > pluralRuleStart ? lengthOffset : … in doFormat() 771 …sub1.doSubstitution(number, toInsertInto, pos - (sub1.getPos() > pluralRuleStart ? lengthOffset : … in doFormat() 784 public void doFormat(double number, StringBuilder toInsertInto, int pos, int recursionCount) { in doFormat() argument [all …]
|
D | NFRuleSet.java | 433 public void format(long number, StringBuilder toInsertInto, int pos, int recursionCount) { in format() argument 438 applicableRule.doFormat(number, toInsertInto, pos, ++recursionCount); in format() 449 public void format(double number, StringBuilder toInsertInto, int pos, int recursionCount) { in format() argument 454 applicableRule.doFormat(number, toInsertInto, pos, ++recursionCount); in format()
|
/external/icu/icu4c/source/i18n/ |
D | nfsubs.cpp | 151 …virtual void doSubstitution(int64_t number, UnicodeString& toInsertInto, int32_t pos, int32_t recu… 152 …virtual void doSubstitution(double number, UnicodeString& toInsertInto, int32_t pos, int32_t recur… 218 …virtual void doSubstitution(double number, UnicodeString& toInsertInto, int32_t pos, int32_t recur… 293 …virtual void doSubstitution(double number, UnicodeString& toInsertInto, int32_t pos, int32_t recur… 572 NFSubstitution::doSubstitution(int64_t number, UnicodeString& toInsertInto, int32_t _pos, int32_t r… in doSubstitution() argument 578 … ruleSet->format(transformNumber(number), toInsertInto, _pos + this->pos, recursionCount, status); in doSubstitution() 591 toInsertInto.insert(_pos + this->pos, temp); in doSubstitution() 606 NFSubstitution::doSubstitution(double number, UnicodeString& toInsertInto, int32_t _pos, int32_t re… in doSubstitution() argument 614 … infiniteRule->doFormat(numberToFormat, toInsertInto, _pos + this->pos, recursionCount, status); in doSubstitution() 621 …ruleSet->format(util64_fromDouble(numberToFormat), toInsertInto, _pos + this->pos, recursionCount,… in doSubstitution() [all …]
|
D | nfrule.cpp | 732 NFRule::doFormat(int64_t number, UnicodeString& toInsertInto, int32_t pos, int32_t recursionCount, … in doFormat() argument 742 toInsertInto.insert(pos, ruleText); in doFormat() 747 int initialLength = toInsertInto.length(); in doFormat() 749 toInsertInto.insert(pos, ruleText.tempSubString(pluralRuleEnd + 2)); in doFormat() 751 toInsertInto.insert(pos, in doFormat() 754 toInsertInto.insert(pos, ruleText.tempSubString(0, pluralRuleStart)); in doFormat() 756 lengthOffset = ruleText.length() - (toInsertInto.length() - initialLength); in doFormat() 760 …sub2->doSubstitution(number, toInsertInto, pos - (sub2->getPos() > pluralRuleStart ? lengthOffset … in doFormat() 763 …sub1->doSubstitution(number, toInsertInto, pos - (sub1->getPos() > pluralRuleStart ? lengthOffset … in doFormat() 777 NFRule::doFormat(double number, UnicodeString& toInsertInto, int32_t pos, int32_t recursionCount, U… in doFormat() argument [all …]
|
D | nfsubs.h | 118 …virtual void doSubstitution(int64_t number, UnicodeString& toInsertInto, int32_t pos, int32_t recu… 130 …virtual void doSubstitution(double number, UnicodeString& toInsertInto, int32_t pos, int32_t recur…
|