MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / is_string

Function is_string

include/jsoncons/basic_json.hpp:3218–3233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3216 }
3217
3218 bool is_string() const noexcept
3219 {
3220 if (is_string_storage(storage_kind()))
3221 {
3222 return true;
3223 }
3224 if (storage_kind() == json_storage_kind::const_json_ref)
3225 {
3226 return cast<const_json_ref_storage>().value().is_string();
3227 }
3228 if (storage_kind() == json_storage_kind::json_ref)
3229 {
3230 return cast<const_json_ref_storage>().value().is_string();
3231 }
3232 return false;
3233 }
3234
3235 bool is_string_view() const noexcept
3236 {

Callers 1

is_string_viewFunction · 0.70

Calls 4

is_string_storageFunction · 0.85
storage_kindFunction · 0.85
is_stringMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected