mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v2.3.1.1
This commit is contained in:
@@ -185,7 +185,7 @@ public class Xob_hive_mgr {
|
||||
Xob_xdat_file xdat_fil = new Xob_xdat_file();
|
||||
if (xdat_bry.length > 0) // if file is not empty, load it and parse it
|
||||
xdat_fil.Parse(xdat_bry, xdat_bry.length, xdat_url);
|
||||
Bry_bfr tmp_bfr = wiki.Utl_bry_bfr_mkr().Get_m001();
|
||||
Bry_bfr tmp_bfr = wiki.Utl__bfr_mkr().Get_m001();
|
||||
xdat_fil.Insert(tmp_bfr, row);
|
||||
xdat_fil.Save(xdat_url);
|
||||
tmp_bfr.Mkr_rls();
|
||||
|
||||
@@ -39,7 +39,7 @@ public class Xow_data_mgr implements GfoInvkAble {
|
||||
) {
|
||||
Xol_lang lang = wiki.Lang();
|
||||
byte[] msg_key = ttl.Page_db();
|
||||
Bry_bfr tmp_bfr = wiki.Utl_bry_bfr_mkr().Get_b512();
|
||||
Bry_bfr tmp_bfr = wiki.Utl__bfr_mkr().Get_b512();
|
||||
msg_key = lang.Case_mgr().Case_build_1st_lower(tmp_bfr, msg_key, 0, msg_key.length);
|
||||
byte[] msg_val = Xol_msg_mgr_.Get_msg_itm(tmp_bfr, wiki, wiki.Lang(), msg_key).Val(); // NOTE: do not change to Get_msg_val; Get_msg_val, also replaces $1 with values, and $1 needs to be preserved for callers;
|
||||
rv.Data_raw_(msg_val);
|
||||
|
||||
@@ -66,7 +66,7 @@ public class Xow_hive_mgr_fxt {
|
||||
public Xow_hive_mgr_fxt Create_ctg(String key_str, int... pages) {Create_ctg(app, hive_mgr, key_str, pages); return this;}
|
||||
public static void Create_ctg(Xoae_app app, Xob_hive_mgr hive_mgr, String key_str, int... pages) {
|
||||
byte[] key_bry = Bry_.new_ascii_(key_str);
|
||||
Bry_bfr bfr = app.Utl_bry_bfr_mkr().Get_b512();
|
||||
Bry_bfr bfr = app.Utl__bfr_mkr().Get_b512();
|
||||
bfr.Add(key_bry);
|
||||
int pages_len = pages.length;
|
||||
for (int i = 0; i < pages_len; i++)
|
||||
@@ -77,7 +77,7 @@ public class Xow_hive_mgr_fxt {
|
||||
}
|
||||
public Xow_hive_mgr_fxt Create_id(int id, int fil_idx, int row_idx, boolean type_redirect, int itm_len, int ns_id, String ttl) {Create_id(app, hive_mgr, id, fil_idx, row_idx, type_redirect, itm_len, ns_id, ttl); return this;}
|
||||
public static void Create_id(Xoae_app app, Xob_hive_mgr hive_mgr, int id, int fil_idx, int row_idx, boolean type_redirect, int itm_len, int ns_id, String ttl) {
|
||||
Bry_bfr bfr = app.Utl_bry_bfr_mkr().Get_b512();
|
||||
Bry_bfr bfr = app.Utl__bfr_mkr().Get_b512();
|
||||
byte[] key_bry = Base85_utl.XtoStrByAry(id, 5);
|
||||
bfr .Add(key_bry) .Add_byte_pipe()
|
||||
.Add_base85_len_5(fil_idx) .Add_byte_pipe()
|
||||
|
||||
@@ -39,7 +39,7 @@ public class Xowd_hive_mgr {
|
||||
Xob_xdat_file xdat = new Xob_xdat_file();
|
||||
if (bry != Bry_.Empty)
|
||||
xdat.Parse(bry, bry.length, url);
|
||||
Bry_bfr tmp = wiki.Utl_bry_bfr_mkr().Get_m001();
|
||||
Bry_bfr tmp = wiki.Utl__bfr_mkr().Get_m001();
|
||||
xdat.Insert(tmp, data);
|
||||
if (comparer != null)
|
||||
xdat.Sort(tmp, comparer);
|
||||
@@ -63,7 +63,7 @@ public class Xowd_hive_mgr {
|
||||
Xob_xdat_file xdat = new Xob_xdat_file();
|
||||
if (bry != Bry_.Empty)
|
||||
xdat.Parse(bry, bry.length, url);
|
||||
Bry_bfr tmp = wiki.Utl_bry_bfr_mkr().Get_m001();
|
||||
Bry_bfr tmp = wiki.Utl__bfr_mkr().Get_m001();
|
||||
xdat.Insert(tmp, data);
|
||||
if (comparer != null)
|
||||
xdat.Sort(tmp, comparer);
|
||||
@@ -82,7 +82,7 @@ public class Xowd_hive_mgr {
|
||||
Xob_xdat_file xdat = new Xob_xdat_file();
|
||||
if (bry != Bry_.Empty)
|
||||
xdat.Parse(bry, bry.length, url);
|
||||
Bry_bfr tmp = wiki.Utl_bry_bfr_mkr().Get_m001();
|
||||
Bry_bfr tmp = wiki.Utl__bfr_mkr().Get_m001();
|
||||
Xob_xdat_itm itm = new Xob_xdat_itm();
|
||||
xdat.Find(itm, old_key, lkp_bgn, lkp_dlm, exact);
|
||||
if (itm.Missing()) return;
|
||||
|
||||
Reference in New Issue
Block a user