mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v2.10.3.1
This commit is contained in:
@@ -34,7 +34,7 @@ class GfmlTypeCompiler_fxt {
|
||||
}
|
||||
public void tst_Compile(GfmlNde_mok nde, GfmlTyp_mok expd) {
|
||||
GfmlNde gnde = run_Resolve(this.Regy(), "_type/type", nde);
|
||||
Ordered_hash list = Ordered_hash_.new_();
|
||||
Ordered_hash list = Ordered_hash_.New();
|
||||
GfmlType actlType = GfmlTypeCompiler.Compile(gnde, GfmlType_.Root, this.Regy(), list);
|
||||
GfmlTyp_mok actl = GfmlTyp_mok.type_(actlType);
|
||||
TfdsTstr_fxt tstr = TfdsTstr_fxt.new_();
|
||||
@@ -57,7 +57,7 @@ class GfmlTypeCompiler_fxt {
|
||||
for (int i = 0; i < max; i++) {
|
||||
GfmlFld_mok expdFld = (GfmlFld_mok)tstr.List_FetchAtOrNull(expd.Subs(), i);
|
||||
GfmlFld_mok actlFld = (GfmlFld_mok)tstr.List_FetchAtOrNull(actl.Subs(), i);
|
||||
tstr.SubName_push(Int_.Xto_str(i) + " fld");
|
||||
tstr.SubName_push(Int_.To_str(i) + " fld");
|
||||
tst(tstr, expdFld, actlFld);
|
||||
tstr.SubName_pop();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ class GfmlNde_mok implements GfmlItm_mok {
|
||||
public List_adp Subs() {return subs;}
|
||||
public String XtoStrStub() {
|
||||
String_bldr sb = String_bldr_.new_();
|
||||
sb.Add_kv("key=", key).Add_kv("hnd=", hnd).Add_kv("typ=", typ).Add_kv("subs=", Int_.Xto_str(subs.Count()));
|
||||
sb.Add_kv("key=", key).Add_kv("hnd=", hnd).Add_kv("typ=", typ).Add_kv("subs=", Int_.To_str(subs.Count()));
|
||||
return sb.To_str();
|
||||
}
|
||||
public GfmlNde_mok Subs_(GfmlItm_mok... ary) {
|
||||
@@ -142,7 +142,7 @@ class GfmlTypeResolver_fxt {
|
||||
for (int i = 0; i < max; i++) {
|
||||
GfmlItm_mok expdSub = (GfmlItm_mok)tstr.List_FetchAtOrNull(expd.Subs(), i);
|
||||
GfmlItm_mok actlSub = (GfmlItm_mok)tstr.List_FetchAtOrNull(actl.Subs(), i);
|
||||
tstr.SubName_push(Int_.Xto_str(i));
|
||||
tstr.SubName_push(Int_.To_str(i));
|
||||
if (expdSub == null) {
|
||||
GfmlNde_mok mm = GfmlNde_mok.as_(actlSub);
|
||||
String actlSubStr = mm == null ? "sub:null" : mm.XtoStrStub();
|
||||
|
||||
@@ -68,7 +68,7 @@ class GfmlTkn_mok {
|
||||
for (int i = 0; i < max; i++) {
|
||||
GfmlTkn_mok expdSub = (GfmlTkn_mok)tstr.List_FetchAtOrNull(expd.Subs(), i);
|
||||
GfmlTkn_mok actlSub = (GfmlTkn_mok)tstr.List_FetchAtOrNull(actl.Subs(), i);
|
||||
tstr.SubName_push(Int_.Xto_str(i));
|
||||
tstr.SubName_push(Int_.To_str(i));
|
||||
tst(tstr, expdSub, actlSub);
|
||||
tstr.SubName_pop();
|
||||
}
|
||||
|
||||
@@ -20,8 +20,8 @@ class UsrMsg_mok {
|
||||
public String Main() {return main;} public UsrMsg_mok Main_(String v) {main = v; return this;} private String main;
|
||||
public UsrMsg_mok Add_(String k, Object o) {hash.Add(k, KeyVal_.new_(k, o)); return this;}
|
||||
public UsrMsg_mok Require_(String k) {required.Add(k, k); return this;}
|
||||
public Ordered_hash Args() {return hash;} Ordered_hash hash = Ordered_hash_.new_();
|
||||
public Ordered_hash Required() {return required;} Ordered_hash required = Ordered_hash_.new_();
|
||||
public Ordered_hash Args() {return hash;} Ordered_hash hash = Ordered_hash_.New();
|
||||
public Ordered_hash Required() {return required;} Ordered_hash required = Ordered_hash_.New();
|
||||
public static UsrMsg_mok new_(UsrMsg um) {
|
||||
UsrMsg_mok rv = new UsrMsg_mok();
|
||||
if (um != null) {
|
||||
|
||||
@@ -59,7 +59,7 @@ public class z801_useCase_DataRdr_tst {
|
||||
fx_rdr.tst_Atrs(subRdr, kv_("x", "1"), kv_("y", "2"));
|
||||
}
|
||||
KeyVal kv_(String key, Object val) {return KeyVal_.new_(key, val);}
|
||||
DataRdr_Fxt fx_rdr = DataRdr_Fxt._;
|
||||
DataRdr_Fxt fx_rdr = DataRdr_Fxt.Instance;
|
||||
DataRdr rdr, subRdr;
|
||||
}
|
||||
class DataRdr_Fxt {
|
||||
@@ -77,5 +77,5 @@ class DataRdr_Fxt {
|
||||
actlAry[i] = rdr.KeyValAt(i);
|
||||
Tfds.Eq_ary_str(expdAry, actlAry);
|
||||
}
|
||||
public static final DataRdr_Fxt _ = new DataRdr_Fxt(); DataRdr_Fxt() {}
|
||||
public static final DataRdr_Fxt Instance = new DataRdr_Fxt(); DataRdr_Fxt() {}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ public class z803_useCase_KbdKeyboard_tst {
|
||||
}
|
||||
@Test public void Load_Smoke() {
|
||||
Io_url url = Tfds.RscDir.GenSubFil_nest("110_gfml", "cfgs_archive", "gfui-keyboard-ui.cfg.gfml");
|
||||
raw = Io_mgr.I.LoadFilStr(url);
|
||||
raw = Io_mgr.Instance.LoadFilStr(url);
|
||||
gdoc = GfmlDoc_.parse_any_eol_(raw);
|
||||
// Tfds.Write(gdoc.RootNde().To_str());
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ public class z901_perf_tst {
|
||||
// @Test
|
||||
public void Long() {
|
||||
// String longText = String_.Repeat("a", 30 * 1000 * 1000);
|
||||
String longText = Io_mgr.I.LoadFilStr(Io_url_.new_any_("C:\\core_weekly.temp.gfio"));
|
||||
String longText = Io_mgr.Instance.LoadFilStr(Io_url_.new_any_("C:\\core_weekly.temp.gfio"));
|
||||
// String_bldr sbXml = String_bldr_.new_();
|
||||
// sbXml.Add("<");
|
||||
// sbXml.Add(longText);
|
||||
@@ -108,7 +108,7 @@ class TimerWatch {
|
||||
this.End();
|
||||
Tfds.Write(XtoStr_ms() + " " + text);
|
||||
}
|
||||
public String XtoStr_ms() {return Long_.Xto_str(duration);}
|
||||
public String XtoStr_ms() {return Long_.To_str(duration);}
|
||||
public static TimerWatch new_() {
|
||||
TimerWatch rv = new TimerWatch();
|
||||
rv.Bgn();
|
||||
|
||||
Reference in New Issue
Block a user