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

Function tf_only_name_valid

tests/test_main.c:880–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

878const char *tf_current_suite = NULL;
879
880static bool tf_only_name_valid(const char *name, size_t length) {
881 for (size_t i = 0; i < length; i++) {
882 if (!isalnum((unsigned char)name[i]) && name[i] != '_') {
883 return false;
884 }
885 }
886 return length > 0;
887}
888
889/* Adds the token in text[0..length). Surrounding whitespace is not part of it
890 * (the CR of a CRLF file included), and an empty span is not a token. */

Callers 1

tf_only_addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected