MCPcopy Create free account
hub / github.com/PDAL/PDAL / escapeQuotes

Function escapeQuotes

pdal/Metadata.hpp:753–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751 {}
752
753 std::string escapeQuotes(const std::string& in) const
754 {
755 std::string out;
756 for (std::size_t i(0); i < in.size(); ++i)
757 {
758 if (in[i] == '"' && ((i && in[i - 1] != '\\') || !i))
759 {
760 out.push_back('\\');
761 }
762 out.push_back(in[i]);
763 }
764 return out;
765 }
766};
767
768inline bool operator == (const MetadataNode& m1, const MetadataNode& m2)

Callers 1

jsonValueFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected