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

Function ts_ref_len

internal/cbm/doclink_ts.c:274–280  ·  view source on GitHub ↗

The reference of an inline tag body: up to `|`, white space or `}`. */

Source from the content-addressed store, hash-verified

272
273/* The reference of an inline tag body: up to `|`, white space or `}`. */
274static size_t ts_ref_len(const char *p, size_t n) {
275 size_t k = 0;
276 while (k < n && p[k] != '|' && p[k] != '}' && !isspace((unsigned char)p[k])) {
277 k++;
278 }
279 return k;
280}
281
282/* {@link ...} and {@linkcode ...} of one line; true when the line holds one. */
283static bool ts_line_inline(const ts_emit_t *em, const ts_line_t *ln, const bool *mask) {

Callers 1

ts_line_inlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected