MCPcopy Create free account
hub / github.com/bloomberg/pystack / normalizeBytesObjectRepresentation

Function normalizeBytesObjectRepresentation

src/pystack/_pystack/pytypes.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77static inline std::string
78normalizeBytesObjectRepresentation(const std::string& val, const std::string& prefix = "b")
79{
80 if (containsOnlyASCII(val)) {
81 return prefix + '"' + val + '"';
82 }
83 return "<BINARY>";
84}
85
86TupleObject::TupleObject(
87 const std::shared_ptr<const AbstractProcessManager>& manager,

Callers 1

toConcreteObjectMethod · 0.85

Calls 1

containsOnlyASCIIFunction · 0.85

Tested by

no test coverage detected