When disabled, the program compiled may match arbitrary bytes. When enabled (the default), all compiled programs exclusively match valid UTF-8 bytes.
(mut self, yes: bool)
| 91 | /// When enabled (the default), all compiled programs exclusively match |
| 92 | /// valid UTF-8 bytes. |
| 93 | pub fn only_utf8(mut self, yes: bool) -> Self { |
| 94 | self.compiled.only_utf8 = yes; |
| 95 | self |
| 96 | } |
| 97 | |
| 98 | /// When set, the machine returned is suitable for use in the DFA matching |
| 99 | /// engine. |