MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / operator&&

Method operator&&

src/Variant.cpp:148–160  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

146
147////////////////////////////////////////////////////////////////////////////////
148bool Variant::operator&&(const Variant& other) const {
149 Variant left(*this);
150 Variant right(other);
151
152 if (left._type == type_string) Lexer::dequote(left._string);
153
154 if (right._type == type_string) Lexer::dequote(right._string);
155
156 left.cast(type_boolean);
157 right.cast(type_boolean);
158
159 return left._bool && right._bool;
160}
161
162////////////////////////////////////////////////////////////////////////////////
163bool Variant::operator||(const Variant& other) const {

Callers

nothing calls this directly

Calls 1

castMethod · 0.80

Tested by

no test coverage detected