From d183a326aaf91cf2be174c71a6ef1f98daaa8284 Mon Sep 17 00:00:00 2001 From: Henry Schimke Date: Tue, 21 Mar 2023 09:19:52 -0500 Subject: [PATCH] in progress --- .../base_extentions/qrcode_version.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/common/cpp_essentials/base_extentions/qrcode_version.rs b/src/common/cpp_essentials/base_extentions/qrcode_version.rs index bcfe438..a63a2aa 100644 --- a/src/common/cpp_essentials/base_extentions/qrcode_version.rs +++ b/src/common/cpp_essentials/base_extentions/qrcode_version.rs @@ -2,6 +2,19 @@ use crate::common::Result; use crate::qrcode::decoder::{Version, VersionRef, VERSION_DECODE_INFO}; use crate::Exceptions; +// const Version* Version::AllMicroVersions() +// { +// /** +// * See ISO 18004:2006 6.5.1 Table 9 +// */ +// static const Version allVersions[] = { +// {1, {2, 1, 3, 0, 0}}, +// {2, {5, 1, 5, 0, 0, 6, 1, 4, 0, 0}}, +// {3, {6, 1, 11, 0, 0, 8, 1, 9, 0, 0}}, +// {4, {8, 1, 16, 0, 0, 10, 1, 14, 0, 0, 14, 1, 10, 0, 0}}}; +// return allVersions; +// } + impl Version { pub fn DimensionOfVersion(version: u32, is_micro: bool) -> u32 { Self::DimensionOffset(is_micro) + Self::DimensionStep(is_micro) * version