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

Function is_scalar_value_func

src/cypher/cypher.c:1347–1353  ·  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

1345/* True for single-argument functions that transform a scalar string value
1346 * (vs. entity-introspection funcs that act on the bound node/edge). */
1347static bool is_scalar_value_func(const char *f) {
1348 return f && (strcmp(f, "toLower") == 0 || strcmp(f, "toUpper") == 0 ||
1349 strcmp(f, "toString") == 0 || strcmp(f, "toInteger") == 0 ||
1350 strcmp(f, "toFloat") == 0 || strcmp(f, "toBoolean") == 0 ||
1351 strcmp(f, "size") == 0 || strcmp(f, "length") == 0 || strcmp(f, "trim") == 0 ||
1352 strcmp(f, "ltrim") == 0 || strcmp(f, "rtrim") == 0 || strcmp(f, "reverse") == 0);
1353}
1354
1355static int parse_var_dot_prop(parser_t *p, cbm_return_item_t *item) {
1356 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