| 1211 | } |
| 1212 | |
| 1213 | static bool adr_direct_ref(const char *s, size_t n) { |
| 1214 | size_t i = 0; |
| 1215 | while (i < n && (adr_blank(s[i]) || s[i] == ':' || s[i] == '|' || s[i] == '*' || s[i] == '_')) { |
| 1216 | i++; |
| 1217 | } |
| 1218 | unsigned number = 0; |
| 1219 | size_t len = 0; |
| 1220 | return i < n && (s[i] == '[' || adr_id_ref(s + i, n - i, &number, &len)); |
| 1221 | } |
| 1222 | |
| 1223 | /* "supersedes" and "superseded by" are ADR words wherever they stand; |
| 1224 | * "replaces" and "replaced by" are ordinary verbs of technical prose ("this |
no test coverage detected