Home
last modified time | relevance | path

Searched refs:newDelta (Results 1 – 5 of 5) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DEdits.java154 int newDelta = newLength - oldLength; in addReplace() local
155 if (newDelta != 0) { in addReplace()
156 if ((newDelta > 0 && delta >= 0 && newDelta > (Integer.MAX_VALUE - delta)) || in addReplace()
157 (newDelta < 0 && delta < 0 && newDelta < (Integer.MIN_VALUE - delta))) { in addReplace()
161 delta += newDelta; in addReplace()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DEdits.java148 int newDelta = newLength - oldLength; in addReplace() local
149 if (newDelta != 0) { in addReplace()
150 if ((newDelta > 0 && delta >= 0 && newDelta > (Integer.MAX_VALUE - delta)) || in addReplace()
151 (newDelta < 0 && delta < 0 && newDelta < (Integer.MIN_VALUE - delta))) { in addReplace()
155 delta += newDelta; in addReplace()
/external/icu/icu4c/source/common/
Dedits.cpp151 int32_t newDelta = newLength - oldLength; in addReplace() local
152 if (newDelta != 0) { in addReplace()
153 if ((newDelta > 0 && delta >= 0 && newDelta > (INT32_MAX - delta)) || in addReplace()
154 (newDelta < 0 && delta < 0 && newDelta < (INT32_MIN - delta))) { in addReplace()
159 delta += newDelta; in addReplace()
Ducnvisci.cpp907 uint16_t newDelta=0; in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC() local
917 newDelta=converterData->currentDeltaFromUnicode; in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
918 range = (uint16_t)(newDelta/DELTA); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
983 newDelta =(uint16_t)(range*DELTA); in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
986 … if (newDelta!= converterData->currentDeltaFromUnicode || converterData->isFirstBuffer) { in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
987 converterData->currentDeltaFromUnicode = newDelta; in UConverter_fromUnicode_ISCII_OFFSETS_LOGIC()
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetISCII.java1212 short newDelta = 0; in encodeLoop() local
1220 newDelta = converterData.currentDeltaFromUnicode; in encodeLoop()
1221 range = (short)(newDelta / UniLang.DELTA); in encodeLoop()
1292 newDelta = (short)(range * UniLang.DELTA); in encodeLoop()
1295 … if (newDelta != converterData.currentDeltaFromUnicode || converterData.isFirstBuffer) { in encodeLoop()
1296 converterData.currentDeltaFromUnicode = newDelta; in encodeLoop()