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

Function jv_java_ref

internal/cbm/doclink_jvm.c:362–370  ·  view source on GitHub ↗

The reference at s[0, n): what the doc tool reads as one reference. Text * glued to it (`Foo,`, `http://x`) makes the whole word the (malformed) * reference. Returns its length, 0 when there is none. */

Source from the content-addressed store, hash-verified

360 * glued to it (`Foo,`, `http://x`) makes the whole word the (malformed)
361 * reference. Returns its length, 0 when there is none. */
362static size_t jv_java_ref(const char *s, size_t n) {
363 size_t r = jv_java_ref_len(s, n);
364 if (r < n && !jv_blank(s[r])) {
365 while (r < n && !jv_blank(s[r])) {
366 r++;
367 }
368 }
369 return r;
370}
371
372/* The href of an `<a href="...">` at s[0, n): pushed as a URL. */
373static void jv_java_href(jv_doc_t *d, const char *s, size_t n, uint32_t line) {

Callers 2

jv_java_block_tagFunction · 0.85
jv_java_inlineFunction · 0.85

Calls 2

jv_java_ref_lenFunction · 0.85
jv_blankFunction · 0.85

Tested by

no test coverage detected