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

Function IsJSONSafe

eval/public/structs/cel_proto_wrap_util.cc:91–93  ·  view source on GitHub ↗

IsJSONSafe indicates whether the int is safely representable as a floating point value in JSON.

Source from the content-addressed store, hash-verified

89// IsJSONSafe indicates whether the int is safely representable as a floating
90// point value in JSON.
91static bool IsJSONSafe(int64_t i) {
92 return i >= kMinIntJSON && i <= kMaxIntJSON;
93}
94
95// IsJSONSafe indicates whether the uint is safely representable as a floating
96// point value in JSON.

Callers 1

ValueFromValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected