예제 #1
0
 public void Get_by_url1(Xow_wiki wiki, Xoa_page page, Xoa_url url, Xoa_ttl ttl) {
   int slash_pos =
       Bry_find_.Find_fwd(ttl.Page_txt_wo_qargs(), Xoa_ttl.Subpage_spr); // check for slash
   byte[] special_name =
       slash_pos == Bry_find_.Not_found
           ? ttl.Base_txt_wo_qarg() // no slash found; use base_txt; ignore qry args and just get
           // page_names; EX: Search/Earth?fulltext=y;
           // Allpages?from=Earth...
           : Bry_.Mid(
               ttl.Page_txt_wo_qargs(),
               0,
               slash_pos); // slash found; use root page; EX: Special:ItemByTitle/enwiki/Earth
   Object o = hash.Get_by_bry(special_name);
   if (o == null) {
     Xol_specials_itm special_itm = wiki.Lang().Specials_mgr().Get_by_alias(special_name);
     if (special_itm != null) o = hash.Get_by_bry(special_itm.Special());
   }
   if (o != null) {
     // Xow_special_page special = (Xow_special_page)o;
     // page.Revision_data().Modified_on_(Datetime_now.Get());
     // special.Special__gen(wiki, page, url, ttl);
   }
 }
예제 #2
0
 public Xoa_ttl Ttl_parse(byte[] src, int src_bgn, int src_end) {
   return Xoa_ttl.Parse(
       app.Utl_amp_mgr(), app.Utl_case_mgr(), xwiki_mgr, ns_mgr, src, src_bgn, src_end);
 }
예제 #3
0
 public Xoa_ttl Ttl_parse(int ns_id, byte[] ttl) {
   return Xoa_ttl.Parse(this, ns_id, ttl);
 }
예제 #4
0
 public void Pages_get(Xoh_page rv, Gfo_url url, Xoa_ttl ttl) {
   if (init_needed) Init_by_wiki();
   if (ttl.Ns().Id_is_special()) special_mgr.Get_by_ttl(rv, url, ttl);
   else html__hdump_mgr.Load_mgr().Load(rv, ttl);
 }