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

Function is_camel_break

src/semantic/semantic.c:148–155  ·  view source on GitHub ↗

True for a camelCase transition: uppercase letter preceded by a lowercase. */

Source from the content-addressed store, hash-verified

146
147/* True for a camelCase transition: uppercase letter preceded by a lowercase. */
148static bool is_camel_break(const char *name, int i) {
149 if (i <= 0) {
150 return false;
151 }
152 char c = name[i];
153 char p = name[i - SKIP_ONE];
154 return c >= 'A' && c <= 'Z' && p >= 'a' && p <= 'z';
155}
156
157/* Flush the current buffer as a token into out[]. */
158static void flush_token(char *buf, int *blen, char **out, int *count, int max_out) {

Callers 1

cbm_sem_tokenizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected