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

Method replaceInCurrentCell

src/csvtable.cpp:459–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457
458
459int CsvTable::replaceInCurrentCell(table_index_t myRow, table_index_t myCol, std::string pattern, std::string replace, bool caseSensitive, bool useRegex) {
460 std::string replaced;
461 int count_replacements;
462 std::tie(replaced,count_replacements) = replaceUtf8String( pattern, replace, getCell(myRow, myCol), caseSensitive, useRegex );
463 setCell( replaced, myRow, myCol );
464 return count_replacements;
465}
466
467
468/**

Callers 2

find_replaceMethod · 0.80
find_replaceAll_CBMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected