Added number convert method
This commit is contained in:
parent
a19fa34f44
commit
bb76cbbe2f
|
@ -112,4 +112,17 @@ public enum BaseGlyphSet implements BãßBȍőnGlyphSetʸᴰ<BaseGlyphSet> {
|
||||||
BBC.BOON_INIT(this);
|
BBC.BOON_INIT(this);
|
||||||
this.BȍőnJmxInit(BãßBȍőnGlyphSetKeyʸᴰ.JMX);
|
this.BȍőnJmxInit(BãßBȍőnGlyphSetKeyʸᴰ.JMX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String BȍőnConvertTo(String numbers) {
|
||||||
|
StringBuilder buf = new StringBuilder();
|
||||||
|
for (char c:numbers.toCharArray()) {
|
||||||
|
for (BaseGlyphSet set:values()) {
|
||||||
|
int loc = set.BȍőnGlyphSetNumber10().BȍőnIndexOf(""+c);
|
||||||
|
if (loc != -1) {
|
||||||
|
buf.append(set.BȍőnGlyphSetNumber10().BȍőnCharFor(loc));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return buf.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,6 +114,10 @@ public final class BaseGlyphSetNumber {
|
||||||
return chars.get(number);
|
return chars.get(number);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int BȍőnIndexOf(String str) {
|
||||||
|
return chars.indexOf(str);
|
||||||
|
}
|
||||||
|
|
||||||
public String BȍőnCharSeperator() {
|
public String BȍőnCharSeperator() {
|
||||||
return charSeperator;
|
return charSeperator;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue