Return the substring after the last '.' or '\\'. */
| 110 | |
| 111 | /* Return the substring after the last '.' or '\\'. */ |
| 112 | static 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 | |
| 123 | static bool php_is_builtin_type_name(const char *n) { |
| 124 | if (!n) |
no outgoing calls
no test coverage detected