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

Function php_short_name

internal/cbm/lsp/php_lsp.c:112–121  ·  view source on GitHub ↗

Return the substring after the last '.' or '\\'. */

Source from the content-addressed store, hash-verified

110
111/* Return the substring after the last '.' or '\\'. */
112static const char *php_short_name(const char *qn) {
113 if (!qn)
114 return NULL;
115 const char *last = qn;
116 for (const char *p = qn; *p; p++) {
117 if (*p == '.' || *p == '\\')
118 last = p + 1;
119 }
120 return last;
121}
122
123static bool php_is_builtin_type_name(const char *n) {
124 if (!n)

Callers 1

collect_use_clauseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected