`\[[^\]]*\]` at `i` (the INIT/ARRAY declarator form — the class admits newlines): position after the FIRST `]`, or None.
(s: &[u8], i: usize)
| 528 | |
| 529 | /// `\[[^\]]*\]` at `i` (the INIT/ARRAY declarator form — the class admits |
| 530 | /// newlines): position after the FIRST `]`, or None. |
| 531 | fn bracket_span(s: &[u8], i: usize) -> Option<usize> { |
| 532 | if s.get(i) != Some(&b'[') { |
| 533 | return None; |
| 534 | } |
| 535 | let mut j = i + 1; |
| 536 | while j < s.len() && s[j] != b']' { |
| 537 | j += 1; |
| 538 | } |
| 539 | if j < s.len() { |
| 540 | Some(j + 1) |
| 541 | } else { |
| 542 | None |
| 543 | } |
| 544 | } |
| 545 | |
| 546 | /// Anchor-skeleton driver shared by INIT_RE and ARRAY_TABLE_RE: both match |
no test coverage detected