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

Function is_scalar_value_func

src/cypher/cypher.c:1480–1486  ·  view source on GitHub ↗

True for single-argument functions that transform a scalar string value * (vs. entity-introspection funcs that act on the bound node/edge). */

Source from the content-addressed store, hash-verified

1478/* True for single-argument functions that transform a scalar string value
1479 * (vs. entity-introspection funcs that act on the bound node/edge). */
1480static bool is_scalar_value_func(const char *f) {
1481 return f && (strcmp(f, "toLower") == 0 || strcmp(f, "toUpper") == 0 ||
1482 strcmp(f, "toString") == 0 || strcmp(f, "toInteger") == 0 ||
1483 strcmp(f, "toFloat") == 0 || strcmp(f, "toBoolean") == 0 ||
1484 strcmp(f, "size") == 0 || strcmp(f, "length") == 0 || strcmp(f, "trim") == 0 ||
1485 strcmp(f, "ltrim") == 0 || strcmp(f, "rtrim") == 0 || strcmp(f, "reverse") == 0);
1486}
1487
1488static int parse_var_dot_prop(parser_t *p, cbm_return_item_t *item) {
1489 const cbm_token_t *var = expect(p, TOK_IDENT);

Callers 1

project_itemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected