mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Refactor: Rename Xoa_ttl.Full_txt_w_ttl_case to Full_txt [#626]
This commit is contained in:
@@ -31,7 +31,7 @@ public class Xoh_page_wtr_wkr_ {
|
||||
return tmp_bfr.To_bry_and_clear();
|
||||
}
|
||||
else
|
||||
return ttl.Full_txt_w_ttl_case(); // NOTE: include ns with ttl as per defect d88a87b3
|
||||
return ttl.Full_txt(); // NOTE: include ns with ttl as per defect d88a87b3
|
||||
}
|
||||
public static void Bld_head_end(Bry_bfr html_bfr, Bry_bfr tmp_bfr, Xoae_page page) {
|
||||
byte[] head_end = Xopg_tag_wtr.Write(tmp_bfr, Bool_.Y, Xopg_tag_wtr_cbk_.Basic, page.Html_data().Custom_head_tags());
|
||||
|
||||
@@ -128,7 +128,7 @@ public class Xoh_lnki_wtr {
|
||||
.Add_int_variable(lnki_html_id); // '1234'
|
||||
}
|
||||
if (cfg.Lnki__title()) {
|
||||
byte[] title_bry = lnki_ttl.Full_txt_w_ttl_case(); // NOTE: use Full_txt to (a) replace underscores with spaces; (b) get title casing; EX:[[roman_empire]] -> Roman empire; (c) include ns_name; EX: Help:A -> "title='Help:A'" not "title='A'"; DATE:2015-11-16
|
||||
byte[] title_bry = lnki_ttl.Full_txt(); // NOTE: use Full_txt to (a) replace underscores with spaces; (b) get title casing; EX:[[roman_empire]] -> Roman empire; (c) include ns_name; EX: Help:A -> "title='Help:A'" not "title='A'"; DATE:2015-11-16
|
||||
int title_len = title_bry.length;
|
||||
if (title_len > 0) {
|
||||
bfr .Add(Gfh_bldr_.Bry__title__nth); // '" title=\"'
|
||||
|
||||
@@ -63,7 +63,7 @@ public class Xoh_href_parser {
|
||||
if (ttl == null) // invalid ttl; null out page;
|
||||
tmp_page = Bry_.Empty;
|
||||
else
|
||||
tmp_page = ttl.Full_txt_w_ttl_case();
|
||||
tmp_page = ttl.Full_txt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ public class Xoh_js_cleaner {
|
||||
if (cleaned != null) {
|
||||
bfr.Del_by(end - bgn);
|
||||
bfr.Add(cleaned);
|
||||
app.Usr_dlg().Log_many("", "", "javascript detected: wiki=~{0} ~{1}", wiki.Domain_str(), String_.new_u8(ttl.Full_txt_w_ttl_case()));
|
||||
app.Usr_dlg().Log_many("", "", "javascript detected: wiki=~{0} ~{1}", wiki.Domain_str(), String_.new_u8(ttl.Full_txt()));
|
||||
}
|
||||
}
|
||||
public byte[] Clean(Xowe_wiki wiki, byte[] src, int bgn, int end) {
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Xow_popup_html_mkr {
|
||||
, hdom_bry
|
||||
, wiki.Lang().Dir_ltr_bry()
|
||||
, page_url
|
||||
, String_.new_u8(page.Ttl().Full_txt_w_ttl_case())
|
||||
, String_.new_u8(page.Ttl().Full_txt())
|
||||
, popup_itm.Popup_id()
|
||||
, Xow_popup_html_bldr_.Bld_fmtr_wiki(fmtr_wiki, wrdx_bfr, cur_wiki.Domain_bry(), page.Wiki().Domain_bry()) // NOTE: use cur_wiki, not page_wiki; DATE:2014-06-28
|
||||
, gplx.core.ios.Io_size_.To_str(page.Db().Text().Text_bry().length)
|
||||
@@ -116,7 +116,7 @@ class Xow_popup_html_bldr_ {
|
||||
}
|
||||
public static byte[] Bld_fmtr_viewed(Bry_fmtr fmtr, Xoae_app app, Xowe_wiki wiki, Bry_bfr wrdx_bfr, Xoa_ttl ttl) {
|
||||
byte[] view_time_item = Bry_.Empty;
|
||||
gplx.xowa.users.history.Xou_history_itm history_itm = app.Usere().History_mgr().Get_or_null(wiki.Domain_bry(), ttl.Full_txt_w_ttl_case());
|
||||
gplx.xowa.users.history.Xou_history_itm history_itm = app.Usere().History_mgr().Get_or_null(wiki.Domain_bry(), ttl.Full_txt());
|
||||
if (history_itm != null)
|
||||
view_time_item = fmtr.Bld_bry_many(wrdx_bfr, history_itm.View_end().XtoStr_fmt_yyyy_MM_dd_HH_mm_ss());
|
||||
return view_time_item;
|
||||
|
||||
@@ -73,7 +73,7 @@ public class Xoh_ns_file_page_mgr implements gplx.core.brys.Bfr_arg {
|
||||
public void Bfr_arg__add(Bry_bfr bfr) {
|
||||
alt_wtr.Init_by_fmtr(repo_mgr, xfer_itm, html_wtr);
|
||||
Xof_ext orig_ext = xfer_itm.Orig_ext();
|
||||
byte[] alt_bry = gplx.langs.htmls.encoders.Gfo_url_encoder_.Http_url.Encode(ttl.Full_txt_w_ttl_case());
|
||||
byte[] alt_bry = gplx.langs.htmls.encoders.Gfo_url_encoder_.Http_url.Encode(ttl.Full_txt());
|
||||
byte[] xowa_title = gplx.langs.htmls.encoders.Gfo_url_encoder_.Http_url.Encode(ttl.Page_url());
|
||||
if (orig_ext.Id_is_thumbable_img())
|
||||
html_wtr.Html_main_img().Bld_bfr_many(bfr, xfer_itm.Orig_w(), xfer_itm.Orig_h(), xfer_itm.Html_orig_url().To_http_file_bry(), file_size_bry, orig_ext.Mime_type()
|
||||
|
||||
Reference in New Issue
Block a user