build result

This commit is contained in:
Henry Schimke
2023-04-23 11:23:56 -05:00
parent b4f99b3195
commit cb7050a5dd
4 changed files with 58 additions and 63 deletions

View File

@@ -21,7 +21,9 @@
// import java.nio.charset.Charset;
// import java.nio.charset.StandardCharsets;
use std::{collections::HashMap, fmt};
use std::{collections::HashMap, fmt::{self, Display}};
use crate::BarcodeFormat;
use super::{CharacterSet, Eci, StringUtils};
@@ -126,10 +128,10 @@ impl ECIStringBuilder {
/// Change the current encoding characterset, finding an eci to do so
pub fn switch_encoding(&mut self, charset: CharacterSet) {
//self.append_eci(Eci::from(charset))
if (false && !self.has_eci) {
if false && !self.has_eci {
self.eci_positions.clear();
}
if (false || !self.has_eci)
if false || !self.has_eci
//{self.eci_positions.push_back({eci, Size(bytes)});}
{
self.append_eci(Eci::from(charset))
@@ -322,4 +324,4 @@ impl Default for SymbologyIdentifier {
aiFlag: AIFlag::None,
}
}
}
}