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)
| 206 | /// When enabled (the default), all compiled programs exclusively match |
| 207 | /// valid UTF-8 bytes. |
| 208 | pub fn only_utf8(mut self, yes: bool) -> Self { |
| 209 | self.only_utf8 = yes; |
| 210 | self |
| 211 | } |
| 212 | |
| 213 | /// Set the Unicode flag. |
| 214 | pub fn unicode(mut self, yes: bool) -> Self { |
no outgoing calls