MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / IsBlankLine

Function IsBlankLine

engine/3rdparty/tinyobjloader/deps/cpplint.py:2813–2825  ·  view source on GitHub ↗

Returns true if the given line is blank. We consider a line to be blank if the line is empty or consists of only white spaces. Args: line: A line of a string. Returns: True, if the given line is blank.

(line)

Source from the content-addressed store, hash-verified

2811
2812
2813def IsBlankLine(line):
2814 """Returns true if the given line is blank.
2815
2816 We consider a line to be blank if the line is empty or consists of
2817 only white spaces.
2818
2819 Args:
2820 line: A line of a string.
2821
2822 Returns:
2823 True, if the given line is blank.
2824 """
2825 return not line or line.isspace()
2826
2827
2828def CheckForNamespaceIndentation(filename, nesting_state, clean_lines, line,

Callers 3

CheckSpacingFunction · 0.85
CheckSectionSpacingFunction · 0.85
GetPreviousNonBlankLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected