+ String fstring = nf.substring(ncp, fcp);
+ // remove any comments before we parse the node info
+ // TODO: test newick file with quoted square brackets in node name (is this allowed?)
+ while (fstring.indexOf(']')>-1)
+ {
+ int cstart=fstring.indexOf('[');
+ int cend=fstring.indexOf(']');
+ String comment = fstring.substring(cstart+1,cend);
+ fstring = fstring.substring(0, cstart)+fstring.substring(cend+1);
+
+ }