File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
source/modules/soul_core/utilities Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,8 @@ void PaddedStringTable::appendItem (std::string item)
443
443
rows.back ().push_back (std::move (item));
444
444
}
445
445
446
- size_t PaddedStringTable::getNumRows () const { return rows.size (); }
446
+ size_t PaddedStringTable::getNumColumns (size_t row) const { return rows[row].size (); }
447
+ size_t PaddedStringTable::getNumRows () const { return rows.size (); }
447
448
448
449
std::string PaddedStringTable::getRow (size_t rowIndex) const
449
450
{
@@ -461,6 +462,11 @@ std::string PaddedStringTable::getRow (size_t rowIndex) const
461
462
return s;
462
463
}
463
464
465
+ std::string& PaddedStringTable::getCell (size_t row, size_t column)
466
+ {
467
+ return rows[row][column];
468
+ }
469
+
464
470
HashBuilder& HashBuilder::operator << (char c) noexcept
465
471
{
466
472
auto n = (uint8_t ) c;
Original file line number Diff line number Diff line change @@ -149,7 +149,9 @@ struct PaddedStringTable
149
149
void startRow ();
150
150
void appendItem (std::string item);
151
151
size_t getNumRows () const ;
152
+ size_t getNumColumns (size_t row) const ;
152
153
std::string getRow (size_t rowIndex) const ;
154
+ std::string& getCell (size_t row, size_t column);
153
155
154
156
template <typename RowHandlerFn>
155
157
void iterateRows (RowHandlerFn&& handleRow)
You can’t perform that action at this time.
0 commit comments