repurpose CharacterSetECI as encoding abstraction

This commit is contained in:
Henry Schimke
2023-03-02 15:50:56 -06:00
parent c4fec7d2ee
commit a0b8b68869
29 changed files with 304 additions and 337 deletions

View File

@@ -16,9 +16,7 @@
use std::rc::Rc;
use encoding::{self, EncodingRef};
use crate::common::Result;
use crate::common::{Result, CharacterSetECI};
use crate::{Dimension, Exceptions};
use super::{
@@ -26,7 +24,7 @@ use super::{
SymbolInfoLookup, SymbolShapeHint, TextEncoder, X12Encoder,
};
#[allow(dead_code)]
const DEFAULT_ENCODING: EncodingRef = encoding::all::ISO_8859_1;
const DEFAULT_ENCODING: CharacterSetECI = CharacterSetECI::ISO8859_1;
/**
* DataMatrix ECC 200 data encoder following the algorithm described in ISO/IEC 16022:200(E) in