MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / php_json_key_count

Function php_json_key_count

src/pipeline/pass_pkgmap.c:2847–2856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2845}
2846
2847static size_t php_json_key_count(yyjson_val *obj, const char *name) {
2848 size_t idx, max, count = 0;
2849 yyjson_val *key, *value;
2850 yyjson_obj_foreach(obj, idx, max, key, value) {
2851 (void)value;
2852 if (php_json_string_eq(key, name))
2853 count++;
2854 }
2855 return count;
2856}
2857
2858static bool php_binding_identity(yyjson_val *value, const CBMImport *imp) {
2859 yyjson_val *kind = yyjson_obj_get(value, "kind");

Callers 1

Calls 1

php_json_string_eqFunction · 0.85

Tested by

no test coverage detected