`\[[^\]]*\]` at `i` (the INIT/ARRAY declarator form — the class admits newlines): position after the FIRST `]`, or None.
(s: &[u8], i: usize)
| 517 | |
| 518 | /// `\[[^\]]*\]` at `i` (the INIT/ARRAY declarator form — the class admits |
| 519 | /// newlines): position after the FIRST `]`, or None. |
| 520 | fn bracket_span(s: &[u8], i: usize) -> Option<usize> { |
| 521 | if s.get(i) != Some(&b'[') { |
| 522 | return None; |
| 523 | } |
| 524 | let mut j = i + 1; |
| 525 | while j < s.len() && s[j] != b']' { |
| 526 | j += 1; |
| 527 | } |
| 528 | if j < s.len() { |
| 529 | Some(j + 1) |
| 530 | } else { |
| 531 | None |
| 532 | } |
| 533 | } |
| 534 | |
| 535 | /// Anchor-skeleton driver shared by INIT_RE and ARRAY_TABLE_RE: both match |
no test coverage detected