Lines Matching refs:dataLength
60 void checkData(const StringAndValue data[], int32_t dataLength);
61 …void checkData(const StringAndValue data[], int32_t dataLength, UStringTrieBuildOption buildOption…
62 BytesTrie *buildTrie(const StringAndValue data[], int32_t dataLength,
64 void checkFirst(BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
65 void checkNext(BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
66 void checkNextWithState(BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
67 void checkNextString(BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
68 void checkIterator(const BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
69 void checkIterator(BytesTrie::Iterator &iter, const StringAndValue data[], int32_t dataLength);
601 void BytesTrieTest::checkData(const StringAndValue data[], int32_t dataLength) { in checkData() argument
602 logln("checkData(dataLength=%d, fast)", (int)dataLength); in checkData()
603 checkData(data, dataLength, USTRINGTRIE_BUILD_FAST); in checkData()
604 logln("checkData(dataLength=%d, small)", (int)dataLength); in checkData()
605 checkData(data, dataLength, USTRINGTRIE_BUILD_SMALL); in checkData()
608 void BytesTrieTest::checkData(const StringAndValue data[], int32_t dataLength, UStringTrieBuildOpti… in checkData() argument
609 LocalPointer<BytesTrie> trie(buildTrie(data, dataLength, buildOption)); in checkData()
613 checkFirst(*trie, data, dataLength); in checkData()
614 checkNext(*trie, data, dataLength); in checkData()
615 checkNextWithState(*trie, data, dataLength); in checkData()
616 checkNextString(*trie, data, dataLength); in checkData()
617 checkIterator(*trie, data, dataLength); in checkData()
620 BytesTrie *BytesTrieTest::buildTrie(const StringAndValue data[], int32_t dataLength, in buildTrie() argument
625 if(dataLength&1) { in buildTrie()
627 index=dataLength/2; in buildTrie()
629 } else if((dataLength%3)!=0) { in buildTrie()
631 index=dataLength/5; in buildTrie()
634 index=dataLength-1; in buildTrie()
638 for(int32_t i=0; i<dataLength; ++i) { in buildTrie()
640 index=(index+step)%dataLength; in buildTrie()
661 if((dataLength&1)!=0) { in buildTrie()
669 const StringAndValue data[], int32_t dataLength) { in checkFirst() argument
670 for(int32_t i=0; i<dataLength; ++i) { in checkFirst()
691 const StringAndValue data[], int32_t dataLength) { in checkNext() argument
693 for(int32_t i=0; i<dataLength; ++i) { in checkNext()
771 const StringAndValue data[], int32_t dataLength) { in checkNextWithState() argument
773 for(int32_t i=0; i<dataLength; ++i) { in checkNextWithState()
831 const StringAndValue data[], int32_t dataLength) { in checkNextString() argument
832 for(int32_t i=0; i<dataLength; ++i) { in checkNextString()
848 const StringAndValue data[], int32_t dataLength) { in checkIterator() argument
854 checkIterator(iter, data, dataLength); in checkIterator()
858 const StringAndValue data[], int32_t dataLength) { in checkIterator() argument
860 for(int32_t i=0; i<dataLength; ++i) { in checkIterator()