MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / JsonStringDebugString

Function JsonStringDebugString

internal/json.cc:1610–1619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1608};
1609
1610std::string JsonStringDebugString(const well_known_types::StringValue& value) {
1611 return absl::visit(absl::Overload(
1612 [&](absl::string_view string) -> std::string {
1613 return FormatStringLiteral(string);
1614 },
1615 [&](const absl::Cord& cord) -> std::string {
1616 return FormatStringLiteral(cord);
1617 }),
1618 well_known_types::AsVariant(value));
1619}
1620
1621std::string JsonNumberDebugString(double value) {
1622 if (std::isfinite(value)) {

Callers 2

ValueDebugStringMethod · 0.85
StructDebugStringMethod · 0.85

Calls 1

FormatStringLiteralFunction · 0.85

Tested by

no test coverage detected