MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / getNumLines

Function getNumLines

quest/src/core/parser.cpp:491–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489
490
491qindex getNumLines(string lines) {
492
493 /// @todo is this platform agnostic?
494 char newline = '\n';
495
496 return 1 + count(lines.begin(), lines.end(), newline);
497}
498
499
500PauliStrSum parser_validateAndParsePauliStrSum(string lines, bool rightIsLeastSignificant, const char* caller) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected