Home
last modified time | relevance | path

Searched refs:toInsertInto (Results 1 – 9 of 9) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFSubstitution.java292 …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 …]
DNFRule.java744 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 …]
DNFRuleSet.java434 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/
DNFSubstitution.java291 …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 …]
DNFRule.java743 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 …]
DNFRuleSet.java433 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/
Dnfsubs.cpp151 …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 …]
Dnfrule.cpp732 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 …]
Dnfsubs.h118 …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…