// print the gathered text if any
if (cb.length() > 0)
println(cbVar + ".append(\"" + cb.toString() + "\");");
// scan the contents of '{' ... '}'
cb.clear();
for (i++; i < length && string.charAt(i) != '}'; i++)
cb.append(string.charAt(i));
// and add the results
addStringExpr(cbVar, cb.toString(), elt, false);