Lines Matching refs:BufferEnd
126 const char *findNewline(const char *BufferPtr, const char *BufferEnd) { in findNewline() argument
127 for ( ; BufferPtr != BufferEnd; ++BufferPtr) { in findNewline()
131 return BufferEnd; in findNewline()
134 const char *skipNewline(const char *BufferPtr, const char *BufferEnd) { in skipNewline() argument
135 if (BufferPtr == BufferEnd) in skipNewline()
143 if (BufferPtr != BufferEnd && *BufferPtr == '\n') in skipNewline()
150 const char *BufferEnd) { in skipNamedCharacterReference() argument
151 for ( ; BufferPtr != BufferEnd; ++BufferPtr) { in skipNamedCharacterReference()
155 return BufferEnd; in skipNamedCharacterReference()
159 const char *BufferEnd) { in skipDecimalCharacterReference() argument
160 for ( ; BufferPtr != BufferEnd; ++BufferPtr) { in skipDecimalCharacterReference()
164 return BufferEnd; in skipDecimalCharacterReference()
168 const char *BufferEnd) { in skipHexCharacterReference() argument
169 for ( ; BufferPtr != BufferEnd; ++BufferPtr) { in skipHexCharacterReference()
173 return BufferEnd; in skipHexCharacterReference()
184 const char *skipHTMLIdentifier(const char *BufferPtr, const char *BufferEnd) { in skipHTMLIdentifier() argument
185 for ( ; BufferPtr != BufferEnd; ++BufferPtr) { in skipHTMLIdentifier()
189 return BufferEnd; in skipHTMLIdentifier()
196 const char *skipHTMLQuotedString(const char *BufferPtr, const char *BufferEnd) in skipHTMLQuotedString() argument
202 for ( ; BufferPtr != BufferEnd; ++BufferPtr) { in skipHTMLQuotedString()
207 return BufferEnd; in skipHTMLQuotedString()
210 const char *skipWhitespace(const char *BufferPtr, const char *BufferEnd) { in skipWhitespace() argument
211 for ( ; BufferPtr != BufferEnd; ++BufferPtr) { in skipWhitespace()
215 return BufferEnd; in skipWhitespace()
218 bool isWhitespace(const char *BufferPtr, const char *BufferEnd) { in isWhitespace() argument
219 return skipWhitespace(BufferPtr, BufferEnd) == BufferEnd; in isWhitespace()
230 const char *skipCommandName(const char *BufferPtr, const char *BufferEnd) { in skipCommandName() argument
231 for ( ; BufferPtr != BufferEnd; ++BufferPtr) { in skipCommandName()
235 return BufferEnd; in skipCommandName()
240 const char *findBCPLCommentEnd(const char *BufferPtr, const char *BufferEnd) { in findBCPLCommentEnd() argument
242 while (CurPtr != BufferEnd) { in findBCPLCommentEnd()
245 if (CurPtr == BufferEnd) in findBCPLCommentEnd()
246 return BufferEnd; in findBCPLCommentEnd()
257 CurPtr = skipNewline(CurPtr, BufferEnd); in findBCPLCommentEnd()
261 return BufferEnd; in findBCPLCommentEnd()
266 const char *findCCommentEnd(const char *BufferPtr, const char *BufferEnd) { in findCCommentEnd() argument
267 for ( ; BufferPtr != BufferEnd; ++BufferPtr) { in findCCommentEnd()
269 assert(BufferPtr + 1 != BufferEnd); in findCCommentEnd()
743 const char *BufferStart, const char *BufferEnd, bool ParseCommands) in Lexer() argument
745 BufferStart(BufferStart), BufferEnd(BufferEnd), BufferPtr(BufferStart), in Lexer()
753 if (BufferPtr == BufferEnd) { in lex()
764 if (BufferPtr != BufferEnd) { in lex()
777 if (BufferPtr != BufferEnd && *BufferPtr == '<') in lex()
783 CommentEnd = findBCPLCommentEnd(BufferPtr, BufferEnd); in lex()
795 if (BufferPtr != BufferEnd && *BufferPtr == '<') in lex()
800 CommentEnd = findCCommentEnd(BufferPtr, BufferEnd); in lex()
811 while(EndWhitespace != BufferEnd && *EndWhitespace != '/') in lex()
834 assert(BufferPtr <= BufferEnd); in lex()