@Test public void exceptionOnBadChar2() { thrown.expect(RuntimeException.class); decodeBase45(";"); }
public static long decodeBase45(CharSequence charSequence) { long sum = 0; for (int i = 0; i < charSequence.length(); i++) { final int c = (int) charSequence.charAt(i); int add = decodeChar(c); if (add >= BASE45) { add -= BASE45; } sum = (sum * (long) BASE45) + (long) add; } return sum; }
CookieSafeBase90 { public static long decodeBase45(CharSequence charSequence) { long sum = 0; for (int i = 0; i < charSequence.length(); i++) { final int c = (int) charSequence.charAt(i); int add = decodeChar(c); if (add >= BASE45) { add -= BASE45; } sum = (sum * (long) BASE45) + (long) add; } return sum; } }
CookieSafeBase90 { public static long decodeBase45(CharSequence charSequence) { long sum = 0; for (int i = 0; i < charSequence.length(); i++) { final int c = (int) charSequence.charAt(i); int add = decodeChar(c); if (add >= BASE45) { add -= BASE45; } sum = (sum * (long) BASE45) + (long) add; } return sum; }  }
CookieSafeBase90 { public static long decodeBase45(CharSequence charSequence) { long sum = 0; for (int i = 0; i < charSequence.length(); i++) { final int c = (int) charSequence.charAt(i); int add = decodeChar(c); if (add >= BASE45) { add -= BASE45; } sum = (sum * (long) BASE45) + (long) add; } return sum; }  static String encodeBase45(long value, boolean highRange, boolean flipLastByte); static String encodeBase90Unsigned(long value); static String encodeBase90Signed(long value); static String encodeBytesBase90(byte[] bytes); static byte[] decodeBytesBase90(CharSequence charSequence); static long decodeBase90(CharSequence charSequence, boolean signed); static long decodeBase45(CharSequence charSequence); }
CookieSafeBase90 { public static long decodeBase45(CharSequence charSequence) { long sum = 0; for (int i = 0; i < charSequence.length(); i++) { final int c = (int) charSequence.charAt(i); int add = decodeChar(c); if (add >= BASE45) { add -= BASE45; } sum = (sum * (long) BASE45) + (long) add; } return sum; }  static String encodeBase45(long value, boolean highRange, boolean flipLastByte); static String encodeBase90Unsigned(long value); static String encodeBase90Signed(long value); static String encodeBytesBase90(byte[] bytes); static byte[] decodeBytesBase90(CharSequence charSequence); static long decodeBase90(CharSequence charSequence, boolean signed); static long decodeBase45(CharSequence charSequence); static final int MIDDLE_CHAR; }