Lines Matching refs:string
21 #include <string>
28 // in this row), or a string of explanatory text.
36 TextTableRow(std::vector<std::string>&& v) : mFields(std::move(v)) {}
38 // A single comment string.
39 TextTableRow(std::string&& s) : mLine(std::move(s)) {}
40 TextTableRow(const std::string& s) : mLine(s) {}
46 const std::vector<std::string>& fields() const { return mFields; }
48 // Get the single comment string.
49 const std::string& line() const { return mLine; }
52 std::vector<std::string> mFields;
53 std::string mLine;
62 void add(std::vector<std::string>&& v) {
66 void add(const std::string& s) { mTable.emplace_back(s); }
67 void add(std::string&& s) { mTable.emplace_back(std::move(s)); }
76 void computeWidth(const std::vector<std::string>& v);