Home
last modified time | relevance | path

Searched refs:requiredPadding (Results 1 – 3 of 3) sorted by relevance

/external/icu/icu4c/source/i18n/
Dnumber_padding.cpp20 addPaddingHelper(UChar32 paddingCp, int32_t requiredPadding, NumberStringBuilder &string, int32_t i… in addPaddingHelper() argument
22 for (int32_t i = 0; i < requiredPadding; i++) { in addPaddingHelper()
26 return U16_LENGTH(paddingCp) * requiredPadding; in addPaddingHelper()
66 int32_t requiredPadding = fWidth - modLength - string.codePointCount(); in padAndApply() local
71 if (requiredPadding <= 0) { in padAndApply()
81 length += addPaddingHelper(paddingCp, requiredPadding, string, leftIndex, status); in padAndApply()
83 length += addPaddingHelper(paddingCp, requiredPadding, string, rightIndex + length, status); in padAndApply()
88 length += addPaddingHelper(paddingCp, requiredPadding, string, leftIndex, status); in padAndApply()
90 length += addPaddingHelper(paddingCp, requiredPadding, string, rightIndex + length, status); in padAndApply()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DPadder.java93 int requiredPadding = targetWidth - modLength - string.codePointCount(); in padAndApply() local
98 if (requiredPadding <= 0) { in padAndApply()
106 length += addPaddingHelper(paddingString, requiredPadding, string, leftIndex); in padAndApply()
108 length += addPaddingHelper(paddingString, requiredPadding, string, rightIndex + length); in padAndApply()
113 length += addPaddingHelper(paddingString, requiredPadding, string, leftIndex); in padAndApply()
115 length += addPaddingHelper(paddingString, requiredPadding, string, rightIndex + length); in padAndApply()
123 int requiredPadding, in addPaddingHelper() argument
126 for (int i = 0; i < requiredPadding; i++) { in addPaddingHelper()
130 return paddingString.length() * requiredPadding; in addPaddingHelper()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DPadder.java86 int requiredPadding = targetWidth - modLength - string.codePointCount(); in padAndApply() local
91 if (requiredPadding <= 0) { in padAndApply()
99 length += addPaddingHelper(paddingString, requiredPadding, string, leftIndex); in padAndApply()
101 length += addPaddingHelper(paddingString, requiredPadding, string, rightIndex + length); in padAndApply()
106 length += addPaddingHelper(paddingString, requiredPadding, string, leftIndex); in padAndApply()
108 length += addPaddingHelper(paddingString, requiredPadding, string, rightIndex + length); in padAndApply()
116 int requiredPadding, in addPaddingHelper() argument
119 for (int i = 0; i < requiredPadding; i++) { in addPaddingHelper()
123 return paddingString.length() * requiredPadding; in addPaddingHelper()