MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getLineIndentGuideSpaces

Function getLineIndentGuideSpaces

src/eepp/ui/uicodeeditor.cpp:4650–4655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4648}
4649
4650static Int64 getLineIndentGuideSpaces( TextDocument& doc, int line, int indentSize ) {
4651 if ( doc.line( line ).getText().find_first_not_of( " \t\n" ) == std::string::npos )
4652 return eemax( getLineSpaces( doc, line - 1, -1, indentSize ),
4653 getLineSpaces( doc, line + 1, 1, indentSize ) );
4654 return getLineSpaces( doc, line, 0, indentSize );
4655}
4656
4657void UICodeEditor::drawIndentationGuides( const DocumentLineRange& lineRange,
4658 const Vector2f& startScroll, const Float& lineHeight ) {

Callers 1

drawIndentationGuidesMethod · 0.85

Calls 4

eemaxFunction · 0.85
getLineSpacesFunction · 0.85
find_first_not_ofMethod · 0.80
getTextMethod · 0.45

Tested by

no test coverage detected