Lines Matching refs:file2
85 std::ifstream file2(filename2.value().c_str(), in ContentsEqual() local
90 if (!file1.is_open() || !file2.is_open()) in ContentsEqual()
97 file2.read(buffer2, BUFFER_SIZE); in ContentsEqual()
99 if ((file1.eof() != file2.eof()) || in ContentsEqual()
100 (file1.gcount() != file2.gcount()) || in ContentsEqual()
103 file2.close(); in ContentsEqual()
106 } while (!file1.eof() || !file2.eof()); in ContentsEqual()
109 file2.close(); in ContentsEqual()
115 std::ifstream file2(filename2.value().c_str(), std::ios::in); in TextContentsEqual() local
119 if (!file1.is_open() || !file2.is_open()) in TextContentsEqual()
125 getline(file2, line2); in TextContentsEqual()
128 if ((file1.eof() != file2.eof()) || in TextContentsEqual()
129 file1.bad() || file2.bad()) { in TextContentsEqual()
148 } while (!file1.eof() || !file2.eof()); in TextContentsEqual()