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

Function removeWhiteSpace

quest/src/core/parser.cpp:131–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131void removeWhiteSpace(string &line) {
132
133 // modifies line var, including removing newlines. we don't need to do
134 // this for pattern matching (our regex patterns include all permitted,
135 // frivolous whitespace), but we do need to perform it before passing
136 // matched strings to functions like std::stold()
137 line.erase(remove_if(line.begin(), line.end(), isWhiteSpace), line.end());
138}
139
140
141

Callers 3

parsePaulisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected