/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | BytesTrie.java | 356 long uniqueValue=findUniqueValue(bytes_, pos+remainingMatchLength_+1, 0); in getUniqueValue() local 358 return (uniqueValue<<31)>>31; in getUniqueValue() 857 long uniqueValue) { 860 … uniqueValue=findUniqueValueFromBranch(bytes, jumpByDelta(bytes, pos), length>>1, uniqueValue); 861 if(uniqueValue==0) { 875 if(uniqueValue!=0) { 876 if(value!=(int)(uniqueValue>>1)) { 880 uniqueValue=((long)value<<1)|1; 883 uniqueValue=findUniqueValue(bytes, pos+value, uniqueValue); 884 if(uniqueValue==0) { [all …]
|
D | CharsTrie.java | 325 long uniqueValue=findUniqueValue(chars_, pos+remainingMatchLength_+1, 0); in getUniqueValue() local 327 return (uniqueValue<<31)>>31; in getUniqueValue() 803 long uniqueValue) { in findUniqueValueFromBranch() argument 806 … uniqueValue=findUniqueValueFromBranch(chars, jumpByDelta(chars, pos), length>>1, uniqueValue); in findUniqueValueFromBranch() 807 if(uniqueValue==0) { in findUniqueValueFromBranch() 822 if(uniqueValue!=0) { in findUniqueValueFromBranch() 823 if(value!=(int)(uniqueValue>>1)) { in findUniqueValueFromBranch() 827 uniqueValue=((long)value<<1)|1; in findUniqueValueFromBranch() 830 uniqueValue=findUniqueValue(chars, pos+value, uniqueValue); in findUniqueValueFromBranch() 831 if(uniqueValue==0) { in findUniqueValueFromBranch() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | BytesTrie.java | 376 long uniqueValue=findUniqueValue(bytes_, pos+remainingMatchLength_+1, 0); in getUniqueValue() local 378 return (uniqueValue<<31)>>31; in getUniqueValue() 892 long uniqueValue) { 895 … uniqueValue=findUniqueValueFromBranch(bytes, jumpByDelta(bytes, pos), length>>1, uniqueValue); 896 if(uniqueValue==0) { 910 if(uniqueValue!=0) { 911 if(value!=(int)(uniqueValue>>1)) { 915 uniqueValue=((long)value<<1)|1; 918 uniqueValue=findUniqueValue(bytes, pos+value, uniqueValue); 919 if(uniqueValue==0) { [all …]
|
D | CharsTrie.java | 339 long uniqueValue=findUniqueValue(chars_, pos+remainingMatchLength_+1, 0); in getUniqueValue() local 341 return (uniqueValue<<31)>>31; in getUniqueValue() 829 long uniqueValue) { in findUniqueValueFromBranch() argument 832 … uniqueValue=findUniqueValueFromBranch(chars, jumpByDelta(chars, pos), length>>1, uniqueValue); in findUniqueValueFromBranch() 833 if(uniqueValue==0) { in findUniqueValueFromBranch() 848 if(uniqueValue!=0) { in findUniqueValueFromBranch() 849 if(value!=(int)(uniqueValue>>1)) { in findUniqueValueFromBranch() 853 uniqueValue=((long)value<<1)|1; in findUniqueValueFromBranch() 856 uniqueValue=findUniqueValue(chars, pos+value, uniqueValue); in findUniqueValueFromBranch() 857 if(uniqueValue==0) { in findUniqueValueFromBranch() [all …]
|
/external/icu/icu4c/source/common/ |
D | ucharstrie.cpp | 286 UBool haveUniqueValue, int32_t &uniqueValue) { in findUniqueValueFromBranch() argument 289 … if(NULL==findUniqueValueFromBranch(jumpByDelta(pos), length>>1, haveUniqueValue, uniqueValue)) { in findUniqueValueFromBranch() 305 if(value!=uniqueValue) { in findUniqueValueFromBranch() 309 uniqueValue=value; in findUniqueValueFromBranch() 313 if(!findUniqueValue(pos+value, haveUniqueValue, uniqueValue)) { in findUniqueValueFromBranch() 323 UCharsTrie::findUniqueValue(const UChar *pos, UBool haveUniqueValue, int32_t &uniqueValue) { in findUniqueValue() argument 330 pos=findUniqueValueFromBranch(pos, node+1, haveUniqueValue, uniqueValue); in findUniqueValue() 349 if(value!=uniqueValue) { in findUniqueValue() 353 uniqueValue=value; in findUniqueValue()
|
D | bytestrie.cpp | 317 UBool haveUniqueValue, int32_t &uniqueValue) { in findUniqueValueFromBranch() argument 320 … if(NULL==findUniqueValueFromBranch(jumpByDelta(pos), length>>1, haveUniqueValue, uniqueValue)) { in findUniqueValueFromBranch() 335 if(value!=uniqueValue) { in findUniqueValueFromBranch() 339 uniqueValue=value; in findUniqueValueFromBranch() 343 if(!findUniqueValue(pos+value, haveUniqueValue, uniqueValue)) { in findUniqueValueFromBranch() 353 BytesTrie::findUniqueValue(const uint8_t *pos, UBool haveUniqueValue, int32_t &uniqueValue) { in findUniqueValue() argument 360 pos=findUniqueValueFromBranch(pos, node+1, haveUniqueValue, uniqueValue); in findUniqueValue() 372 if(value!=uniqueValue) { in findUniqueValue() 376 uniqueValue=value; in findUniqueValue()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | PluralSamples.java | 245 …rdStatus getStatus(String keyword, int offset, Set<Double> explicits, Output<Double> uniqueValue) { in getStatus() argument 246 if (uniqueValue != null) { in getStatus() 247 uniqueValue.value = null; in getStatus() 267 if (uniqueValue != null) { in getStatus() 268 uniqueValue.value = values.iterator().next(); in getStatus() 285 if (uniqueValue != null && subtractedSet.size() == 1) { in getStatus() 286 uniqueValue.value = subtractedSet.iterator().next(); in getStatus()
|
D | PluralRules.java | 2270 Output<Double> uniqueValue) { in getKeywordStatus() argument 2271 return getKeywordStatus(keyword, offset, explicits, uniqueValue, SampleType.INTEGER); in getKeywordStatus() 2293 Output<Double> uniqueValue, SampleType sampleType) { in getKeywordStatus() argument 2294 if (uniqueValue != null) { in getKeywordStatus() 2295 uniqueValue.value = null; in getKeywordStatus() 2318 if (uniqueValue != null) { in getKeywordStatus() 2319 uniqueValue.value = values.iterator().next(); in getKeywordStatus() 2336 if (uniqueValue != null && subtractedSet.size() == 1) { in getKeywordStatus() 2337 uniqueValue.value = subtractedSet.iterator().next(); in getKeywordStatus()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | PluralSamples.java | 247 …rdStatus getStatus(String keyword, int offset, Set<Double> explicits, Output<Double> uniqueValue) { in getStatus() argument 248 if (uniqueValue != null) { in getStatus() 249 uniqueValue.value = null; in getStatus() 269 if (uniqueValue != null) { in getStatus() 270 uniqueValue.value = values.iterator().next(); in getStatus() 287 if (uniqueValue != null && subtractedSet.size() == 1) { in getStatus() 288 uniqueValue.value = subtractedSet.iterator().next(); in getStatus()
|
D | PluralRules.java | 2303 Output<Double> uniqueValue) { in getKeywordStatus() argument 2304 return getKeywordStatus(keyword, offset, explicits, uniqueValue, SampleType.INTEGER); in getKeywordStatus() 2327 Output<Double> uniqueValue, SampleType sampleType) { in getKeywordStatus() argument 2328 if (uniqueValue != null) { in getKeywordStatus() 2329 uniqueValue.value = null; in getKeywordStatus() 2352 if (uniqueValue != null) { in getKeywordStatus() 2353 uniqueValue.value = values.iterator().next(); in getKeywordStatus() 2370 if (uniqueValue != null && subtractedSet.size() == 1) { in getKeywordStatus() 2371 uniqueValue.value = subtractedSet.iterator().next(); in getKeywordStatus()
|
/external/icu/icu4c/source/common/unicode/ |
D | bytestrie.h | 224 inline UBool hasUniqueValue(int32_t &uniqueValue) const { in hasUniqueValue() argument 227 return pos!=NULL && findUniqueValue(pos+remainingMatchLength_+1, FALSE, uniqueValue); in hasUniqueValue() 416 UBool haveUniqueValue, int32_t &uniqueValue); 419 static UBool findUniqueValue(const uint8_t *pos, UBool haveUniqueValue, int32_t &uniqueValue);
|
D | ucharstrie.h | 239 inline UBool hasUniqueValue(int32_t &uniqueValue) const { in hasUniqueValue() argument 242 return pos!=NULL && findUniqueValue(pos+remainingMatchLength_+1, FALSE, uniqueValue); in hasUniqueValue() 473 UBool haveUniqueValue, int32_t &uniqueValue); 476 static UBool findUniqueValue(const UChar *pos, UBool haveUniqueValue, int32_t &uniqueValue);
|
/external/icu/icu4c/source/test/intltest/ |
D | bytestrietest.cpp | 314 int32_t uniqueValue; in TestHasUniqueValue() local 315 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 322 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=1) { in TestHasUniqueValue() 327 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 334 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=6) { in TestHasUniqueValue() 340 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=8) { in TestHasUniqueValue()
|
D | ucharstrietest.cpp | 469 int32_t uniqueValue; in TestHasUniqueValue() local 470 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 477 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=1) { in TestHasUniqueValue() 482 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 489 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=6) { in TestHasUniqueValue() 495 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=8) { in TestHasUniqueValue()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | BytesTrieTest.java | 264 long uniqueValue; in Test40GetUniqueValue() local 265 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 272 if((uniqueValue=trie.getUniqueValue())!=((1<<1)|1)) { in Test40GetUniqueValue() 273 errln("not unique value 1 after \"jan\": instead "+uniqueValue); in Test40GetUniqueValue() 277 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 284 if((uniqueValue=trie.getUniqueValue())!=((6<<1)|1)) { in Test40GetUniqueValue() 290 if((uniqueValue=trie.getUniqueValue())!=((8<<1)|1)) { in Test40GetUniqueValue()
|
D | CharsTrieTest.java | 393 long uniqueValue; in Test40GetUniqueValue() local 394 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 401 if((uniqueValue=trie.getUniqueValue())!=((1<<1)|1)) { in Test40GetUniqueValue() 402 errln("not unique value 1 after \"jan\": instead "+uniqueValue); in Test40GetUniqueValue() 406 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 413 if((uniqueValue=trie.getUniqueValue())!=((6<<1)|1)) { in Test40GetUniqueValue() 419 if((uniqueValue=trie.getUniqueValue())!=((8<<1)|1)) { in Test40GetUniqueValue()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | BytesTrieTest.java | 263 long uniqueValue; in Test40GetUniqueValue() local 264 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 271 if((uniqueValue=trie.getUniqueValue())!=((1<<1)|1)) { in Test40GetUniqueValue() 272 errln("not unique value 1 after \"jan\": instead "+uniqueValue); in Test40GetUniqueValue() 276 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 283 if((uniqueValue=trie.getUniqueValue())!=((6<<1)|1)) { in Test40GetUniqueValue() 289 if((uniqueValue=trie.getUniqueValue())!=((8<<1)|1)) { in Test40GetUniqueValue()
|
D | CharsTrieTest.java | 392 long uniqueValue; in Test40GetUniqueValue() local 393 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 400 if((uniqueValue=trie.getUniqueValue())!=((1<<1)|1)) { in Test40GetUniqueValue() 401 errln("not unique value 1 after \"jan\": instead "+uniqueValue); in Test40GetUniqueValue() 405 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 412 if((uniqueValue=trie.getUniqueValue())!=((6<<1)|1)) { in Test40GetUniqueValue() 418 if((uniqueValue=trie.getUniqueValue())!=((8<<1)|1)) { in Test40GetUniqueValue()
|
/external/messageformat/java/com/ibm/icu/simple/ |
D | PluralRules.java | 2257 Output<Double> uniqueValue) { in getKeywordStatus() argument 2258 return getKeywordStatus(keyword, offset, explicits, uniqueValue, SampleType.INTEGER); in getKeywordStatus() 2279 Output<Double> uniqueValue, SampleType sampleType) { in getKeywordStatus() argument 2280 if (uniqueValue != null) { in getKeywordStatus() 2281 uniqueValue.value = null; in getKeywordStatus() 2304 if (uniqueValue != null) { in getKeywordStatus() 2305 uniqueValue.value = values.iterator().next(); in getKeywordStatus() 2322 if (uniqueValue != null && subtractedSet.size() == 1) { in getKeywordStatus() 2323 uniqueValue.value = subtractedSet.iterator().next(); in getKeywordStatus()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | PluralRulesTest.java | 828 Output<Double> uniqueValue = new Output<Double>(); 841 … KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue); 843 uniqueValue.value); 848 … status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue, SampleType.DECIMAL); 850 uniqueExpected, uniqueValue.value); 856 KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, null, uniqueValue); 858 assertNull("Invalid keyword " + keyword, uniqueValue.value);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRulesTest.java | 827 Output<Double> uniqueValue = new Output<Double>(); 840 … KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue); 842 uniqueValue.value); 847 … status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue, SampleType.DECIMAL); 849 uniqueExpected, uniqueValue.value); 855 KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, null, uniqueValue); 857 assertNull("Invalid keyword " + keyword, uniqueValue.value);
|