Skip to content

Commit

Permalink
Moved HTML entity mappings to hashify large map
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed Jan 26, 2025
1 parent 2b37017 commit fa34e10
Show file tree
Hide file tree
Showing 6 changed files with 2,145 additions and 762 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ readme = "README.md"
resolver = "2"

[dependencies]
hashify = { path = "../hashify" }
hashify = { version = "0.2" }
encoding_rs = { version = "0.8", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true }

Expand Down
2 changes: 1 addition & 1 deletion src/decoders/charsets/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn charset_decoder(charset: &[u8]) -> Option<DecoderFnc> {
};
}

hashify::map!(&l_charset[..charset.len().clamp(1, 45)],
hashify::tiny_map!(&l_charset[..charset.len().clamp(1, 45)],
"850" => decoder_ibm_850,
"866" => decoder_ibm866,
"arabic" => decoder_iso_8859_6,
Expand Down
Loading

0 comments on commit fa34e10

Please sign in to comment.