MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / nextField

Method nextField

src/csvtable.cpp:443–455  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

441 * Jumps to next line if last cell in line. Jumps to first line if last cell in last line.
442 */
443std::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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected