MCPcopy Create free account
hub / github.com/apache/arrow / NonFiniteDoubleFromRawToken

Function NonFiniteDoubleFromRawToken

cpp/src/arrow/json/from_string.cc:232–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232std::optional<double> NonFiniteDoubleFromRawToken(sj::value& json_obj) {
233 std::string_view token = json_obj.raw_json_token();
234 // The raw token includes any trailing whitespace up to the next token
235 while (!token.empty() && std::isspace(static_cast<unsigned char>(token.back()))) {
236 token.remove_suffix(1);
237 }
238 return NonFiniteDoubleFromString(token);
239}
240
241// Convert float16/HalfFloatType
242template <typename T>

Callers 1

ConvertNumberFunction · 0.85

Calls 3

backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected