Home
last modified time | relevance | path

Searched refs:leftIndex (Results 1 – 25 of 32) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Dcollationfastlatin.cpp123 int32_t leftIndex = 0, rightIndex = 0; in compareUTF16() local
133 if(leftIndex == leftLength) { in compareUTF16()
137 UChar32 c = left[leftIndex++]; in compareUTF16()
157 leftPair = nextPair(table, c, leftPair, left, NULL, leftIndex, leftLength); in compareUTF16()
216 leftIndex = rightIndex = 0; in compareUTF16()
220 if(leftIndex == leftLength) { in compareUTF16()
224 UChar32 c = left[leftIndex++]; in compareUTF16()
239 leftPair = nextPair(table, c, leftPair, left, NULL, leftIndex, leftLength); in compareUTF16()
292 leftIndex = rightIndex = 0; in compareUTF16()
296 if(leftIndex == leftLength) { in compareUTF16()
[all …]
Dcollationcompare.cpp114 int32_t leftIndex = 0; in compareUpToQuaternary() local
119 leftSecondary = ((uint32_t)left.getCE(leftIndex++)) >> 16; in compareUpToQuaternary()
154 int32_t leftIndex = leftLimit; in compareUpToQuaternary() local
158 while(leftSecondary == 0 && leftIndex > leftStart) { in compareUpToQuaternary()
159 leftSecondary = ((uint32_t)left.getCE(--leftIndex)) >> 16; in compareUpToQuaternary()
187 int32_t leftIndex = 0; in compareUpToQuaternary() local
199 ce = left.getCE(leftIndex++); in compareUpToQuaternary()
226 leftCase = (uint32_t)left.getCE(leftIndex++); in compareUpToQuaternary()
254 int32_t leftIndex = 0; in compareUpToQuaternary() local
260 leftLower32 = (uint32_t)left.getCE(leftIndex++); in compareUpToQuaternary()
[all …]
Dnumber_padding.cpp63 NumberStringBuilder &string, int32_t leftIndex, int32_t rightIndex, in padAndApply() argument
67 U_ASSERT(leftIndex == 0 && in padAndApply()
73 length += mod1.apply(string, leftIndex, rightIndex, status); in padAndApply()
74 length += mod2.apply(string, leftIndex, rightIndex + length, status); in padAndApply()
81 length += addPaddingHelper(paddingCp, requiredPadding, string, leftIndex, 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()
88 length += addPaddingHelper(paddingCp, requiredPadding, string, leftIndex, status); in padAndApply()
Dnumber_modifiers.cpp72 int32_t ConstantAffixModifier::apply(NumberStringBuilder &output, int leftIndex, int rightIndex, in apply() argument
76 length += output.insert(leftIndex, fPrefix, 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 int32_t ConstantMultiFieldModifier::apply(NumberStringBuilder &output, int leftIndex, int rightInde… in apply() argument
291 int32_t length = output.insert(leftIndex, fPrefix, status); in apply()
294 leftIndex + length, in apply()
379 int32_t CurrencySpacingEnabledModifier::apply(NumberStringBuilder &output, int leftIndex, int right… in apply() argument
383 if (rightIndex - leftIndex > 0 && !fAfterPrefixUnicodeSet.isBogus() && in apply()
384 fAfterPrefixUnicodeSet.contains(output.codePointAt(leftIndex))) { 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
240 (void)leftIndex; in apply()
Dnumber_patternmodifier.cpp176 int32_t MutablePatternModifier::apply(NumberStringBuilder& output, int32_t leftIndex, int32_t right… in apply() argument
181 int32_t prefixLen = nonConstThis->insertPrefix(output, leftIndex, status); in apply()
187 leftIndex + prefixLen, in apply()
197 leftIndex, in apply()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationCompare.java100 int leftIndex = 0; in compareUpToQuaternary() local
105 leftSecondary = ((int) left.getCE(leftIndex++)) >>> 16; in compareUpToQuaternary()
140 int leftIndex = leftLimit; in compareUpToQuaternary() local
144 while (leftSecondary == 0 && leftIndex > leftStart) { in compareUpToQuaternary()
145 leftSecondary = ((int) left.getCE(--leftIndex)) >>> 16; in compareUpToQuaternary()
177 int leftIndex = 0; in compareUpToQuaternary() local
189 ce = left.getCE(leftIndex++); in compareUpToQuaternary()
216 leftCase = (int) left.getCE(leftIndex++); in compareUpToQuaternary()
248 int leftIndex = 0; in compareUpToQuaternary() local
254 leftLower32 = (int) left.getCE(leftIndex++); in compareUpToQuaternary()
[all …]
DCollationFastLatin.java296 int leftIndex = startIndex, rightIndex = startIndex; in compareUTF16() local
306 if(leftIndex == left.length()) { in compareUTF16()
310 int c = left.charAt(leftIndex++); in compareUTF16()
330 long pairAndInc = nextPair(table, c, leftPair, left, leftIndex); in compareUTF16()
332 ++leftIndex; in compareUTF16()
399 leftIndex = rightIndex = startIndex; in compareUTF16()
403 if(leftIndex == left.length()) { in compareUTF16()
407 int c = left.charAt(leftIndex++); in compareUTF16()
422 long pairAndInc = nextPair(table, c, leftPair, left, leftIndex); in compareUTF16()
424 ++leftIndex; in compareUTF16()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DCollationCompare.java104 int leftIndex = 0; in compareUpToQuaternary() local
109 leftSecondary = ((int) left.getCE(leftIndex++)) >>> 16; in compareUpToQuaternary()
144 int leftIndex = leftLimit; in compareUpToQuaternary() local
148 while (leftSecondary == 0 && leftIndex > leftStart) { in compareUpToQuaternary()
149 leftSecondary = ((int) left.getCE(--leftIndex)) >>> 16; in compareUpToQuaternary()
181 int leftIndex = 0; in compareUpToQuaternary() local
193 ce = left.getCE(leftIndex++); in compareUpToQuaternary()
220 leftCase = (int) left.getCE(leftIndex++); in compareUpToQuaternary()
252 int leftIndex = 0; in compareUpToQuaternary() local
258 leftLower32 = (int) left.getCE(leftIndex++); in compareUpToQuaternary()
[all …]
DCollationFastLatin.java300 int leftIndex = startIndex, rightIndex = startIndex; in compareUTF16() local
310 if(leftIndex == left.length()) { in compareUTF16()
314 int c = left.charAt(leftIndex++); in compareUTF16()
334 long pairAndInc = nextPair(table, c, leftPair, left, leftIndex); in compareUTF16()
336 ++leftIndex; in compareUTF16()
403 leftIndex = rightIndex = startIndex; in compareUTF16()
407 if(leftIndex == left.length()) { in compareUTF16()
411 int c = left.charAt(leftIndex++); in compareUTF16()
426 long pairAndInc = nextPair(table, c, leftPair, left, leftIndex); in compareUTF16()
428 ++leftIndex; in compareUTF16()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DPadder.java90 int leftIndex, 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()
106 length += addPaddingHelper(paddingString, requiredPadding, string, leftIndex); in padAndApply()
110 length += mod1.apply(string, leftIndex, rightIndex + length); in padAndApply()
111 length += mod2.apply(string, leftIndex, rightIndex + length); in padAndApply()
113 length += addPaddingHelper(paddingString, requiredPadding, string, leftIndex); in padAndApply()
DCurrencySpacingEnabledModifier.java76 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
79 if (rightIndex - leftIndex > 0 in apply()
81 && afterPrefixUnicodeSet.contains(output.codePointAt(leftIndex))) { in apply()
83 length += output.insert(leftIndex, afterPrefixInsert, null); in apply()
85 if (rightIndex - leftIndex > 0 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
55 int length = output.insert(leftIndex, prefixChars, prefixFields); in apply()
57 length += output.splice(leftIndex + length, rightIndex + length, "", 0, 0, null); in apply()
DMutablePatternModifier.java288 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
289 int prefixLen = insertPrefix(output, leftIndex); in apply()
294 … overwriteLen = output.splice(leftIndex + prefixLen, rightIndex + prefixLen, "", 0, 0, null); in apply()
297 leftIndex, in apply()
DConstantAffixModifier.java57 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
60 length += output.insert(leftIndex, prefix, 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()
DModifier.java33 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex); in apply() argument
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DPadder.java83 int leftIndex, 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()
99 length += addPaddingHelper(paddingString, requiredPadding, string, leftIndex); in padAndApply()
103 length += mod1.apply(string, leftIndex, rightIndex + length); in padAndApply()
104 length += mod2.apply(string, leftIndex, rightIndex + length); in padAndApply()
106 length += addPaddingHelper(paddingString, requiredPadding, string, leftIndex); in padAndApply()
DCurrencySpacingEnabledModifier.java74 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
77 if (rightIndex - leftIndex > 0 in apply()
79 && afterPrefixUnicodeSet.contains(output.codePointAt(leftIndex))) { in apply()
81 length += output.insert(leftIndex, afterPrefixInsert, null); in apply()
83 if (rightIndex - leftIndex > 0 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
53 int length = output.insert(leftIndex, prefixChars, prefixFields); in apply()
55 length += output.splice(leftIndex + length, rightIndex + length, "", 0, 0, null); in apply()
DMutablePatternModifier.java283 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
284 int prefixLen = insertPrefix(output, leftIndex); in apply()
289 … overwriteLen = output.splice(leftIndex + prefixLen, rightIndex + prefixLen, "", 0, 0, null); in apply()
292 leftIndex, in apply()
DConstantAffixModifier.java55 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
58 length += output.insert(leftIndex, prefix, 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()
DModifier.java31 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex); in apply() argument
/external/icu/android_icu4j/src/main/java/android/icu/number/
DScientificNotation.java256 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument
291 public int apply(NumberStringBuilder output, int leftIndex, int rightIndex) { in apply() argument

12