MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / booleanValue

Method booleanValue

xml/importdata.cpp:1004–1011  ·  view source on GitHub ↗

take a node's value and return true/false based upon its value

Source from the content-addressed store, hash-verified

1002//* its value
1003//***********************************************************
1004bool ImportData::booleanValue() {
1005 QString value = textValue();
1006 value.toLower();
1007 if (value == "1" || value == "true")
1008 return true;
1009 else
1010 return false;
1011}
1012
1013
1014//***********************************************************

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected