Lines Matching refs:strlen
19 #include <string.h> // memcpy, memcmp, strlen
37 strlen(sample_text)));
38 th_.reset(BlockHash::CreateTargetHash(sample_text, strlen(sample_text), 0));
78 return static_cast<int>(strlen(s));
114 const size_t length_without_spaces = strlen(string_without_spaces);
738 BlockHash bh(sample_text, strlen(sample_text), 0);
744 BlockHash bh(sample_text, strlen(sample_text), 0);
751 th_->AddAllBlocksThroughIndex(static_cast<int>(strlen(sample_text) + 1)),
764 strlen(search_string),
770 EXPECT_EQ((strlen("ear is fear") * kBlockSize) + (kBlockSize - 1),
775 BlockHash th2(sample_text, strlen(sample_text), 0x10000);
780 strlen(search_string),
788 EXPECT_EQ((strlen("ear is fear") * kBlockSize) + (kBlockSize - 1),
799 strlen(search_to_end_string),
803 EXPECT_EQ(strlen(" itself") * kBlockSize, best_match_.size());
813 strlen(search_to_beginning_string),
819 EXPECT_EQ((strlen("The onl") * kBlockSize) + (kBlockSize - 1),
825 strlen(sample_text_many_matches),
834 strlen(search_string_many_matches),
838 EXPECT_EQ(strlen(search_string_many_matches), best_match_.size());
842 char* collision_search_string = new char[strlen(search_string) + 1];
843 memcpy(collision_search_string, search_string, strlen(search_string) + 1);
863 strlen(search_string), // since collision_search_string has embedded \0
877 strlen(search_string),