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

Method encode

src/Task.cpp:1616–1619  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Encode values prior to serialization. [ -> &open; ] -> &close;

Source from the content-addressed store, hash-verified

1614// [ -> &open;
1615// ] -> &close;
1616const std::string Task::encode(const std::string& value) const {
1617 auto modified = str_replace(value, "[", "&open;");
1618 return str_replace(modified, "]", "&close;");
1619}
1620
1621////////////////////////////////////////////////////////////////////////////////
1622// Decode values after parse.

Callers 2

_queue_outputFunction · 0.80
mkstempFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected