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

Method decode

src/TF2.cpp:129–134  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Decode values after parse. [ <- &open; ] <- &close;

Source from the content-addressed store, hash-verified

127// [ <- &open;
128// ] <- &close;
129const std::string TF2::decode(const std::string& value) const {
130 if (value.find('&') == std::string::npos) return value;
131
132 auto modified = str_replace(value, "&open;", "[");
133 return str_replace(modified, "&close;", "]");
134}
135
136////////////////////////////////////////////////////////////////////////////////
137void TF2::load_tasks() {

Callers 2

test_versionMethod · 0.45
_queue_outputFunction · 0.45

Calls 1

findMethod · 0.80

Tested by 1

test_versionMethod · 0.36