Lines Matching refs:buf
395 private static void _appendToPat(StringBuffer buf, String s, boolean escapeUnprintable) {
397 _appendToPat(buf, UTF16.charAt(s, i), escapeUnprintable);
405 private static void _appendToPat(StringBuffer buf, int c, boolean escapeUnprintable) {
409 if (Utility.escapeUnprintable(buf, c)) {
425 buf.append('\\');
430 buf.append('\\');
434 UTF16.append(buf, c);
986 StringBuffer patBuf = new StringBuffer(), buf = null;
1200 if (buf == null) {
1201 buf = new StringBuffer();
1203 buf.setLength(0);
1213 UTF16.append(buf, c);
1215 if (buf.length() < 1 || !ok) {
1221 add(buf.toString());
1223 _appendToPat(patBuf, buf.toString(), false);
1671 StringBuffer buf = new StringBuffer();
1676 if (buf.length() == 0 ||
1677 buf.charAt(buf.length() - 1) == ' ') {
1682 UTF16.append(buf, ch);
1684 if (buf.length() != 0 &&
1685 buf.charAt(buf.length() - 1) == ' ') {
1686 buf.setLength(buf.length() - 1);
1688 return buf.toString();