Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 3
0
	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;
Exemplo n.º 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();
 }