MCPcopy Create free account
hub / github.com/dds-bridge/dds / get_any_line

Function get_any_line

library/tests/parse.cpp:550–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548
549
550bool get_any_line(
551 ifstream& fin,
552 vector<string>& list,
553 const string& tag,
554 const int n)
555{
556 string line;
557 if (! getline(fin, line))
558 {
559 cout << "Expected txt " << tag << " line " << n << endl;
560 return false;
561 }
562
563 list.clear();
564 splitIntoWords(line, list);
565 return true;
566}
567
568
569bool get_head_element(

Callers 1

read_fileFunction · 0.85

Calls 1

splitIntoWordsFunction · 0.85

Tested by

no test coverage detected