MCPcopy Create free account
hub / github.com/apache/trafficserver / operator *

Method operator *

lib/catch2/catch.hpp:8714–8731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8712 return m_iterators != other.m_iterators;
8713 }
8714 auto operator *() const -> std::string {
8715 std::string row, padding;
8716
8717 for (size_t i = 0; i < m_columns.size(); ++i) {
8718 auto width = m_columns[i].width();
8719 if (m_iterators[i] != m_columns[i].end()) {
8720 std::string col = *m_iterators[i];
8721 row += padding + col;
8722 if (col.size() < width)
8723 padding = std::string(width - col.size(), ' ');
8724 else
8725 padding = "";
8726 } else {
8727 padding += std::string(width, ' ');
8728 }
8729 }
8730 return row;
8731 }
8732 auto operator ++() -> iterator& {
8733 for (size_t i = 0; i < m_columns.size(); ++i) {
8734 if (m_iterators[i] != m_columns[i].end())

Callers

nothing calls this directly

Calls 4

stringClass · 0.85
sizeMethod · 0.45
widthMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected