We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eefc486 commit 6dcc884Copy full SHA for 6dcc884
ruby/extractor/src/bin/extractor.rs
@@ -43,6 +43,7 @@ lazy_static! {
43
static ref CP_NUMBER: regex::Regex = regex::Regex::new("cp([0-9]+)").unwrap();
44
}
45
46
+/// Returns the `encoding::Encoding` corresponding to the given encoding name, if one exists.
47
fn encoding_from_name(encoding_name: &str) -> Option<&(dyn encoding::Encoding + Send + Sync)> {
48
match encoding::label::encoding_from_whatwg_label(encoding_name) {
49
s @ Some(_) => s,
0 commit comments