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

Function pl_is_module_name

internal/cbm/doclink_perl.c:539–553  ·  view source on GitHub ↗

`Ident(::Ident)*`: a module name. */

Source from the content-addressed store, hash-verified

537
538/* `Ident(::Ident)*`: a module name. */
539static bool pl_is_module_name(const char *p) {
540 if (!(isalpha((unsigned char)p[0]) || p[0] == '_')) {
541 return false;
542 }
543 for (size_t i = 0; p[i]; i++) {
544 if (pl_word(p[i])) {
545 continue;
546 }
547 if (p[i] != ':' || p[i + SKIP_ONE] != ':' || !pl_word(p[i + PAIR_LEN])) {
548 return false;
549 }
550 i++;
551 }
552 return true;
553}
554
555bool cbm_doclink_perl_parse_link(const char *raw, CBMPerlLink *out) {
556 if (!out) {

Callers 1

Calls 1

pl_wordFunction · 0.85

Tested by

no test coverage detected