• Home
  • Raw
  • Download

Lines Matching refs:dataLength

58     void checkData(const StringAndValue data[], int32_t dataLength);
59 …void checkData(const StringAndValue data[], int32_t dataLength, UStringTrieBuildOption buildOption…
60 BytesTrie *buildTrie(const StringAndValue data[], int32_t dataLength,
62 void checkFirst(BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
63 void checkNext(BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
64 void checkNextWithState(BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
65 void checkNextString(BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
66 void checkIterator(const BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
67 void checkIterator(BytesTrie::Iterator &iter, const StringAndValue data[], int32_t dataLength);
589 void BytesTrieTest::checkData(const StringAndValue data[], int32_t dataLength) { in checkData() argument
590 logln("checkData(dataLength=%d, fast)", (int)dataLength); in checkData()
591 checkData(data, dataLength, USTRINGTRIE_BUILD_FAST); in checkData()
592 logln("checkData(dataLength=%d, small)", (int)dataLength); in checkData()
593 checkData(data, dataLength, USTRINGTRIE_BUILD_SMALL); in checkData()
596 void BytesTrieTest::checkData(const StringAndValue data[], int32_t dataLength, UStringTrieBuildOpti… in checkData() argument
597 LocalPointer<BytesTrie> trie(buildTrie(data, dataLength, buildOption)); in checkData()
601 checkFirst(*trie, data, dataLength); in checkData()
602 checkNext(*trie, data, dataLength); in checkData()
603 checkNextWithState(*trie, data, dataLength); in checkData()
604 checkNextString(*trie, data, dataLength); in checkData()
605 checkIterator(*trie, data, dataLength); in checkData()
608 BytesTrie *BytesTrieTest::buildTrie(const StringAndValue data[], int32_t dataLength, in buildTrie() argument
613 if(dataLength&1) { in buildTrie()
615 index=dataLength/2; in buildTrie()
617 } else if((dataLength%3)!=0) { in buildTrie()
619 index=dataLength/5; in buildTrie()
622 index=dataLength-1; in buildTrie()
626 for(int32_t i=0; i<dataLength; ++i) { in buildTrie()
628 index=(index+step)%dataLength; in buildTrie()
649 if((dataLength&1)!=0) { in buildTrie()
657 const StringAndValue data[], int32_t dataLength) { in checkFirst() argument
658 for(int32_t i=0; i<dataLength; ++i) { in checkFirst()
679 const StringAndValue data[], int32_t dataLength) { in checkNext() argument
681 for(int32_t i=0; i<dataLength; ++i) { in checkNext()
759 const StringAndValue data[], int32_t dataLength) { in checkNextWithState() argument
761 for(int32_t i=0; i<dataLength; ++i) { in checkNextWithState()
819 const StringAndValue data[], int32_t dataLength) { in checkNextString() argument
820 for(int32_t i=0; i<dataLength; ++i) { in checkNextString()
836 const StringAndValue data[], int32_t dataLength) { in checkIterator() argument
842 checkIterator(iter, data, dataLength); in checkIterator()
846 const StringAndValue data[], int32_t dataLength) { in checkIterator() argument
848 for(int32_t i=0; i<dataLength; ++i) { in checkIterator()