예제 #1
0
 String ArgsXtoStr() {
   if (this.Args_count() == 0) return "<<EMPTY>>";
   String_bldr sb = String_bldr_.new_();
   for (int i = 0; i < this.Args_count(); i++) {
     Keyval rv = (Keyval) this.Args_getAt(i);
     sb.Add_fmt("{0};", rv.Key());
   }
   return sb.To_str();
 }
예제 #2
0
 @gplx.Internal
 protected IptKeyChain(IptArg[] ary) {
   chained = ary;
   String_bldr sb = String_bldr_.new_();
   for (int i = 0; i < ary.length; i++) {
     IptArg itm = ary[i];
     sb.Add_spr_unless_first(itm.Key(), ",", i);
   }
   key = sb.To_str();
 }
예제 #3
0
파일: Bry_fmtr.java 프로젝트: qq98982/xowa
	public String Bld_str_many(String... args) {
		if (dirty) Compile(); 
		String_bldr rv = String_bldr_.new_();
		int args_len = args.length;
		for (int i = 0; i < itms_len; i++) {
			Bry_fmtr_itm itm = itms[i];
			if (itm.Arg) {
				int arg_idx = itm.ArgIdx;
				if (arg_idx < args_len)
					rv.Add(args[arg_idx]);
				else
					rv.Add(missing_bgn).Add(arg_idx + missing_adj).Add(missing_end);
			}
			else
				rv.Add(itm.DatStr());
		}
		return rv.XtoStr();
	}	private Bry_fmtr_itm[] itms; int itms_len;
예제 #4
0
 public String To_str() {
   String_bldr sb = String_bldr_.new_();
   To_str(sb, new XtoStrWkr_gplx(), this);
   return sb.To_str_and_clear();
 }