MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / isDoubleCharOperator

Method isDoubleCharOperator

src/Lexer.cpp:170–174  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

168
169////////////////////////////////////////////////////////////////////////////////
170bool Lexer::isDoubleCharOperator(int c0, int c1, int c2) {
171 return (c0 == '=' && c1 == '=') || (c0 == '!' && c1 == '=') || (c0 == '<' && c1 == '=') ||
172 (c0 == '>' && c1 == '=') || (c0 == 'o' && c1 == 'r' && isBoundary(c1, c2)) ||
173 (c0 == '|' && c1 == '|') || (c0 == '&' && c1 == '&') || (c0 == '!' && c1 == '~');
174}
175
176////////////////////////////////////////////////////////////////////////////////
177bool Lexer::isTripleCharOperator(int c0, int c1, int c2, int c3) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected