return reportInvalidChar(v, c, "not valid as an ENTITIES character");
}
hash = (hash * 31) + (int) c;
}
EntityDecl ent = findEntityDecl(v, cbuf, start, (i - start), hash);
// only returns if entity was found...
// Can skip the trailing space char (if there was one)
start = i+1;
/* When normalizing, we can possibly share id String, or
* alternatively, compose normalized String if multiple
*/
if (normalize) {
if (idStr == null) { // first idref
idStr = ent.getName();
} else {
if (sb == null) {
sb = new StringBuffer(idStr);
}
idStr = ent.getName();
sb.append(' ');
sb.append(idStr);
}
}