• Home
  • Raw
  • Download

Lines Matching refs:cbytes

106 DataMatchResult DataScanner::ScanLiteral(const char* cbytes,  in ScanLiteral()  argument
117 if (strncmp(&literal_or_sentinels_[token_length], cbytes, bytes_to_compare) == in ScanLiteral()
130 DataMatchResult DataScanner::ScanName(const char* cbytes, in ScanName() argument
136 if (!IsFirstNameChar(*cbytes)) { in ScanName()
143 cbytes += 1; in ScanName()
146 ScanOptionalNameChars(cbytes, bytes_available); in ScanName()
159 DataMatchResult DataScanner::ScanQuotedString(const char* cbytes, in ScanQuotedString() argument
174 if (*cbytes != kSquote && *cbytes != kDquote) { in ScanQuotedString()
178 data_ = *cbytes++; in ScanQuotedString()
184 memchr(cbytes, static_cast<int>(data_), bytes_available)); in ScanQuotedString()
185 size_t bytes_scanned = ebytes ? ebytes - cbytes : bytes_available; in ScanQuotedString()
199 DataMatchResult DataScanner::ScanSentinel(const char* cbytes, in ScanSentinel() argument
207 char cbyte = *cbytes; in ScanSentinel()
223 DataMatchResult DataScanner::ScanThroughLiteral(const char* cbytes, in ScanThroughLiteral() argument
236 memchr(cbytes, literal_or_sentinels_[0], bytes_available)); in ScanThroughLiteral()
245 size_t bytes_scanned = (matched_byte - cbytes) + 1; in ScanThroughLiteral()
248 cbytes += bytes_scanned; in ScanThroughLiteral()
257 if (strncmp(&literal_or_sentinels_[scanned_literal_length], cbytes, in ScanThroughLiteral()
275 DataMatchResult DataScanner::ScanWhitespace(const char* cbytes, in ScanWhitespace() argument
280 result.SetBytesConsumed(ScanWhitespaceChars(cbytes, bytes_available)); in ScanWhitespace()
308 const char* cbytes = context.GetCharBytes(); in Scan() local
311 result = ScanLiteral(cbytes, bytes_available, context); in Scan()
314 result = ScanName(cbytes, bytes_available, context); in Scan()
317 result = ScanQuotedString(cbytes, bytes_available, context); in Scan()
320 result = ScanSentinel(cbytes, bytes_available, context); in Scan()
323 result = ScanThroughLiteral(cbytes, bytes_available, context); in Scan()
327 result = ScanWhitespace(cbytes, bytes_available, context); in Scan()