Cleaned constants

This commit is contained in:
Willem Cazander 2022-10-18 01:14:47 +02:00
parent 0e5b46e9b0
commit 9dbf694313
7 changed files with 99 additions and 68 deletions

View file

@ -27,7 +27,8 @@ public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer {
private final int[] gridRank; private final int[] gridRank;
private final Random random; private final Random random;
private int runCounter; private int runCounter;
private final ImInt runSpeed = new ImInt(10); private final ImInt runSpeed = new ImInt(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_TEN);
private final static char DEFAULT_CHAR = 'ﷲ';
private final static UnicodePlane[] GRID_PLANES = { private final static UnicodePlane[] GRID_PLANES = {
UnicodePlane.BRAHMI, UnicodePlane.BRAHMI,
UnicodePlane.UGARITIC, UnicodePlane.UGARITIC,
@ -40,10 +41,10 @@ public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer {
this.gridBuffer = new int[gridHeight][gridWidth]; this.gridBuffer = new int[gridHeight][gridWidth];
this.gridRank = new int[gridWidth]; this.gridRank = new int[gridWidth];
this.random = new Random(); this.random = new Random();
for (int y=0; y<gridWidth; y++) { for (int y=Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO; y<gridWidth; y++) {
gridRank[y] = 0; gridRank[y] = Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;
for (int x=0; x<gridHeight; x++) { for (int x=Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO; x<gridHeight; x++) {
gridBuffer[x][y] = ' '; gridBuffer[x][y] = Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_SPACE;
} }
} }
StringBuilder buf = new StringBuilder(); StringBuilder buf = new StringBuilder();
@ -65,19 +66,19 @@ public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer {
public void render() { public void render() {
ImGui.sliderInt(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_SPACE, runSpeed.getData(), 0, 60); // empty ID not allowed in ImGui, but whitespace is an ID :) ImGui.sliderInt(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_SPACE, runSpeed.getData(), 0, 60); // empty ID not allowed in ImGui, but whitespace is an ID :)
ImGui.sameLine(); ImGui.sameLine();
ImCharacter.render("speedId", "RunSpeed", 'ﷲ', v -> unicode4DService.getCharacterForUnicode(v)); ImCharacter.render("speedId", "RunSpeed", DEFAULT_CHAR, v -> unicode4DService.getCharacterForUnicode(v));
ImGui.invisibleButton("matrix", ImGui.getWindowWidth(), ImGui.getWindowHeight()-(2*ImGui.getFontSize())); ImGui.invisibleButton("matrix", ImGui.getWindowWidth(), ImGui.getWindowHeight()-(2*ImGui.getFontSize()));
ImVec2 p0 = ImGui.getItemRectMin(); ImVec2 p0 = ImGui.getItemRectMin();
ImVec2 p1 = ImGui.getItemRectMax(); ImVec2 p1 = ImGui.getItemRectMax();
ImDrawList drawList = ImGui.getWindowDrawList(); ImDrawList drawList = ImGui.getWindowDrawList();
drawList.pushClipRect(p0.x, p0.y, p1.x, p1.y); drawList.pushClipRect(p0.x, p0.y, p1.x, p1.y);
for(int y=0; y<gridHeight; y++) { for(int y=Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO; y<gridHeight; y++) {
for(int x=0; x<gridWidth; x++) { for(int x=Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO; x<gridWidth; x++) {
int unicodeChar = gridBuffer[y][x]; int unicodeChar = gridBuffer[y][x];
DrawCharacter drawChar = unicode4DService.getCharacterForUnicode(unicodeChar); DrawCharacter drawChar = unicode4DService.getCharacterForUnicode(unicodeChar);
if (drawChar == null) { if (drawChar == null) {
drawChar = unicode4DService.getCharacterForUnicode('ﷲ'); drawChar = unicode4DService.getCharacterForUnicode(DEFAULT_CHAR);
} }
ImCharacter.drawUnicode4D(drawChar, x*ImCharacter.WIDTH, y*ImCharacter.HEIGHT, 0x3c68bb5b, drawList); ImCharacter.drawUnicode4D(drawChar, x*ImCharacter.WIDTH, y*ImCharacter.HEIGHT, 0x3c68bb5b, drawList);
} }
@ -91,25 +92,28 @@ public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer {
if (runCounter < runSpeed.get()) { if (runCounter < runSpeed.get()) {
return; return;
} }
runCounter = 0; runCounter = Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;
for (int x=gridHeight-1; x>0; x--) { for (int x=gridHeight-1; x>Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO; x--) {
for (int y=0; y<gridWidth; y++) { for (int y=Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO; y<gridWidth; y++) {
gridBuffer[x][y] = gridBuffer[x-1][y]; gridBuffer[x][y] = gridBuffer[x-1][y];
} }
} }
for (int y=0; y<gridWidth; y++) { for (int y=0; y<gridWidth; y++) {
int charSelect = 0; int charSelect = Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;
for (int i=0;i<4;i++) { for (int i=Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;i<4;i++) {
charSelect = gridChars.codePointAt(random.nextInt(gridChars.length())); charSelect = gridChars.codePointAt(random.nextInt(gridChars.length()));
DrawCharacter drawChar = unicode4DService.getCharacterForUnicode(charSelect); DrawCharacter drawChar = unicode4DService.getCharacterForUnicode(charSelect);
if (drawChar != null) { if (drawChar != null) {
break; break;
} }
} }
int charRandom = gridRank[y]>0?(random.nextInt(100)<70? charSelect:' '):(random.nextInt(100)<1? charSelect:' '); if (gridRank[y] > Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO) {
gridBuffer[0][y] = charRandom; gridBuffer[Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO][y] = random.nextInt(100)<70? charSelect:Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_SPACE;
if (gridBuffer[0][y]==' ') { } else {
gridRank[y] = 0; gridBuffer[Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO][y] = random.nextInt(100)<Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ONE? charSelect:Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_SPACE;
}
if (gridBuffer[0][y]==Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_SPACE) {
gridRank[y] = Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;
} else { } else {
gridRank[y]++; gridRank[y]++;
} }

View file

@ -79,21 +79,36 @@ public interface Bãß {
} }
} }
//@ImportStatic(guard = true, reason = "Death to import static name space pollution.")
public static final class ℭỗᶇṧⱦᶏꬼȶʂ { public static final class ℭỗᶇṧⱦᶏꬼȶʂ {
public static final String STR_VALUES = "values";
public static final String STR_NAME = "name"; // 4 is magnetic consent and 3 is forced stable outcome
public static final String STR_TYPE = "type"; public static final char CHAR_ZERO = '0';
public static final String STR_DOT = "."; public static final char CHAR_ONE = '1';
public static final char CHAR_SPACE = ' ';
public static final char CHAR_A = 'a';
public static final String STR_VOID = null;
public static final String STR_EMPTY = ""; public static final String STR_EMPTY = "";
public static final String STR_SPACE = " "; public static final String STR_SPACE = " ";
public static final String STR_COMMA = ","; public static final String STR_SPACE_CHINA = "\u3000";
public static final String STR_COLON = ":";
public static final String STR_IS = "=";
public static final int INT_ZERO = 0; public static final int INT_ZERO = 0;
public static final int INT_ONE = 1; public static final int INT_ONE = 1;
public static final int INT_TEN = 10; public static final int INT_TEN = 10;
public static final long LONG_ZERO = 0l;
public static final long LONG_ONE = 1l;
public static final long LONG_TEN = 10l;
public static final float FLOAT_ZERO = 0f;
public static final float FLOAT_ONE = 1f;
public static final float FLOAT_TEN = 10f;
public static final double DOUBLE_ZERO = 0d;
public static final double DOUBLE_ONE = 1d;
public static final double DOUBLE_TEN = 10d;
private ℭỗᶇṧⱦᶏꬼȶʂ() { private ℭỗᶇṧⱦᶏꬼȶʂ() {
} }
} }

View file

@ -1,13 +1,22 @@
package love.distributedrebirth.bassboonyd; package love.distributedrebirth.bassboonyd;
import java.lang.reflect.InvocationTargetException;
import love.distributedrebirth.bassboonyd.clazz.BãßBȍőnAuthor注; import love.distributedrebirth.bassboonyd.clazz.BãßBȍőnAuthor注;
import love.distributedrebirth.bassboonyd.coffin.BãßBȍőnCoffinNail; import love.distributedrebirth.bassboonyd.coffin.BãßBȍőnCoffinNail;
import love.distributedrebirth.bassboonyd.sinit.BãßBȍőnꝐŕḯṿª;
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public interface DefaultEnumBaseʸᴰ<T, K extends BãßBȍőnCoffinNail> extends DefaultBãßBȍőnʸᴰ<T, K> {
// Bȍőn prefix is for set instance enum methods (called DefaultEnumSetʸᴰ) // Bȍőn prefix is for set instance enum methods (called DefaultEnumSetʸᴰ)
// Bãß prefix is for single instance enum methods (called DefaultEnumInstanceʸᴰ) // Bãß prefix is for single instance enum methods (called DefaultEnumInstanceʸᴰ)
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public interface DefaultEnumBaseʸᴰ<T, K extends BãßBȍőnCoffinNail> extends DefaultBãßBȍőnʸᴰ<T, K> {
public static final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª {
private static final String STR_VALUES = "values";
private Ꝑŕḯṿª() {
}
}
int ordinal(); int ordinal();
@ -20,9 +29,8 @@ public interface DefaultEnumBaseʸᴰ<T, K extends BãßBȍőnCoffinNail> extend
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
default T[] BãßInstances() { default T[] BãßInstances() {
try { try {
Object result = getClass().getMethod(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_VALUES).invoke(null); return (T[]) getClass().getMethod(Ꝑŕḯṿª.STR_VALUES).invoke(null);
return (T[]) result; } catch (NoSuchMethodException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | SecurityException e) {
} catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} }

View file

@ -19,6 +19,12 @@ import love.distributedrebirth.bassboonyd.spider.BãßBȍőnSpiderEgg注;
public interface DefaultEnumBaseᴶᴹˣ<T,K extends BãßBȍőnCoffinNail> extends DefaultEnumBaseʸᴰ<T,K> { public interface DefaultEnumBaseᴶᴹˣ<T,K extends BãßBȍőnCoffinNail> extends DefaultEnumBaseʸᴰ<T,K> {
public static final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª { public static final class Ꝑŕḯṿª implements BãßBȍőnꝐŕḯṿª {
protected static final String STR_NAME = "name";
protected static final String STR_TYPE = "type";
protected static final String STR_DOT = ".";
protected static final String STR_COLON = ":";
protected static final String STR_IS = "=";
protected static final String STR_COMMA = ",";
private static final String GHOST_KEY_JMX = "JMX"; private static final String GHOST_KEY_JMX = "JMX";
private Ꝑŕḯṿª() { private Ꝑŕḯṿª() {

View file

@ -5,7 +5,6 @@ import java.lang.management.ManagementFactory;
import javax.management.MBeanServer; import javax.management.MBeanServer;
import javax.management.ObjectName; import javax.management.ObjectName;
import love.distributedrebirth.bassboonyd.Bãß;
import love.distributedrebirth.bassboonyd.BãßBȍőnPhaseBarrierʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnPhaseBarrierʸᴰ;
import love.distributedrebirth.bassboonyd.DefaultEnumInstanceʸᴰ; import love.distributedrebirth.bassboonyd.DefaultEnumInstanceʸᴰ;
import love.distributedrebirth.bassboonyd.clazz.BãßBȍőnAuthor注; import love.distributedrebirth.bassboonyd.clazz.BãßBȍőnAuthor注;
@ -26,9 +25,9 @@ public interface DefaultEnumInstanceᴶᴹˣ<T,K extends BãßBȍőnCoffinNail>
try { try {
StringBuilder name = new StringBuilder(); StringBuilder name = new StringBuilder();
name.append(boon.BãßPackageNaam()); name.append(boon.BãßPackageNaam());
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_COLON); name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª.STR_COLON);
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_TYPE); name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª.STR_TYPE);
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_IS); name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª.STR_IS);
name.append(boon.BãßInfoNaam()); name.append(boon.BãßInfoNaam());
MBeanServer server = ManagementFactory.getPlatformMBeanServer(); MBeanServer server = ManagementFactory.getPlatformMBeanServer();

View file

@ -5,7 +5,6 @@ import java.lang.management.ManagementFactory;
import javax.management.MBeanServer; import javax.management.MBeanServer;
import javax.management.ObjectName; import javax.management.ObjectName;
import love.distributedrebirth.bassboonyd.Bãß;
import love.distributedrebirth.bassboonyd.BãßBȍőnPhaseBarrierʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnPhaseBarrierʸᴰ;
import love.distributedrebirth.bassboonyd.DefaultEnumSetʸᴰ; import love.distributedrebirth.bassboonyd.DefaultEnumSetʸᴰ;
import love.distributedrebirth.bassboonyd.clazz.BãßBȍőnAuthor注; import love.distributedrebirth.bassboonyd.clazz.BãßBȍőnAuthor注;
@ -26,13 +25,13 @@ public interface DefaultEnumSetᴶᴹˣ<T,K extends BãßBȍőnCoffinNail> exten
try { try {
StringBuilder name = new StringBuilder(); StringBuilder name = new StringBuilder();
name.append(boon.BãßPackageNaam()); name.append(boon.BãßPackageNaam());
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_COLON); name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª.STR_COLON);
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_TYPE); name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª.STR_TYPE);
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_IS); name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª.STR_IS);
name.append(boon.BãßInfoNaam()); name.append(boon.BãßInfoNaam());
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_COMMA); name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª.STR_COMMA);
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_NAME); name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª.STR_NAME);
name.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_IS); name.append(DefaultEnumBaseᴶᴹˣ.Ꝑŕḯṿª.STR_IS);
name.append(boon.BȍőnNaam()); name.append(boon.BȍőnNaam());
MBeanServer server = ManagementFactory.getPlatformMBeanServer(); MBeanServer server = ManagementFactory.getPlatformMBeanServer();

View file

@ -155,8 +155,8 @@ public enum BaseGlyphSet implements DefaultEnumSetᴶᴹˣ<BaseGlyphSet,BaseGlyp
new BaseGlyphSetNumber("א","ב","ג","ד","ה","ו","ז","ח","ט","י","כ","ל","מ","נ","ס","ע","פ","צ","ק","ר","ש","ת","ך","ם","ן","ף","ץ"), new BaseGlyphSetNumber("א","ב","ג","ד","ה","ו","ז","ח","ט","י","כ","ל","מ","נ","ס","ע","פ","צ","ק","ר","ש","ת","ך","ם","ן","ף","ץ"),
true), true),
WHITESPACE( WHITESPACE(
new BaseGlyphSetNumber("\u3000","\u205F","\u202F","\u200A","\u2009","\u2008","\u2007","\u2006","\u2005","\u2004"), new BaseGlyphSetNumber(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_SPACE_CHINA,"\u205F","\u202F","\u200A","\u2009","\u2008","\u2007","\u2006","\u2005","\u2004"),
new BaseGlyphSetNumber("\u3000","\u205F","\u202F","\u200A","\u2009","\u2008","\u2007","\u2006","\u2005","\u2004","\u2003","\u2002","\u2001","\u2000","\u00A0","\u0020"), new BaseGlyphSetNumber(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.STR_SPACE_CHINA,"\u205F","\u202F","\u200A","\u2009","\u2008","\u2007","\u2006","\u2005","\u2004","\u2003","\u2002","\u2001","\u2000","\u00A0","\u0020"),
null null
), ),
; ;
@ -217,17 +217,17 @@ public enum BaseGlyphSet implements DefaultEnumSetᴶᴹˣ<BaseGlyphSet,BaseGlyp
} }
public String BȍőnPrintNumber10(BigInteger number) { public String BȍőnPrintNumber10(BigInteger number) {
String amount10 = number.toString(T10PartDecimal.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()); String amount10 = number.toString(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_TEN);
StringBuilder buf16 = new StringBuilder(); StringBuilder buf16 = new StringBuilder();
for (char c:amount10.toCharArray()) { for (char c:amount10.toCharArray()) {
if (BȍőnNumber10() == null) { if (BȍőnNumber10() == null) {
break; break;
} }
int numberDigit = 0; int numberDigit = Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;
if (c >= 'a') { if (c >= 'a') {
numberDigit = c - 'a' + 10; numberDigit = c - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_A + Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_TEN;
} else { } else {
numberDigit = c - '0'; numberDigit = c - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_ZERO;
} }
buf16.append(BȍőnPrintNumber10(numberDigit)); buf16.append(BȍőnPrintNumber10(numberDigit));
} }
@ -242,16 +242,16 @@ public enum BaseGlyphSet implements DefaultEnumSetᴶᴹˣ<BaseGlyphSet,BaseGlyp
printNumber10Count.increment(); printNumber10Count.increment();
String maxDigitNumber = Integer.toString(numberMax); String maxDigitNumber = Integer.toString(numberMax);
StringBuilder maxDigitFormat = new StringBuilder(); StringBuilder maxDigitFormat = new StringBuilder();
for (int i=0;i<maxDigitNumber.length();i++) { for (int i=Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;i<maxDigitNumber.length();i++) {
maxDigitFormat.append("0"); maxDigitFormat.append(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_ZERO);
} }
String numberStr = new DecimalFormat(maxDigitFormat.toString()).format(number); String numberStr = new DecimalFormat(maxDigitFormat.toString()).format(number);
StringBuilder buf = new StringBuilder(); StringBuilder buf = new StringBuilder();
for (int i=0;i<numberStr.length();i++) { for (int i=Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;i<numberStr.length();i++) {
char c = numberStr.charAt(i); char c = numberStr.charAt(i);
int numberDigit = c - '0'; int numberDigit = c - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_ZERO;
buf.append(BȍőnNumber10().BȍőnCharFor(numberDigit)); buf.append(BȍőnNumber10().BȍőnCharFor(numberDigit));
if (i<numberStr.length() - 1) { if (i<numberStr.length() - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ONE) {
buf.append(BȍőnNumber10().BȍőnCharSeperator()); buf.append(BȍőnNumber10().BȍőnCharSeperator());
} }
} }
@ -269,11 +269,11 @@ public enum BaseGlyphSet implements DefaultEnumSetᴶᴹˣ<BaseGlyphSet,BaseGlyp
if (BȍőnNumber16() == null) { if (BȍőnNumber16() == null) {
break; break;
} }
int numberDigit = 0; int numberDigit = Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;
if (c >= 'a') { if (c >= 'a') {
numberDigit = c - 'a' + 10; numberDigit = c - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_A + Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_TEN;
} else { } else {
numberDigit = c - '0'; numberDigit = c - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_ZERO;
} }
if (c2 == 0) { if (c2 == 0) {
c2 = numberDigit * 16; c2 = numberDigit * 16;
@ -298,24 +298,24 @@ public enum BaseGlyphSet implements DefaultEnumSetᴶᴹˣ<BaseGlyphSet,BaseGlyp
StringBuilder buf = new StringBuilder(); StringBuilder buf = new StringBuilder();
BaseGlyphSet printSet = this; BaseGlyphSet printSet = this;
for (int i=numberStr.length();i<maxDigitNumber.length();i++) { for (int i=numberStr.length();i<maxDigitNumber.length();i++) {
buf.append(printSet.BȍőnNumber16().BȍőnCharFor(0)); buf.append(printSet.BȍőnNumber16().BȍőnCharFor(Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO));
if (i==numberStr.length() && BȍőnNumber16().BȍőnAltGlyphSet() != null) { if (i==numberStr.length() && BȍőnNumber16().BȍőnAltGlyphSet() != null) {
printSet = BȍőnNumber16().BȍőnAltGlyphSet(); printSet = BȍőnNumber16().BȍőnAltGlyphSet();
} }
} }
for (int i=0;i<numberStr.length();i++) { for (int i=Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;i<numberStr.length();i++) {
char c = numberStr.charAt(i); char c = numberStr.charAt(i);
int numberDigit = 0; int numberDigit = 0;
if (c >= 'a') { if (c >= Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_A) {
numberDigit = c - 'a' + 10; numberDigit = c - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_A + Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_TEN;
} else { } else {
numberDigit = c - '0'; numberDigit = c - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_ZERO;
} }
buf.append(printSet.BȍőnNumber16().BȍőnCharFor(numberDigit)); buf.append(printSet.BȍőnNumber16().BȍőnCharFor(numberDigit));
if (i<numberStr.length() - 1) { if (i<numberStr.length() - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ONE) {
buf.append(printSet.BȍőnNumber16().BȍőnCharSeperator()); buf.append(printSet.BȍőnNumber16().BȍőnCharSeperator());
} }
if (i==0 && BȍőnNumber16().BȍőnAltGlyphSet() != null) { if (i==Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO && BȍőnNumber16().BȍőnAltGlyphSet() != null) {
printSet = BȍőnNumber16().BȍőnAltGlyphSet(); printSet = BȍőnNumber16().BȍőnAltGlyphSet();
} }
} }
@ -341,19 +341,19 @@ public enum BaseGlyphSet implements DefaultEnumSetᴶᴹˣ<BaseGlyphSet,BaseGlyp
printSet = BȍőnNumber27().BȍőnAltGlyphSet(); printSet = BȍőnNumber27().BȍőnAltGlyphSet();
} }
} }
for (int i=0;i<numberStr.length();i++) { for (int i=Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;i<numberStr.length();i++) {
char c = numberStr.charAt(i); char c = numberStr.charAt(i);
int numberDigit = 0; int numberDigit = Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;
if (c >= 'a') { if (c >= 'a') {
numberDigit = c - 'a' + 10; numberDigit = c - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_A + 10;
} else { } else {
numberDigit = c - '0'; numberDigit = c - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.CHAR_ZERO;
} }
buf.append(printSet.BȍőnNumber27().BȍőnCharFor(numberDigit)); buf.append(printSet.BȍőnNumber27().BȍőnCharFor(numberDigit));
if (i<numberStr.length() - 1) { if (i<numberStr.length() - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ONE) {
buf.append(printSet.BȍőnNumber27().BȍőnCharSeperator()); buf.append(printSet.BȍőnNumber27().BȍőnCharSeperator());
} }
if (i==0 && BȍőnNumber27().BȍőnAltGlyphSet() != null) { if (i==Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO && BȍőnNumber27().BȍőnAltGlyphSet() != null) {
printSet = BȍőnNumber27().BȍőnAltGlyphSet(); printSet = BȍőnNumber27().BȍőnAltGlyphSet();
} }
} }