private void Parse_href(Xoh_hdoc_ctx hctx, Gfh_tag anch_head) {
   href_itm.Parse(rdr.Err_wkr(), hctx, src, anch_head);
   this.href_bgn = href_itm.Ttl_bgn();
   this.href_end = href_itm.Ttl_end();
   switch (href_itm.Tid()) {
     case Xoh_anch_href_data.Tid__wiki:
     case Xoh_anch_href_data.Tid__site:
       this.href_ns_id = href_itm.Ttl_ns_id();
       this.href_src = href_itm.Ttl_full_txt();
       this.href_bgn = 0;
       this.href_end = href_src.length;
       if (href_ns_id != Xow_ns_.Tid__main) { // not main; try to remove template name;		
         int colon_pos = Bry_find_.Find_fwd(href_src, Byte_ascii.Colon, href_bgn, href_end);
         this.href_ns_name =
             Xoa_ttl.Replace_unders(
                 Bry_.Mid(href_src, href_bgn, colon_pos + 1)); // EX: 11="Template talk:"
         this.href_ns_name_len = href_ns_name.length;
       }
       break;
   }
 }
Beispiel #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);
 }
Beispiel #3
0
 public Xoa_ttl Ttl_parse(int ns_id, byte[] ttl) {
   return Xoa_ttl.Parse(this, ns_id, ttl);
 }
Beispiel #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);
 }