(&self, pos: usize)
| 248 | } |
| 249 | |
| 250 | fn boundary(&self, pos: usize) -> bool { |
| 251 | let before = pos > 0 && is_word(self.input[pos - 1]); |
| 252 | let after = pos < self.input.len() && is_word(self.input[pos]); |
| 253 | before != after |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | fn empty_caps(ngroups: usize) -> Caps { |