private final char[] _expandOutputForText(int inputPtr, char[] outBuf, int shortestSegment) { TextBuffer tb = mTextBuffer; // Perhaps we have now enough to return? tb.setCurrentLength(outBuf.length); if (tb.size() >= shortestSegment) { mInputPtr = inputPtr; return null; } // If not, need more buffer space: return tb.finishCurrentSegment(); }
mTextBuffer.setCurrentLength(outPtr);
mBranchBuffer.setCurrentLength(outPtr); } else { mBranchBuffer.append(mBuffer, startOffset, pastEnd-startOffset);
inputPtr = mInputPtr; } else if (c != '\t') { mTextBuffer.setCurrentLength(outPtr); mInputPtr = inputPtr; mPendingException = throwInvalidSpace(c, deferErrors); mTextBuffer.setCurrentLength(outPtr); mPendingException = throwWfcException(ErrorConsts.ERR_BRACKET_IN_TEXT, deferErrors); break; mTextBuffer.setCurrentLength(outPtr); return true;
mTextBuffer.setCurrentLength(outPtr);
tb.setCurrentLength(outPtr); tb.fireDtdCommentEvent(l);
tb.setCurrentLength(outBuf.length); if (tb.size() >= shortestSegment) { mInputPtr = inputPtr;
mTextBuffer.setCurrentLength(outPtr);
? mInputBuffer[mInputPtr++] : dtdNextFromCurr(); tb.setCurrentLength(outPtr); String data = tb.contentsAsString(); mEventListener.dtdProcessingInstruction(target, data);
private final char[] _expandOutputForText(int inputPtr, char[] outBuf, int shortestSegment) { TextBuffer tb = mTextBuffer; // Perhaps we have now enough to return? tb.setCurrentLength(outBuf.length); if (tb.size() >= shortestSegment) { mInputPtr = inputPtr; return null; } // If not, need more buffer space: return tb.finishCurrentSegment(); }
private final char[] _expandOutputForText(int inputPtr, char[] outBuf, int shortestSegment) { TextBuffer tb = mTextBuffer; // Perhaps we have now enough to return? tb.setCurrentLength(outBuf.length); if (tb.size() >= shortestSegment) { mInputPtr = inputPtr; return null; } // If not, need more buffer space: return tb.finishCurrentSegment(); }
private final char[] _expandOutputForText(int inputPtr, char[] outBuf, int shortestSegment) { TextBuffer tb = mTextBuffer; // Perhaps we have now enough to return? tb.setCurrentLength(outBuf.length); if (tb.size() >= shortestSegment) { mInputPtr = inputPtr; return null; } // If not, need more buffer space: return tb.finishCurrentSegment(); }
private final char[] _expandOutputForText(int inputPtr, char[] outBuf, int shortestSegment) { TextBuffer tb = mTextBuffer; // Perhaps we have now enough to return? tb.setCurrentLength(outBuf.length); if (tb.size() >= shortestSegment) { mInputPtr = inputPtr; return null; } // If not, need more buffer space: return tb.finishCurrentSegment(); }
tb.setCurrentLength(outPtr); defVal.setValue(tb.contentsAsString()); mValueBuffer = tb;
tbuf.setCurrentLength(outPtr);