| 315 | |
| 316 | |
| 317 | void FileContents::insert(char *value) |
| 318 | { |
| 319 | if (printfFile) { |
| 320 | ERROR("Can not insert or replace into a printf file: %s", fileName); |
| 321 | } |
| 322 | fileLines.push_back(value); |
| 323 | realLinesInFile++; |
| 324 | numLinesInFile++; |
| 325 | if (indexField != -1) { |
| 326 | reIndex(realLinesInFile - 1); |
| 327 | } |
| 328 | char line[1024]; |
| 329 | getLine(realLinesInFile - 1, line, sizeof(line)); |
| 330 | char tmp[1024]; |
| 331 | getField(realLinesInFile - 1, 0, tmp, sizeof(tmp)); |
| 332 | } |
| 333 | |
| 334 | void FileContents::replace(int line, char *value) |
| 335 | { |
no test coverage detected