klyn.code.CodeTokenizer.isPreprocessorLine
method
public isPreprocessorLine(line as String, firstNonSpace as Long) as Boolean
Description

Checks whether the line starts with a preprocessor directive (such as #include or #define).

Parameters
ParameterDescription
lineSource line text.
firstNonSpaceIndex of the first non-whitespace character on line.
Returns

true when line is a preprocessor directive.

Example
import klyn.code

t = CodeTokenizer(LanguageProfile("cpp", "C++").withPreprocessorPrefix("#"))
assert t.isPreprocessorLine("#include <vector>", 0)