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-08-03 00:10:03 -04:00
parent 9d63f03b3d
commit 34c34f227c
514 changed files with 4972 additions and 3910 deletions

View File

@@ -33,7 +33,7 @@ public class Sites_html_bldr implements Bry_fmtr_arg {
private Sites_xtn_mgr xtn_mgr;
private Bry_bfr tmp_ttl = Bry_bfr.reset_(255);
private List_adp list; private int list_len;
private Hash_adp_bry hash = Hash_adp_bry.cs_();
private Hash_adp_bry hash = Hash_adp_bry.cs();
public Sites_html_bldr(Sites_xtn_mgr xtn_mgr) {this.xtn_mgr = xtn_mgr;}
private Bry_fmtr url_fmtr = Bry_fmtr.keys_("title");
public void Bld_all(Bry_bfr bfr, Xoae_page page, List_adp list) {
@@ -43,7 +43,7 @@ public class Sites_html_bldr implements Bry_fmtr_arg {
}
public void XferAry(Bry_bfr bfr, int idx) {
Xowe_wiki wiki = xtn_mgr.Wiki();
Xoh_href_parser href_parser = wiki.Appe().Href_parser();
Xoh_href_parser href_parser = wiki.Appe().Html__href_parser();
for (int i = 0; i < list_len; ++i) {
Sites_regy_itm itm = (Sites_regy_itm)list.Get_at(i);
byte[] xwiki_itm_name = itm.Xwiki_itm().Domain_name();
@@ -54,10 +54,10 @@ public class Sites_html_bldr implements Bry_fmtr_arg {
}
}
private static byte[] Xto_href(Bry_bfr tmp_bfr, Bry_fmtr url_fmtr, Xoh_href_parser href_parser, Xowe_wiki wiki, Xow_xwiki_itm xwiki_itm, byte[] ttl_page_db) {
href_parser.Encoder().Encode(tmp_bfr, ttl_page_db);
Xoa_app_.Utl__encoder_mgr().Href().Encode(tmp_bfr, ttl_page_db);
byte[] rv = url_fmtr.Fmt_(xwiki_itm.Url_fmt()).Bld_bry_many(tmp_bfr, tmp_bfr.Xto_bry_and_clear());
if (xwiki_itm.Domain_tid() != Xow_domain_type_.Tid_other)
rv = Bry_.Add(Xoh_href_parser.Href_site_bry, rv);
rv = Bry_.Add(Xoh_href_.Bry__site, rv);
return rv;
}
private static final Bry_fmtr

View File

@@ -20,7 +20,7 @@ import gplx.xowa.wikis.xwikis.*;
public class Sites_regy_itm {
public Sites_regy_itm(Xow_xwiki_itm xwiki_itm, Xoa_ttl ttl) {
this.xwiki_itm = xwiki_itm; this.ttl = ttl;
this.cls = Bry_.Lower_ascii(Bry_.Copy(xwiki_itm.Key_bry()));
this.cls = Bry_.Lcase__all(Bry_.Copy(xwiki_itm.Key_bry()));
}
public Xow_xwiki_itm Xwiki_itm() {return xwiki_itm;} private Xow_xwiki_itm xwiki_itm;
public Xoa_ttl Ttl() {return ttl;} private Xoa_ttl ttl;

View File

@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
package gplx.xowa.xtns.relatedSites; import gplx.*; import gplx.xowa.*; import gplx.xowa.xtns.*;
import gplx.xowa.wikis.xwikis.*; import gplx.xowa.pages.skins.*;
public class Sites_regy_mgr implements GfoInvkAble {
private Hash_adp_bry hash = Hash_adp_bry.cs_();
private Hash_adp_bry hash = Hash_adp_bry.cs();
private Xow_xwiki_mgr xwiki_mgr;
public Sites_regy_mgr(Sites_xtn_mgr xtn_mgr) {this.xtn_mgr = xtn_mgr;}
public void Init_by_wiki(Xowe_wiki wiki) {this.xwiki_mgr = wiki.Xwiki_mgr();}