MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / cson_value_is_integer

Function cson_value_is_integer

cson/cson.c:554–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552 return val;
553}
554char cson_value_is_integer(cson_value const *v)
555{
556 if (v->sql_type == SQLITE_INTEGER) return 1;
557 return cson__type(v) == JSON_INT;
558}
559cson_int_t cson_value_get_integer(cson_value const *val)
560{
561 return val->u.num;

Callers 9

get_intpropFunction · 0.85
replayFunction · 0.85
test_h_arrFunction · 0.85
cson_value_is_doubleFunction · 0.85
cson_value_get_doubleFunction · 0.85
_cson_extract_intFunction · 0.85
cson_push_valueFunction · 0.85

Calls 1

cson__typeFunction · 0.85

Tested by 1

test_h_arrFunction · 0.68