Home
last modified time | relevance | path

Searched refs:rightIndex (Results 1 – 25 of 34) 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 …]
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_padding.cpp63 NumberStringBuilder &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()
Dnumber_modifiers.cpp72 int32_t ConstantAffixModifier::apply(NumberStringBuilder &output, int leftIndex, int rightIndex, in apply() argument
75 int length = output.insert(rightIndex, fSuffix, fField, status); in apply()
158 int32_t SimpleModifier::apply(NumberStringBuilder &output, int leftIndex, int rightIndex, in apply() argument
160 return formatAsPrefixSuffix(output, leftIndex, rightIndex, fField, status); in apply()
289 …t32_t ConstantMultiFieldModifier::apply(NumberStringBuilder &output, int leftIndex, int rightIndex, in apply() argument
295 rightIndex + length, in apply()
299 length += output.insert(rightIndex + length, fSuffix, status); in apply()
379 …t CurrencySpacingEnabledModifier::apply(NumberStringBuilder &output, int leftIndex, int rightIndex, in apply() argument
383 if (rightIndex - leftIndex > 0 && !fAfterPrefixUnicodeSet.isBogus() && in apply()
388 if (rightIndex - leftIndex > 0 && !fBeforeSuffixUnicodeSet.isBogus() && in apply()
[all …]
Dnumber_modifiers.h31 int32_t apply(NumberStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
67 int32_t apply(NumberStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
160 int32_t apply(NumberStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
197 int32_t apply(NumberStringBuilder &output, int32_t leftIndex, int32_t rightIndex,
237 int32_t apply(NumberStringBuilder &output, int32_t leftIndex, int32_t rightIndex, in apply() argument
241 (void)rightIndex; in apply()
Dnumber_scientific.cpp39 …t ScientificModifier::apply(NumberStringBuilder &output, int32_t /*leftIndex*/, int32_t rightIndex, in apply() argument
42 int i = rightIndex; in apply()
76 return i - rightIndex; in apply()
Dnumber_patternmodifier.cpp176 …t MutablePatternModifier::apply(NumberStringBuilder& output, int32_t leftIndex, int32_t rightIndex, in apply() argument
182 int32_t suffixLen = nonConstThis->insertSuffix(output, rightIndex + prefixLen, status); in apply()
188 rightIndex + prefixLen, in apply()
199 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/android_icu4j/src/main/java/android/icu/impl/number/
DPadder.java91 int rightIndex) { in padAndApply() argument
94 … assert leftIndex == 0 && rightIndex == string.length(); // fix the previous line to remove this in padAndApply()
100 length += mod1.apply(string, leftIndex, rightIndex); in padAndApply()
101 length += mod2.apply(string, leftIndex, rightIndex + length); in padAndApply()
108 length += addPaddingHelper(paddingString, requiredPadding, string, rightIndex + length); in padAndApply()
110 length += mod1.apply(string, leftIndex, rightIndex + length); in padAndApply()
111 length += mod2.apply(string, leftIndex, rightIndex + length); in padAndApply()
115 length += addPaddingHelper(paddingString, requiredPadding, string, rightIndex + length); in padAndApply()
DCurrencySpacingEnabledModifier.java76 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
79 if (rightIndex - leftIndex > 0 in apply()
85 if (rightIndex - leftIndex > 0 in apply()
87 && beforeSuffixUnicodeSet.contains(output.codePointBefore(rightIndex))) { in apply()
89 length += output.insert(rightIndex + length, beforeSuffixInsert, null); in apply()
93 length += super.apply(output, leftIndex, rightIndex + length); in apply()
DConstantMultiFieldModifier.java54 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
57 length += output.splice(leftIndex + length, rightIndex + length, "", 0, 0, null); in apply()
59 length += output.insert(rightIndex + length, suffixChars, suffixFields); in apply()
DMutablePatternModifier.java288 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
290 int suffixLen = insertSuffix(output, rightIndex + prefixLen); in apply()
294 … overwriteLen = output.splice(leftIndex + prefixLen, rightIndex + prefixLen, "", 0, 0, null); in apply()
299 rightIndex + prefixLen + overwriteLen, in apply()
DConstantAffixModifier.java57 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
59 int length = output.insert(rightIndex, suffix, field); in apply()
DSimpleModifier.java69 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
70 return formatAsPrefixSuffix(output, leftIndex, rightIndex, field); in apply()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DPadder.java84 int rightIndex) { in padAndApply() argument
87 … assert leftIndex == 0 && rightIndex == string.length(); // fix the previous line to remove this in padAndApply()
93 length += mod1.apply(string, leftIndex, rightIndex); in padAndApply()
94 length += mod2.apply(string, leftIndex, rightIndex + length); in padAndApply()
101 length += addPaddingHelper(paddingString, requiredPadding, string, rightIndex + length); in padAndApply()
103 length += mod1.apply(string, leftIndex, rightIndex + length); in padAndApply()
104 length += mod2.apply(string, leftIndex, rightIndex + length); in padAndApply()
108 length += addPaddingHelper(paddingString, requiredPadding, string, rightIndex + length); in padAndApply()
DCurrencySpacingEnabledModifier.java74 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
77 if (rightIndex - leftIndex > 0 in apply()
83 if (rightIndex - leftIndex > 0 in apply()
85 && beforeSuffixUnicodeSet.contains(output.codePointBefore(rightIndex))) { in apply()
87 length += output.insert(rightIndex + length, beforeSuffixInsert, null); in apply()
91 length += super.apply(output, leftIndex, rightIndex + length); in apply()
DConstantMultiFieldModifier.java52 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
55 length += output.splice(leftIndex + length, rightIndex + length, "", 0, 0, null); in apply()
57 length += output.insert(rightIndex + length, suffixChars, suffixFields); in apply()
DMutablePatternModifier.java283 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
285 int suffixLen = insertSuffix(output, rightIndex + prefixLen); in apply()
289 … overwriteLen = output.splice(leftIndex + prefixLen, rightIndex + prefixLen, "", 0, 0, null); in apply()
294 rightIndex + prefixLen + overwriteLen, in apply()
DConstantAffixModifier.java55 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
57 int length = output.insert(rightIndex, suffix, field); in apply()
DSimpleModifier.java67 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
68 return formatAsPrefixSuffix(output, leftIndex, rightIndex, field); in apply()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DScientificNotation.java256 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
257 return doApply(exponent, output, rightIndex); in apply()
260 private int doApply(int exponent, NumberStringBuilder output, int rightIndex) { in doApply() argument
262 int i = rightIndex; in doApply()
277 return i - rightIndex; in doApply()
291 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
292 return handler.doApply(exponent, output, rightIndex); in apply()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DScientificNotation.java258 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
259 return doApply(exponent, output, rightIndex); in apply()
262 private int doApply(int exponent, NumberStringBuilder output, int rightIndex) { in doApply() argument
264 int i = rightIndex; in doApply()
279 return i - rightIndex; in doApply()
293 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
294 return handler.doApply(exponent, output, rightIndex); in apply()

12