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
2015-01-25 20:56:50 -05:00
parent 1b0042ef8a
commit efaf9dcd00
447 changed files with 10258 additions and 3016 deletions

View File

@@ -28,9 +28,9 @@ public class Xot_defn_ {
, Tid_msg = Xol_kwd_grp_.Id_msg
, Tid_msgnw = Xol_kwd_grp_.Id_msgnw
;
public static boolean Tid_is_subst(byte v) {
public static boolean Tid_is_substing(byte v) {
switch (v) {
case Tid_subst: case Tid_safesubst: return true;
case Tid_subst: return true; // NOTE: safesubst should not return true, else stack overflow; PAGE:en.w:Wikipedia:WikiProject_Celtic_history_and_culture DATE:2015-01-02
default: return false;
}
}

View File

@@ -67,9 +67,9 @@ public class Xot_invk_mock implements Xot_invk {
String kv_key_str = kv.Key();
Object kv_key_obj = kv.Key_as_obj();
Arg_nde_tkn_mock nde_tkn = null;
if (ClassAdp_.Eq_typeSafe(kv_key_obj, Int_.ClassOf)) // key is int; EX: 1 => val
if (ClassAdp_.Eq_typeSafe(kv_key_obj, Int_.Cls_ref_type)) // key is int; EX: 1 => val
nde_tkn = new Arg_nde_tkn_mock(null, kv.Val_to_str_or_empty()); // add w/o key
else if (ClassAdp_.Eq_typeSafe(kv.Val(), Bool_.ClassOf)) { // val is boolean; EX: key => true || key => false
else if (ClassAdp_.Eq_typeSafe(kv.Val(), Bool_.Cls_ref_type)) { // val is boolean; EX: key => true || key => false
boolean kv_val_bool = Bool_.cast_(kv.Val());
if (kv_val_bool)
nde_tkn = new Arg_nde_tkn_mock(kv_key_str, "1"); // true => 1 (PHP behavior)