Home
last modified time | relevance | path

Searched refs:rightIndex (Results 1 – 25 of 39) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Dcollationfastlatin.cpp123 int32_t leftIndex = 0, rightIndex = 0; in compareUTF16() local
164 if(rightIndex == rightLength) { in compareUTF16()
168 UChar32 c = right[rightIndex++]; in compareUTF16()
188 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength); in compareUTF16()
216 leftIndex = rightIndex = 0; in compareUTF16()
245 if(rightIndex == rightLength) { in compareUTF16()
249 UChar32 c = right[rightIndex++]; in compareUTF16()
264 rightPair = nextPair(table, c, rightPair, right, NULL, rightIndex, rightLength); in compareUTF16()
292 leftIndex = rightIndex = 0; in compareUTF16()
309 if(rightIndex == rightLength) { in compareUTF16()
[all …]
Dnumber_padding.cpp63 FormattedStringBuilder &string, int32_t leftIndex, int32_t rightIndex, in padAndApply() argument
68 rightIndex == string.length()); // fix the previous line to remove this assertion in padAndApply()
73 length += mod1.apply(string, leftIndex, rightIndex, status); in padAndApply()
74 length += mod2.apply(string, leftIndex, rightIndex + length, status); in padAndApply()
83 length += addPaddingHelper(paddingCp, requiredPadding, string, rightIndex + length, status); in padAndApply()
85 length += mod1.apply(string, leftIndex, rightIndex + length, status); in padAndApply()
86 length += mod2.apply(string, leftIndex, rightIndex + length, status); in padAndApply()
90 length += addPaddingHelper(paddingCp, requiredPadding, string, rightIndex + length, status); in padAndApply()
Dcollationcompare.cpp115 int32_t rightIndex = 0; in compareUpToQuaternary() local
124 rightSecondary = ((uint32_t)right.getCE(rightIndex++)) >> 16; in compareUpToQuaternary()
155 int32_t rightIndex = rightLimit; in compareUpToQuaternary() local
163 while(rightSecondary == 0 && rightIndex > rightStart) { in compareUpToQuaternary()
164 rightSecondary = ((uint32_t)right.getCE(--rightIndex)) >> 16; in compareUpToQuaternary()
188 int32_t rightIndex = 0; in compareUpToQuaternary() local
206 ce = right.getCE(rightIndex++); in compareUpToQuaternary()
232 rightCase = (uint32_t)right.getCE(rightIndex++); in compareUpToQuaternary()
255 int32_t rightIndex = 0; in compareUpToQuaternary() local
269 rightLower32 = (uint32_t)right.getCE(rightIndex++); in compareUpToQuaternary()
[all …]
Dnumber_modifiers.cpp72 int32_t ConstantAffixModifier::apply(FormattedStringBuilder &output, int leftIndex, int rightIndex, in apply() argument
75 int length = output.insert(rightIndex, fSuffix, fField, status); in apply()
157 int32_t SimpleModifier::apply(FormattedStringBuilder &output, int leftIndex, int rightIndex, in apply() argument
159 return formatAsPrefixSuffix(output, leftIndex, rightIndex, status); in apply()
287 …_t ConstantMultiFieldModifier::apply(FormattedStringBuilder &output, int leftIndex, int rightIndex, in apply() argument
293 rightIndex + length, in apply()
297 length += output.insert(rightIndex + length, fSuffix, status); in apply()
377 …urrencySpacingEnabledModifier::apply(FormattedStringBuilder &output, int leftIndex, int rightIndex, in apply() argument
381 if (rightIndex - leftIndex > 0 && !fAfterPrefixUnicodeSet.isBogus() && in apply()
390 if (rightIndex - leftIndex > 0 && !fBeforeSuffixUnicodeSet.isBogus() && in apply()
[all …]
Dnumber_modifiers.h31 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
67 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
160 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
197 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
237 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex, in apply() argument
241 (void)rightIndex; in apply()
Dnumber_scientific.cpp39 …cientificModifier::apply(FormattedStringBuilder &output, int32_t /*leftIndex*/, int32_t rightIndex, in apply() argument
42 int i = rightIndex; in apply()
76 return i - rightIndex; in apply()
Dnumber_patternmodifier.cpp184 …utablePatternModifier::apply(FormattedStringBuilder& output, int32_t leftIndex, int32_t rightIndex, in apply() argument
190 int32_t suffixLen = nonConstThis->insertSuffix(output, rightIndex + prefixLen, status); in apply()
196 rightIndex + prefixLen, in apply()
207 rightIndex + overwriteLen + prefixLen, in apply()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationCompare.java101 int rightIndex = 0; in compareUpToQuaternary() local
110 rightSecondary = ((int) right.getCE(rightIndex++)) >>> 16; in compareUpToQuaternary()
141 int rightIndex = rightLimit; in compareUpToQuaternary() local
149 while (rightSecondary == 0 && rightIndex > rightStart) { in compareUpToQuaternary()
150 rightSecondary = ((int) right.getCE(--rightIndex)) >>> 16; in compareUpToQuaternary()
178 int rightIndex = 0; in compareUpToQuaternary() local
196 ce = right.getCE(rightIndex++); in compareUpToQuaternary()
222 rightCase = (int) right.getCE(rightIndex++); in compareUpToQuaternary()
249 int rightIndex = 0; in compareUpToQuaternary() local
262 rightLower32 = (int) right.getCE(rightIndex++); in compareUpToQuaternary()
[all …]
DCollationFastLatin.java296 int leftIndex = startIndex, rightIndex = startIndex; in compareUTF16() local
342 if(rightIndex == right.length()) { in compareUTF16()
346 int c = right.charAt(rightIndex++); in compareUTF16()
366 long pairAndInc = nextPair(table, c, rightPair, right, rightIndex); in compareUTF16()
368 ++rightIndex; in compareUTF16()
399 leftIndex = rightIndex = startIndex; in compareUTF16()
432 if(rightIndex == right.length()) { in compareUTF16()
436 int c = right.charAt(rightIndex++); in compareUTF16()
451 long pairAndInc = nextPair(table, c, rightPair, right, rightIndex); in compareUTF16()
453 ++rightIndex; in compareUTF16()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationCompare.java105 int rightIndex = 0; in compareUpToQuaternary() local
114 rightSecondary = ((int) right.getCE(rightIndex++)) >>> 16; in compareUpToQuaternary()
145 int rightIndex = rightLimit; in compareUpToQuaternary() local
153 while (rightSecondary == 0 && rightIndex > rightStart) { in compareUpToQuaternary()
154 rightSecondary = ((int) right.getCE(--rightIndex)) >>> 16; in compareUpToQuaternary()
182 int rightIndex = 0; in compareUpToQuaternary() local
200 ce = right.getCE(rightIndex++); in compareUpToQuaternary()
226 rightCase = (int) right.getCE(rightIndex++); in compareUpToQuaternary()
253 int rightIndex = 0; in compareUpToQuaternary() local
266 rightLower32 = (int) right.getCE(rightIndex++); in compareUpToQuaternary()
[all …]
DCollationFastLatin.java300 int leftIndex = startIndex, rightIndex = startIndex; in compareUTF16() local
346 if(rightIndex == right.length()) { in compareUTF16()
350 int c = right.charAt(rightIndex++); in compareUTF16()
370 long pairAndInc = nextPair(table, c, rightPair, right, rightIndex); in compareUTF16()
372 ++rightIndex; in compareUTF16()
403 leftIndex = rightIndex = startIndex; in compareUTF16()
436 if(rightIndex == right.length()) { in compareUTF16()
440 int c = right.charAt(rightIndex++); in compareUTF16()
455 long pairAndInc = nextPair(table, c, rightPair, right, rightIndex); in compareUTF16()
457 ++rightIndex; in compareUTF16()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DPadder.java86 int rightIndex) { in padAndApply() argument
89 … assert leftIndex == 0 && rightIndex == string.length(); // fix the previous line to remove this in padAndApply()
95 length += mod1.apply(string, leftIndex, rightIndex); in padAndApply()
96 length += mod2.apply(string, leftIndex, rightIndex + length); in padAndApply()
103 length += addPaddingHelper(paddingString, requiredPadding, string, rightIndex + length); in padAndApply()
105 length += mod1.apply(string, leftIndex, rightIndex + length); in padAndApply()
106 length += mod2.apply(string, leftIndex, rightIndex + length); in padAndApply()
110 length += addPaddingHelper(paddingString, requiredPadding, string, rightIndex + length); in padAndApply()
DCurrencySpacingEnabledModifier.java75 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
78 if (rightIndex - leftIndex > 0 in apply()
84 if (rightIndex - leftIndex > 0 in apply()
86 && beforeSuffixUnicodeSet.contains(output.codePointBefore(rightIndex))) { in apply()
88 length += output.insert(rightIndex + length, beforeSuffixInsert, null); in apply()
92 length += super.apply(output, leftIndex, rightIndex + length); in apply()
DConstantMultiFieldModifier.java53 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
56 length += output.splice(leftIndex + length, rightIndex + length, "", 0, 0, null); in apply()
58 length += output.insert(rightIndex + length, suffixChars, suffixFields); in apply()
DConstantAffixModifier.java57 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
59 int length = output.insert(rightIndex, suffix, field); in apply()
DMutablePatternModifier.java291 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
293 int suffixLen = insertSuffix(output, rightIndex + prefixLen); in apply()
297 … overwriteLen = output.splice(leftIndex + prefixLen, rightIndex + prefixLen, "", 0, 0, null); in apply()
302 rightIndex + prefixLen + overwriteLen, in apply()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DPadder.java93 int rightIndex) { in padAndApply() argument
96 … assert leftIndex == 0 && rightIndex == string.length(); // fix the previous line to remove this in padAndApply()
102 length += mod1.apply(string, leftIndex, rightIndex); in padAndApply()
103 length += mod2.apply(string, leftIndex, rightIndex + length); in padAndApply()
110 length += addPaddingHelper(paddingString, requiredPadding, string, rightIndex + length); in padAndApply()
112 length += mod1.apply(string, leftIndex, rightIndex + length); in padAndApply()
113 length += mod2.apply(string, leftIndex, rightIndex + length); in padAndApply()
117 length += addPaddingHelper(paddingString, requiredPadding, string, rightIndex + length); in padAndApply()
DCurrencySpacingEnabledModifier.java77 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
80 if (rightIndex - leftIndex > 0 in apply()
86 if (rightIndex - leftIndex > 0 in apply()
88 && beforeSuffixUnicodeSet.contains(output.codePointBefore(rightIndex))) { in apply()
90 length += output.insert(rightIndex + length, beforeSuffixInsert, null); in apply()
94 length += super.apply(output, leftIndex, rightIndex + length); in apply()
DConstantMultiFieldModifier.java55 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
58 length += output.splice(leftIndex + length, rightIndex + length, "", 0, 0, null); in apply()
60 length += output.insert(rightIndex + length, suffixChars, suffixFields); in apply()
DConstantAffixModifier.java59 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
61 int length = output.insert(rightIndex, suffix, field); in apply()
DMutablePatternModifier.java296 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
298 int suffixLen = insertSuffix(output, rightIndex + prefixLen); in apply()
302 … overwriteLen = output.splice(leftIndex + prefixLen, rightIndex + prefixLen, "", 0, 0, null); in apply()
307 rightIndex + prefixLen + overwriteLen, in apply()
DSimpleModifier.java44 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
45 …return SimpleFormatterImpl.formatPrefixSuffix(compiledPattern, field, leftIndex, rightIndex, outpu… in apply()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DScientificNotation.java265 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
266 return doApply(exponent, output, rightIndex); in apply()
269 private int doApply(int exponent, FormattedStringBuilder output, int rightIndex) { in doApply() argument
271 int i = rightIndex; in doApply()
286 return i - rightIndex; in doApply()
300 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
301 return handler.doApply(exponent, output, rightIndex); in apply()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DScientificNotation.java263 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
264 return doApply(exponent, output, rightIndex); in apply()
267 private int doApply(int exponent, FormattedStringBuilder output, int rightIndex) { in doApply() argument
269 int i = rightIndex; in doApply()
284 return i - rightIndex; in doApply()
298 public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
299 return handler.doApply(exponent, output, rightIndex); in apply()
/external/icu/libicu/cts_headers/
Dnumber_modifiers.h31 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
67 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
160 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
197 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
237 int32_t apply(FormattedStringBuilder &output, int32_t leftIndex, int32_t rightIndex, in apply() argument
241 (void)rightIndex; in apply()

12