/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | BytesTrie.java | 374 long uniqueValue=findUniqueValue(bytes_, pos+remainingMatchLength_+1, 0); in getUniqueValue() local 376 return (uniqueValue<<31)>>31; in getUniqueValue() 886 long uniqueValue) { 889 … uniqueValue=findUniqueValueFromBranch(bytes, jumpByDelta(bytes, pos), length>>1, uniqueValue); 890 if(uniqueValue==0) { 904 if(uniqueValue!=0) { 905 if(value!=(int)(uniqueValue>>1)) { 909 uniqueValue=((long)value<<1)|1; 912 uniqueValue=findUniqueValue(bytes, pos+value, uniqueValue); 913 if(uniqueValue==0) { [all …]
|
D | CharsTrie.java | 337 long uniqueValue=findUniqueValue(chars_, pos+remainingMatchLength_+1, 0); in getUniqueValue() local 339 return (uniqueValue<<31)>>31; in getUniqueValue() 823 long uniqueValue) { in findUniqueValueFromBranch() argument 826 … uniqueValue=findUniqueValueFromBranch(chars, jumpByDelta(chars, pos), length>>1, uniqueValue); in findUniqueValueFromBranch() 827 if(uniqueValue==0) { in findUniqueValueFromBranch() 842 if(uniqueValue!=0) { in findUniqueValueFromBranch() 843 if(value!=(int)(uniqueValue>>1)) { in findUniqueValueFromBranch() 847 uniqueValue=((long)value<<1)|1; in findUniqueValueFromBranch() 850 uniqueValue=findUniqueValue(chars, pos+value, uniqueValue); in findUniqueValueFromBranch() 851 if(uniqueValue==0) { in findUniqueValueFromBranch() [all …]
|
/external/icu/icu4c/source/common/ |
D | ucharstrie.cpp | 284 UBool haveUniqueValue, int32_t &uniqueValue) { in findUniqueValueFromBranch() argument 287 … if(NULL==findUniqueValueFromBranch(jumpByDelta(pos), length>>1, haveUniqueValue, uniqueValue)) { in findUniqueValueFromBranch() 303 if(value!=uniqueValue) { in findUniqueValueFromBranch() 307 uniqueValue=value; in findUniqueValueFromBranch() 311 if(!findUniqueValue(pos+value, haveUniqueValue, uniqueValue)) { in findUniqueValueFromBranch() 321 UCharsTrie::findUniqueValue(const UChar *pos, UBool haveUniqueValue, int32_t &uniqueValue) { in findUniqueValue() argument 328 pos=findUniqueValueFromBranch(pos, node+1, haveUniqueValue, uniqueValue); in findUniqueValue() 347 if(value!=uniqueValue) { in findUniqueValue() 351 uniqueValue=value; in findUniqueValue()
|
D | bytestrie.cpp | 315 UBool haveUniqueValue, int32_t &uniqueValue) { in findUniqueValueFromBranch() argument 318 … if(NULL==findUniqueValueFromBranch(jumpByDelta(pos), length>>1, haveUniqueValue, uniqueValue)) { in findUniqueValueFromBranch() 333 if(value!=uniqueValue) { in findUniqueValueFromBranch() 337 uniqueValue=value; in findUniqueValueFromBranch() 341 if(!findUniqueValue(pos+value, haveUniqueValue, uniqueValue)) { in findUniqueValueFromBranch() 351 BytesTrie::findUniqueValue(const uint8_t *pos, UBool haveUniqueValue, int32_t &uniqueValue) { in findUniqueValue() argument 358 pos=findUniqueValueFromBranch(pos, node+1, haveUniqueValue, uniqueValue); in findUniqueValue() 370 if(value!=uniqueValue) { in findUniqueValue() 374 uniqueValue=value; in findUniqueValue()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | PluralSamples.java | 256 …rdStatus getStatus(String keyword, int offset, Set<Double> explicits, Output<Double> uniqueValue) { in getStatus() argument 257 if (uniqueValue != null) { in getStatus() 258 uniqueValue.value = null; in getStatus() 278 if (uniqueValue != null) { in getStatus() 279 uniqueValue.value = values.iterator().next(); in getStatus() 296 if (uniqueValue != null && subtractedSet.size() == 1) { in getStatus() 297 uniqueValue.value = subtractedSet.iterator().next(); in getStatus()
|
D | PluralRules.java | 2320 Output<Double> uniqueValue) { in getKeywordStatus() argument 2321 return getKeywordStatus(keyword, offset, explicits, uniqueValue, SampleType.INTEGER); in getKeywordStatus() 2343 Output<Double> uniqueValue, SampleType sampleType) { in getKeywordStatus() argument 2344 if (uniqueValue != null) { in getKeywordStatus() 2345 uniqueValue.value = null; in getKeywordStatus() 2368 if (uniqueValue != null) { in getKeywordStatus() 2369 uniqueValue.value = values.iterator().next(); in getKeywordStatus() 2386 if (uniqueValue != null && subtractedSet.size() == 1) { in getKeywordStatus() 2387 uniqueValue.value = subtractedSet.iterator().next(); in getKeywordStatus()
|
/external/icu/icu4c/source/common/unicode/ |
D | bytestrie.h | 222 inline UBool hasUniqueValue(int32_t &uniqueValue) const { in hasUniqueValue() argument 225 return pos!=NULL && findUniqueValue(pos+remainingMatchLength_+1, FALSE, uniqueValue); in hasUniqueValue() 415 UBool haveUniqueValue, int32_t &uniqueValue); 418 static UBool findUniqueValue(const uint8_t *pos, UBool haveUniqueValue, int32_t &uniqueValue);
|
D | ucharstrie.h | 237 inline UBool hasUniqueValue(int32_t &uniqueValue) const { in hasUniqueValue() argument 240 return pos!=NULL && findUniqueValue(pos+remainingMatchLength_+1, FALSE, uniqueValue); in hasUniqueValue() 471 UBool haveUniqueValue, int32_t &uniqueValue); 474 static UBool findUniqueValue(const UChar *pos, UBool haveUniqueValue, int32_t &uniqueValue);
|
/external/icu/icu4c/source/test/intltest/ |
D | bytestrietest.cpp | 310 int32_t uniqueValue; in TestHasUniqueValue() local 311 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 318 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=1) { in TestHasUniqueValue() 323 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 330 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=6) { in TestHasUniqueValue() 336 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=8) { in TestHasUniqueValue()
|
D | ucharstrietest.cpp | 467 int32_t uniqueValue; in TestHasUniqueValue() local 468 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 475 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=1) { in TestHasUniqueValue() 480 if(trie->hasUniqueValue(uniqueValue)) { in TestHasUniqueValue() 487 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=6) { in TestHasUniqueValue() 493 if(!trie->hasUniqueValue(uniqueValue) || uniqueValue!=8) { in TestHasUniqueValue()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | BytesTrieTest.java | 251 long uniqueValue; in Test40GetUniqueValue() local 252 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 259 if((uniqueValue=trie.getUniqueValue())!=((1<<1)|1)) { in Test40GetUniqueValue() 260 errln("not unique value 1 after \"jan\": instead "+uniqueValue); in Test40GetUniqueValue() 264 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 271 if((uniqueValue=trie.getUniqueValue())!=((6<<1)|1)) { in Test40GetUniqueValue() 277 if((uniqueValue=trie.getUniqueValue())!=((8<<1)|1)) { in Test40GetUniqueValue()
|
D | CharsTrieTest.java | 377 long uniqueValue; in Test40GetUniqueValue() local 378 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 385 if((uniqueValue=trie.getUniqueValue())!=((1<<1)|1)) { in Test40GetUniqueValue() 386 errln("not unique value 1 after \"jan\": instead "+uniqueValue); in Test40GetUniqueValue() 390 if((uniqueValue=trie.getUniqueValue())!=0) { in Test40GetUniqueValue() 397 if((uniqueValue=trie.getUniqueValue())!=((6<<1)|1)) { in Test40GetUniqueValue() 403 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/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRulesTest.java | 804 Output<Double> uniqueValue = new Output<Double>(); 817 … KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue); 819 uniqueValue.value); 824 … status = pluralRules.getKeywordStatus(keyword, 0, explicits, uniqueValue, SampleType.DECIMAL); 826 uniqueExpected, uniqueValue.value); 832 KeywordStatus status = pluralRules.getKeywordStatus(keyword, 0, null, uniqueValue); 834 assertNull("Invalid keyword " + keyword, uniqueValue.value);
|