From 18354befd1d67a3cb2d8a9b970b98dd45b43e8a3 Mon Sep 17 00:00:00 2001 From: able Date: Sun, 11 Apr 2021 11:59:26 -0500 Subject: [PATCH] More representative of base_55 as it should be --- src/base_55.rs | 53 +++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/src/base_55.rs b/src/base_55.rs index 60486da..cb4adc5 100644 --- a/src/base_55.rs +++ b/src/base_55.rs @@ -1,6 +1,32 @@ pub fn h78() { let x = 'b'; match x.char() { + 'Z' => -26, + 'Y' => -25, + 'X' => -24, + 'W' => -23, + 'V' => -22, + 'U' => -21, + 'T' => -20, + 'R' => -18, + 'S' => -19, + 'Q' => -17, + 'P' => -16, + 'O' => -15, + 'N' => -14, + 'M' => -13, + 'L' => -12, + 'K' => -11, + 'J' => -10, + 'I' => -9, + 'H' => -8, + 'G' => -7, + 'F' => -6, + 'E' => -5, + 'D' => -4, + 'C' => -3, + 'B' => -2, + 'A' => -1, ' ' => 0, 'a' => 1, 'b' => 2, @@ -28,32 +54,7 @@ pub fn h78() { 'x' => 24, 'y' => 25, 'z' => 26, - 'A' => 1 + 26, - 'B' => 2 + 26, - 'C' => 3 + 26, - 'D' => 4 + 26, - 'E' => 5 + 26, - 'F' => 6 + 26, - 'G' => 7 + 26, - 'H' => 8 + 26, - 'I' => 9 + 26, - 'J' => 10 + 26, - 'K' => 11 + 26, - 'L' => 12 + 26, - 'M' => 13 + 26, - 'N' => 14 + 26, - 'O' => 15 + 26, - 'P' => 16 + 26, - 'Q' => 17 + 26, - 'R' => 18 + 26, - 'S' => 19 + 26, - 'T' => 20 + 26, - 'U' => 21 + 26, - 'V' => 22 + 26, - 'W' => 23 + 26, - 'X' => 24 + 26, - 'Y' => 25 + 26, - 'Z' => 26 + 26, + // NOTE(Able): Why does it jump to 53 here? MY REASONS ARE BEYOND YOUR UNDERSTANDING MORTAL '/' => 53, '\\' => 54, '.' => 55,