MCPcopy Create free account
hub / github.com/acl-dev/acl / get_int64

Method get_int64

lib_acl_cpp/src/stdlib/json.cpp:69–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69const acl_int64* json_node::get_int64() const
70{
71 if (!is_number()) {
72 return NULL;
73 }
74 const char* txt = get_text();
75 if (txt == NULL || *txt == 0) {
76 return NULL;
77 }
78 const_cast<json_node*>(this)->node_val_.n = acl_atoi64(txt);
79 return &node_val_.n;
80}
81
82const double* json_node::get_double() const
83{

Callers 1

test_int64Function · 0.80

Calls 1

acl_atoi64Function · 0.85

Tested by 1

test_int64Function · 0.64