* Returns cell next to myRow, myCol. * Jumps to next line if last cell in line. Jumps to first line if last cell in last line. */
| 441 | * Jumps to next line if last cell in line. Jumps to first line if last cell in last line. |
| 442 | */ |
| 443 | std::tuple<table_index_t, table_index_t> CsvTable::nextField(table_index_t myRow, table_index_t myCol) { |
| 444 | table_index_t newRow, newCol; |
| 445 | newRow = myRow; |
| 446 | newCol = myCol + 1; |
| 447 | if( newCol > searchArea[3] ) { |
| 448 | ++newRow; |
| 449 | newCol = searchArea[1]; |
| 450 | } |
| 451 | if( newRow > searchArea[2] ) { |
| 452 | newRow = searchArea[0]; |
| 453 | } |
| 454 | return std::make_tuple(newRow, newCol); |
| 455 | } |
| 456 | |
| 457 | |
| 458 |
nothing calls this directly
no outgoing calls
no test coverage detected