A Go identifier-or-DNS token at p (the group name). */
| 638 | |
| 639 | /* A Go identifier-or-DNS token at p (the group name). */ |
| 640 | static void op_token(const char *p, char *out, size_t out_sz) { |
| 641 | size_t n = 0; |
| 642 | while (p[n] && (op_ident_char(p[n]) || p[n] == '.' || p[n] == '-') && n + SKIP_ONE < out_sz) { |
| 643 | n++; |
| 644 | } |
| 645 | snprintf(out, out_sz, "%.*s", (int)n, p); |
| 646 | } |
| 647 | |
| 648 | /* Owned strings. */ |
| 649 | typedef struct { |
no test coverage detected