1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00
This commit is contained in:
gnosygnu
2014-09-07 22:38:50 -04:00
parent be63adc5af
commit a022d7f26c
293 changed files with 2546 additions and 1942 deletions

View File

@@ -27,7 +27,7 @@ public class ByteAryAry_chkr implements Tst_chkr {
err += mgr.Tst_val(true, path, "len", ary.length, actl_len);
for (int i = 0; i < expd_len; i++) {
byte[] actl_itm = i >= actl_len ? null : actl[i];
err += mgr.Tst_val(false, path, "ary:" + Int_.XtoStr(i), String_.new_utf8_(ary[i]), String_.new_utf8_(actl_itm));
err += mgr.Tst_val(false, path, "ary:" + Int_.Xto_str(i), String_.new_utf8_(ary[i]), String_.new_utf8_(actl_itm));
}
return err;
}

View File

@@ -21,7 +21,7 @@ public class Gfo_usr_dlg_fmt {
if (cur < prog_prv + prog_interval) return usr_dlg.Canceled();
prog_prv = cur;
String pct = DecimalAdp_.CalcPctStr(cur + ListAdp_.Base1, end, "00.00");
usr_dlg.Prog_many(grp_key, msg_key, fmt, Int_.XtoStr_PadBgn(cur + ListAdp_.Base1, endLen), end, pct);
usr_dlg.Prog_many(grp_key, msg_key, fmt, Int_.Xto_str_pad_bgn(cur + ListAdp_.Base1, endLen), end, pct);
return usr_dlg.Canceled();
} String fmt; int end, endLen;
public static Gfo_usr_dlg_fmt fmt_(String grp_key, String msg_key, String fmt, int end, float pct) {

View File

@@ -52,7 +52,7 @@ public class HierPosAryBldr {
public String XtoStr() {
String_bldr sb = String_bldr_.new_();
for (int i = 0; i < aryIdx; i++)
sb.Add_spr_unless_first(Int_.XtoStr(ary[i]), " ", i);
sb.Add_spr_unless_first(Int_.Xto_str(ary[i]), " ", i);
return sb.XtoStr();
}
int[] ary; int aryIdx = -1; int root = -1;

View File

@@ -66,7 +66,7 @@ public class NumberParser_tst {
private void tst_Dec(String raw, DecimalAdp expd) {
byte[] raw_bry = Bry_.new_ascii_(raw);
DecimalAdp actl = parser.Parse(raw_bry, 0, raw_bry.length).AsDec();
Tfds.Eq(expd.XtoDecimal(), actl.XtoDecimal(), raw);
Tfds.Eq(expd.Xto_decimal(), actl.Xto_decimal(), raw);
}
private void tst_Err(String raw, boolean expd) {
byte[] raw_bry = Bry_.new_ascii_(raw);

View File

@@ -50,7 +50,7 @@ public class Tst_mgr {
int max_len = expd_ary_len > actl_ary_len ? expd_ary_len : actl_ary_len;
int err = 0;
for (int i = 0; i < max_len; i++) {
String path = ownerPath + Int_.XtoStr(i);
String path = ownerPath + Int_.Xto_str(i);
Tst_chkr expd_obj = i < expd_ary_len ? expd_ary[i] : Tst_mgr.Null_chkr;
Object actl_obj = i < actl_ary_len ? actl_ary[i] : "<NULL OBJ>";
String actl_type = i < actl_ary_len ? ClassAdp_.NameOf_obj(actl_obj) : "<NULL TYPE>";

View File

@@ -208,7 +208,6 @@ public class Url_encoder implements Url_encoder_interface {
rv.Itms_ini(Byte_ascii.Percent);
mediawiki_base(rv, true);
rv.Itms_raw_diff(Byte_ascii.Space, Byte_ascii.Underline);
// rv.Itms_decode_diff(Byte_ascii.Underline, Byte_ascii.Underline);
rv.Itms_raw_same_many(Byte_ascii.Semic, Byte_ascii.At, Byte_ascii.Dollar, Byte_ascii.Bang, Byte_ascii.Asterisk
, Byte_ascii.Paren_bgn, Byte_ascii.Paren_end, Byte_ascii.Comma, Byte_ascii.Slash, Byte_ascii.Colon
, Byte_ascii.Hash// NOTE: not part of wfUrlEncode; not sure where this is specified; needed for A#b