Table of Contents

Class SquareMapLines

Namespace
SunamoString._public.SunamoData.Data
Assembly
SunamoString.dll

Stores positions of brackets per line in a multi-line text, including both opening and closing positions.

public class SquareMapLines
Inheritance
SquareMapLines
Inherited Members
Extension Methods

Constructors

SquareMapLines()

Initializes a new empty instance with zero capacity.

public SquareMapLines()

SquareMapLines(SquareMap)

Initializes a new instance from an existing SquareMap with matching capacities.

public SquareMapLines(SquareMap squareMap)

Parameters

squareMap SquareMap

The square map to use for capacity initialization.

Properties

Brackets

Positions of opening parentheses per line.

public Dictionary<int, List<int>> Brackets { get; set; }

Property Value

Dictionary<int, List<int>>

CurlyBrackets

Positions of opening curly braces per line.

public Dictionary<int, List<int>> CurlyBrackets { get; set; }

Property Value

Dictionary<int, List<int>>

EndingBrackets

Positions of closing parentheses per line.

public Dictionary<int, List<int>> EndingBrackets { get; set; }

Property Value

Dictionary<int, List<int>>

EndingCurlyBrackets

Positions of closing curly braces per line.

public Dictionary<int, List<int>> EndingCurlyBrackets { get; set; }

Property Value

Dictionary<int, List<int>>

EndingSquareBrackets

Positions of closing square brackets per line.

public Dictionary<int, List<int>> EndingSquareBrackets { get; set; }

Property Value

Dictionary<int, List<int>>

SquareBrackets

Positions of opening square brackets per line.

public Dictionary<int, List<int>> SquareBrackets { get; set; }

Property Value

Dictionary<int, List<int>>

Methods

Add(Brackets, bool, int, int)

Adds a bracket position to the appropriate dictionary based on bracket type, direction, and line.

public void Add(Brackets bracketType, bool isEnding, int index, int line)

Parameters

bracketType Brackets

The type of bracket (curly, square, or normal).

isEnding bool

Whether this is a closing bracket.

index int

The position index in the line.

line int

The line number.