Home | History | Annotate | Download | only in api_def

Lines Matching refs:file_contents

147 string RemoveDoc(const OpDef& op, const string& file_contents,
150 const auto doc_start_location = file_contents.find(kDocStart, start_location);
158 return file_contents;
160 const auto doc_end_location = file_contents.find(kDocEnd, doc_start_location);
164 return file_contents;
168 string doc_text = file_contents.substr(
177 return file_contents;
180 auto before_doc = file_contents.substr(0, doc_start_location);
183 file_contents.substr(doc_end_location + sizeof(kDocEnd) - 1);
195 string file_contents;
197 TF_CHECK_OK(ReadFileToString(Env::Default(), file, &file_contents));
206 const auto register_call_location = file_contents.find(register_call);
213 file_contents = RemoveDoc(*op, file_contents, register_call_location);
219 TF_CHECK_OK(WriteStringToFile(Env::Default(), file, file_contents))