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