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(); }
@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(); }
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;
public String To_str() { String_bldr sb = String_bldr_.new_(); To_str(sb, new XtoStrWkr_gplx(), this); return sb.To_str_and_clear(); }