/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | BytesTrie.java | 358 long uniqueValue=findUniqueValue(bytes_, pos+remainingMatchLength_+1, 0); in getUniqueValue() local 360 return (uniqueValue<<31)>>31; in getUniqueValue() 861 long uniqueValue) { 864 … uniqueValue=findUniqueValueFromBranch(bytes, jumpByDelta(bytes, pos), length>>1, uniqueValue); 865 if(uniqueValue==0) { 879 if(uniqueValue!=0) { 880 if(value!=(int)(uniqueValue>>1)) { 884 uniqueValue=((long)value<<1)|1; 887 uniqueValue=findUniqueValue(bytes, pos+value, uniqueValue); 888 if(uniqueValue==0) { [all …]
|
D | CharsTrie.java | 326 long uniqueValue=findUniqueValue(chars_, pos+remainingMatchLength_+1, 0); in getUniqueValue() local 328 return (uniqueValue<<31)>>31; in getUniqueValue() 806 long uniqueValue) { in findUniqueValueFromBranch() argument 809 … uniqueValue=findUniqueValueFromBranch(chars, jumpByDelta(chars, pos), length>>1, uniqueValue); in findUniqueValueFromBranch() 810 if(uniqueValue==0) { in findUniqueValueFromBranch() 825 if(uniqueValue!=0) { in findUniqueValueFromBranch() 826 if(value!=(int)(uniqueValue>>1)) { in findUniqueValueFromBranch() 830 uniqueValue=((long)value<<1)|1; in findUniqueValueFromBranch() 833 uniqueValue=findUniqueValue(chars, pos+value, uniqueValue); in findUniqueValueFromBranch() 834 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 | 287 UBool haveUniqueValue, int32_t &uniqueValue) { in findUniqueValueFromBranch() argument 290 … if(NULL==findUniqueValueFromBranch(jumpByDelta(pos), length>>1, haveUniqueValue, uniqueValue)) { in findUniqueValueFromBranch() 306 if(value!=uniqueValue) { in findUniqueValueFromBranch() 310 uniqueValue=value; in findUniqueValueFromBranch() 314 if(!findUniqueValue(pos+value, haveUniqueValue, uniqueValue)) { in findUniqueValueFromBranch() 324 UCharsTrie::findUniqueValue(const UChar *pos, UBool haveUniqueValue, int32_t &uniqueValue) { in findUniqueValue() argument 331 pos=findUniqueValueFromBranch(pos, node+1, haveUniqueValue, uniqueValue); in findUniqueValue() 350 if(value!=uniqueValue) { in findUniqueValue() 354 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 | 2363 Output<Double> uniqueValue) { in getKeywordStatus() argument 2364 return getKeywordStatus(keyword, offset, explicits, uniqueValue, SampleType.INTEGER); in getKeywordStatus() 2386 Output<Double> uniqueValue, SampleType sampleType) { in getKeywordStatus() argument 2387 if (uniqueValue != null) { in getKeywordStatus() 2388 uniqueValue.value = null; in getKeywordStatus() 2411 if (uniqueValue != null) { in getKeywordStatus() 2412 uniqueValue.value = values.iterator().next(); in getKeywordStatus() 2429 if (uniqueValue != null && subtractedSet.size() == 1) { in getKeywordStatus() 2430 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 | 2416 Output<Double> uniqueValue) { in getKeywordStatus() argument 2417 return getKeywordStatus(keyword, offset, explicits, uniqueValue, SampleType.INTEGER); in getKeywordStatus() 2440 Output<Double> uniqueValue, SampleType sampleType) { in getKeywordStatus() argument 2441 if (uniqueValue != null) { in getKeywordStatus() 2442 uniqueValue.value = null; in getKeywordStatus() 2465 if (uniqueValue != null) { in getKeywordStatus() 2466 uniqueValue.value = values.iterator().next(); in getKeywordStatus() 2483 if (uniqueValue != null && subtractedSet.size() == 1) { in getKeywordStatus() 2484 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 char16_t *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 | 470 int32_t uniqueValue; in TestHasUniqueValue() local 471 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 478 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=1) { in TestHasUniqueValue() 483 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 490 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=6) { in TestHasUniqueValue() 496 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=8) { in TestHasUniqueValue()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | BytesTrieTest.java | 266 long uniqueValue; in Test40GetUniqueValue() local 267 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 274 if((uniqueValue=trie.getUniqueValue())!=((1<<1)|1)) { in Test40GetUniqueValue() 275 errln("not unique value 1 after \"jan\": instead "+uniqueValue); in Test40GetUniqueValue() 279 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 286 if((uniqueValue=trie.getUniqueValue())!=((6<<1)|1)) { in Test40GetUniqueValue() 292 if((uniqueValue=trie.getUniqueValue())!=((8<<1)|1)) { in Test40GetUniqueValue()
|
D | CharsTrieTest.java | 395 long uniqueValue; in Test40GetUniqueValue() local 396 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 403 if((uniqueValue=trie.getUniqueValue())!=((1<<1)|1)) { in Test40GetUniqueValue() 404 errln("not unique value 1 after \"jan\": instead "+uniqueValue); in Test40GetUniqueValue() 408 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 415 if((uniqueValue=trie.getUniqueValue())!=((6<<1)|1)) { in Test40GetUniqueValue() 421 if((uniqueValue=trie.getUniqueValue())!=((8<<1)|1)) { in Test40GetUniqueValue()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | BytesTrieTest.java | 269 long uniqueValue; in Test40GetUniqueValue() local 270 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 277 if((uniqueValue=trie.getUniqueValue())!=((1<<1)|1)) { in Test40GetUniqueValue() 278 errln("not unique value 1 after \"jan\": instead "+uniqueValue); in Test40GetUniqueValue() 282 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 289 if((uniqueValue=trie.getUniqueValue())!=((6<<1)|1)) { in Test40GetUniqueValue() 295 if((uniqueValue=trie.getUniqueValue())!=((8<<1)|1)) { in Test40GetUniqueValue()
|
D | CharsTrieTest.java | 398 long uniqueValue; in Test40GetUniqueValue() local 399 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 406 if((uniqueValue=trie.getUniqueValue())!=((1<<1)|1)) { in Test40GetUniqueValue() 407 errln("not unique value 1 after \"jan\": instead "+uniqueValue); in Test40GetUniqueValue() 411 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 418 if((uniqueValue=trie.getUniqueValue())!=((6<<1)|1)) { in Test40GetUniqueValue() 424 if((uniqueValue=trie.getUniqueValue())!=((8<<1)|1)) { in Test40GetUniqueValue()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | PluralRulesTest.java | 833 Output<Double> uniqueValue = new Output<Double>(); 846 … KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue); 848 uniqueValue.value); 853 … status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue, SampleType.DECIMAL); 855 uniqueExpected, uniqueValue.value); 861 KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, null, uniqueValue); 863 assertNull("Invalid keyword " + keyword, uniqueValue.value);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRulesTest.java | 830 Output<Double> uniqueValue = new Output<Double>(); 843 … KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue); 845 uniqueValue.value); 850 … status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue, SampleType.DECIMAL); 852 uniqueExpected, uniqueValue.value); 858 KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, null, uniqueValue); 860 assertNull("Invalid keyword " + keyword, uniqueValue.value);
|