MCPcopy Create free account
hub / github.com/Kitware/CMake / yy_scan_string

Function yy_scan_string

Source/LexerParser/cmListFileLexer.c:2165–2169  ·  view source on GitHub ↗

Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * @param yyscanner The scanner object. * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * yy_scan_bytes() instead. */

Source from the content-addressed store, hash-verified

2163 * yy_scan_bytes() instead.
2164 */
2165YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner)
2166{
2167
2168 return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner);
2169}
2170
2171/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
2172 * scan from a @e copy of @a bytes.

Callers

nothing calls this directly

Calls 2

yy_scan_bytesFunction · 0.70
strlenFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…