• Home
  • Raw
  • Download

Lines Matching refs:dataLength

61     void checkData(const StringAndValue data[], int32_t dataLength);
62 …void checkData(const StringAndValue data[], int32_t dataLength, UStringTrieBuildOption buildOption…
63 BytesTrie *buildTrie(const StringAndValue data[], int32_t dataLength,
65 void checkFirst(BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
66 void checkNext(BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
67 void checkNextWithState(BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
68 void checkNextWithState64(BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
69 void checkNextString(BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
70 void checkIterator(const BytesTrie &trie, const StringAndValue data[], int32_t dataLength);
71 void checkIterator(BytesTrie::Iterator &iter, const StringAndValue data[], int32_t dataLength);
643 void BytesTrieTest::checkData(const StringAndValue data[], int32_t dataLength) { in checkData() argument
644 logln("checkData(dataLength=%d, fast)", (int)dataLength); in checkData()
645 checkData(data, dataLength, USTRINGTRIE_BUILD_FAST); in checkData()
646 logln("checkData(dataLength=%d, small)", (int)dataLength); in checkData()
647 checkData(data, dataLength, USTRINGTRIE_BUILD_SMALL); in checkData()
650 void BytesTrieTest::checkData(const StringAndValue data[], int32_t dataLength, UStringTrieBuildOpti… in checkData() argument
651 LocalPointer<BytesTrie> trie(buildTrie(data, dataLength, buildOption)); in checkData()
655 checkFirst(*trie, data, dataLength); in checkData()
656 checkNext(*trie, data, dataLength); in checkData()
657 checkNextWithState(*trie, data, dataLength); in checkData()
658 checkNextWithState64(*trie, data, dataLength); in checkData()
659 checkNextString(*trie, data, dataLength); in checkData()
660 checkIterator(*trie, data, dataLength); in checkData()
663 BytesTrie *BytesTrieTest::buildTrie(const StringAndValue data[], int32_t dataLength, in buildTrie() argument
668 if(dataLength&1) { in buildTrie()
670 index=dataLength/2; in buildTrie()
672 } else if((dataLength%3)!=0) { in buildTrie()
674 index=dataLength/5; in buildTrie()
677 index=dataLength-1; in buildTrie()
681 for(int32_t i=0; i<dataLength; ++i) { in buildTrie()
683 index=(index+step)%dataLength; in buildTrie()
704 if((dataLength&1)!=0) { in buildTrie()
712 const StringAndValue data[], int32_t dataLength) { in checkFirst() argument
713 for(int32_t i=0; i<dataLength; ++i) { in checkFirst()
734 const StringAndValue data[], int32_t dataLength) { in checkNext() argument
736 for(int32_t i=0; i<dataLength; ++i) { in checkNext()
814 const StringAndValue data[], int32_t dataLength) { in checkNextWithState() argument
816 for(int32_t i=0; i<dataLength; ++i) { in checkNextWithState()
872 const StringAndValue data[], int32_t dataLength) { in checkNextWithState64() argument
874 for(int32_t i=0; i<dataLength; ++i) { in checkNextWithState64()
929 const StringAndValue data[], int32_t dataLength) { in checkNextString() argument
930 for(int32_t i=0; i<dataLength; ++i) { in checkNextString()
946 const StringAndValue data[], int32_t dataLength) { in checkIterator() argument
952 checkIterator(iter, data, dataLength); in checkIterator()
956 const StringAndValue data[], int32_t dataLength) { in checkIterator() argument
958 for(int32_t i=0; i<dataLength; ++i) { in checkIterator()