Lines Matching refs:dataLength
66 void checkData(const StringAndValue data[], int32_t dataLength);
67 …void checkData(const StringAndValue data[], int32_t dataLength, UStringTrieBuildOption buildOption…
68 UCharsTrie *buildTrie(const StringAndValue data[], int32_t dataLength,
70 void checkFirst(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength);
71 void checkNext(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength);
72 void checkNextWithState(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength);
73 void checkNextString(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength);
74 void checkIterator(UCharsTrie &trie, const StringAndValue data[], int32_t dataLength);
75 void checkIterator(UCharsTrie::Iterator &iter, const StringAndValue data[], int32_t dataLength);
749 void UCharsTrieTest::checkData(const StringAndValue data[], int32_t dataLength) { in checkData() argument
750 logln("checkData(dataLength=%d, fast)", (int)dataLength); in checkData()
751 checkData(data, dataLength, USTRINGTRIE_BUILD_FAST); in checkData()
752 logln("checkData(dataLength=%d, small)", (int)dataLength); in checkData()
753 checkData(data, dataLength, USTRINGTRIE_BUILD_SMALL); in checkData()
756 void UCharsTrieTest::checkData(const StringAndValue data[], int32_t dataLength, UStringTrieBuildOpt… in checkData() argument
757 LocalPointer<UCharsTrie> trie(buildTrie(data, dataLength, buildOption)); in checkData()
761 checkFirst(*trie, data, dataLength); in checkData()
762 checkNext(*trie, data, dataLength); in checkData()
763 checkNextWithState(*trie, data, dataLength); in checkData()
764 checkNextString(*trie, data, dataLength); in checkData()
765 checkIterator(*trie, data, dataLength); in checkData()
768 UCharsTrie *UCharsTrieTest::buildTrie(const StringAndValue data[], int32_t dataLength, in buildTrie() argument
773 if(dataLength&1) { in buildTrie()
775 index=dataLength/2; in buildTrie()
777 } else if((dataLength%3)!=0) { in buildTrie()
779 index=dataLength/5; in buildTrie()
782 index=dataLength-1; in buildTrie()
786 for(int32_t i=0; i<dataLength; ++i) { in buildTrie()
789 index=(index+step)%dataLength; in buildTrie()
812 if((dataLength&1)!=0) { in buildTrie()
820 const StringAndValue data[], int32_t dataLength) { in checkFirst() argument
821 for(int32_t i=0; i<dataLength; ++i) { in checkFirst()
858 const StringAndValue data[], int32_t dataLength) { in checkNext() argument
860 for(int32_t i=0; i<dataLength; ++i) { in checkNext()
932 const StringAndValue data[], int32_t dataLength) { in checkNextWithState() argument
934 for(int32_t i=0; i<dataLength; ++i) { in checkNextWithState()
992 const StringAndValue data[], int32_t dataLength) { in checkNextString() argument
993 for(int32_t i=0; i<dataLength; ++i) { in checkNextString()
1010 const StringAndValue data[], int32_t dataLength) { in checkIterator() argument
1016 checkIterator(iter, data, dataLength); in checkIterator()
1020 const StringAndValue data[], int32_t dataLength) { in checkIterator() argument
1022 for(int32_t i=0; i<dataLength; ++i) { in checkIterator()