/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | BytesTrie.java | 428 long uniqueValue=findUniqueValue(bytes_, pos+remainingMatchLength_+1, 0); in getUniqueValue() local 430 return (uniqueValue<<31)>>31; in getUniqueValue() 944 long uniqueValue) { 947 … uniqueValue=findUniqueValueFromBranch(bytes, jumpByDelta(bytes, pos), length>>1, uniqueValue); 948 if(uniqueValue==0) { 962 if(uniqueValue!=0) { 963 if(value!=(int)(uniqueValue>>1)) { 967 uniqueValue=((long)value<<1)|1; 970 uniqueValue=findUniqueValue(bytes, pos+value, uniqueValue); 971 if(uniqueValue==0) { [all …]
|
D | CharsTrie.java | 391 long uniqueValue=findUniqueValue(chars_, pos+remainingMatchLength_+1, 0); in getUniqueValue() local 393 return (uniqueValue<<31)>>31; in getUniqueValue() 881 long uniqueValue) { in findUniqueValueFromBranch() argument 884 … uniqueValue=findUniqueValueFromBranch(chars, jumpByDelta(chars, pos), length>>1, uniqueValue); in findUniqueValueFromBranch() 885 if(uniqueValue==0) { in findUniqueValueFromBranch() 900 if(uniqueValue!=0) { in findUniqueValueFromBranch() 901 if(value!=(int)(uniqueValue>>1)) { in findUniqueValueFromBranch() 905 uniqueValue=((long)value<<1)|1; in findUniqueValueFromBranch() 908 uniqueValue=findUniqueValue(chars, pos+value, uniqueValue); in findUniqueValueFromBranch() 909 if(uniqueValue==0) { in findUniqueValueFromBranch() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | CharsTrie.java | 375 long uniqueValue=findUniqueValue(chars_, pos+remainingMatchLength_+1, 0); in getUniqueValue() local 377 return (uniqueValue<<31)>>31; in getUniqueValue() 855 long uniqueValue) { in findUniqueValueFromBranch() argument 858 … uniqueValue=findUniqueValueFromBranch(chars, jumpByDelta(chars, pos), length>>1, uniqueValue); in findUniqueValueFromBranch() 859 if(uniqueValue==0) { in findUniqueValueFromBranch() 874 if(uniqueValue!=0) { in findUniqueValueFromBranch() 875 if(value!=(int)(uniqueValue>>1)) { in findUniqueValueFromBranch() 879 uniqueValue=((long)value<<1)|1; in findUniqueValueFromBranch() 882 uniqueValue=findUniqueValue(chars, pos+value, uniqueValue); in findUniqueValueFromBranch() 883 if(uniqueValue==0) { in findUniqueValueFromBranch() [all …]
|
D | BytesTrie.java | 407 long uniqueValue=findUniqueValue(bytes_, pos+remainingMatchLength_+1, 0); in getUniqueValue() local 409 return (uniqueValue<<31)>>31; in getUniqueValue() 910 long uniqueValue) { 913 … uniqueValue=findUniqueValueFromBranch(bytes, jumpByDelta(bytes, pos), length>>1, uniqueValue); 914 if(uniqueValue==0) { 928 if(uniqueValue!=0) { 929 if(value!=(int)(uniqueValue>>1)) { 933 uniqueValue=((long)value<<1)|1; 936 uniqueValue=findUniqueValue(bytes, pos+value, uniqueValue); 937 if(uniqueValue==0) { [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/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 | 2435 Output<Double> uniqueValue) { in getKeywordStatus() argument 2436 return getKeywordStatus(keyword, offset, explicits, uniqueValue, SampleType.INTEGER); in getKeywordStatus() 2459 Output<Double> uniqueValue, SampleType sampleType) { in getKeywordStatus() argument 2460 if (uniqueValue != null) { in getKeywordStatus() 2461 uniqueValue.value = null; in getKeywordStatus() 2484 if (uniqueValue != null) { in getKeywordStatus() 2485 uniqueValue.value = values.iterator().next(); in getKeywordStatus() 2502 if (uniqueValue != null && subtractedSet.size() == 1) { in getKeywordStatus() 2503 uniqueValue.value = subtractedSet.iterator().next(); in getKeywordStatus()
|
/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 | 2383 Output<Double> uniqueValue) { in getKeywordStatus() argument 2384 return getKeywordStatus(keyword, offset, explicits, uniqueValue, SampleType.INTEGER); in getKeywordStatus() 2406 Output<Double> uniqueValue, SampleType sampleType) { in getKeywordStatus() argument 2407 if (uniqueValue != null) { in getKeywordStatus() 2408 uniqueValue.value = null; in getKeywordStatus() 2431 if (uniqueValue != null) { in getKeywordStatus() 2432 uniqueValue.value = values.iterator().next(); in getKeywordStatus() 2449 if (uniqueValue != null && subtractedSet.size() == 1) { in getKeywordStatus() 2450 uniqueValue.value = subtractedSet.iterator().next(); in getKeywordStatus()
|
/external/icu/icu4c/source/common/unicode/ |
D | bytestrie.h | 262 inline UBool hasUniqueValue(int32_t &uniqueValue) const { in hasUniqueValue() argument 265 return pos!=NULL && findUniqueValue(pos+remainingMatchLength_+1, FALSE, uniqueValue); in hasUniqueValue() 454 UBool haveUniqueValue, int32_t &uniqueValue); 457 static UBool findUniqueValue(const uint8_t *pos, UBool haveUniqueValue, int32_t &uniqueValue);
|
D | ucharstrie.h | 277 inline UBool hasUniqueValue(int32_t &uniqueValue) const { in hasUniqueValue() argument 280 return pos!=NULL && findUniqueValue(pos+remainingMatchLength_+1, FALSE, uniqueValue); in hasUniqueValue() 511 UBool haveUniqueValue, int32_t &uniqueValue); 514 static UBool findUniqueValue(const char16_t *pos, UBool haveUniqueValue, int32_t &uniqueValue);
|
/external/icu/icu4c/source/test/intltest/ |
D | bytestrietest.cpp | 315 int32_t uniqueValue; in TestHasUniqueValue() local 316 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 323 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=1) { in TestHasUniqueValue() 328 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 335 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=6) { in TestHasUniqueValue() 341 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=8) { in TestHasUniqueValue()
|
D | ucharstrietest.cpp | 471 int32_t uniqueValue; in TestHasUniqueValue() local 472 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 479 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=1) { in TestHasUniqueValue() 484 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 491 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=6) { in TestHasUniqueValue() 497 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=8) { in TestHasUniqueValue()
|
/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/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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRulesTest.java | 897 Output<Double> uniqueValue = new Output<>(); 910 … KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue); 912 uniqueValue.value); 917 … status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue, SampleType.DECIMAL); 919 uniqueExpected, uniqueValue.value); 925 KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, null, uniqueValue); 927 assertNull("Invalid keyword " + keyword, uniqueValue.value);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | PluralRulesTest.java | 900 Output<Double> uniqueValue = new Output<>(); 913 … KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue); 915 uniqueValue.value); 920 … status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue, SampleType.DECIMAL); 922 uniqueExpected, uniqueValue.value); 928 KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, null, uniqueValue); 930 assertNull("Invalid keyword " + keyword, uniqueValue.value);
|