(name: &str)
| 184 | /// Matches: utf-8, utf_8, utf8, UTF-8, etc. |
| 185 | #[cfg(feature = "parser")] |
| 186 | fn is_utf8_encoding(name: &str) -> bool { |
| 187 | let normalized: String = name.chars().filter(|&c| c != '-' && c != '_').collect(); |
| 188 | normalized.eq_ignore_ascii_case("utf8") |
| 189 | } |
| 190 | |
| 191 | #[cfg(feature = "parser")] |
| 192 | fn decode_source_bytes(source: &[u8], filename: &str, vm: &VirtualMachine) -> PyResult<String> { |
nothing calls this directly
no test coverage detected