Exemplo n.º 1
0
	Xof_repo_itm Ini_repo_add(Xof_file_mgr file_mgr, byte[] key, String root, String wiki, boolean trg) {
		Xof_repo_itm repo = file_mgr.Repo_mgr().Set(String_.new_u8(key), root, wiki).Ext_rules_(Xof_rule_grp.Grp_app_default).Dir_depth_(2);
		if (trg) {
			byte[][] ary = repo.Mode_names();
			ary[0] = Bry_.new_a7("raw");
			ary[1] = Bry_.new_a7("fit");
		}
		return repo;
	}
Exemplo n.º 2
0
	String file_svg(int w, int h) {return String_.Format("<svg width=\"{0}\" height=\"{1}\" />", w, h);}
Exemplo n.º 3
0
	String file_img(int w, int h) {return String_.Format("{0},{1}", w, h);}
Exemplo n.º 4
0
	public Io_fil reg_(String url, String... v)	{return new Io_fil(Io_url_.mem_fil_(url), String_.Concat_lines_nl(v));}
Exemplo n.º 5
0
 public boolean Handles(Io_url url) {
   return String_.In(url.Ext(), zip_exts);
 }
Exemplo n.º 6
0
 // @Test
 public void A_1Million() {
   tst_CalcBase16FromString(
       String_.Repeat("a", 1000000), "34aa973cd4c4daa4f61eeb2bdbad27316534016f");
 }