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

Function rst_count

tests/test_doc_links_rst.c:75–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 "``pkg.base.top`` and :source:`a file <pkg/base.py>`.\n"; /* 43 */
74
75static int rst_count(const CBMFileResult *r, int syntax) {
76 int n = 0;
77 for (int i = 0; i < r->doc_links.count; i++) {
78 n += r->doc_links.items[i].syntax == syntax;
79 }
80 return n;
81}
82
83static bool rst_raw_has(const CBMFileResult *r, const char *needle) {
84 for (int i = 0; i < r->doc_links.count; i++) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected