Table of Contents

Class SquareMap

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

Stores positions of brackets (curly, square, normal) found in a text, including both opening and closing positions.

public class SquareMap
Inheritance
SquareMap
Inherited Members
Extension Methods

Properties

Brackets

Positions of opening parentheses.

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

Property Value

List<int>

CurlyBrackets

Positions of opening curly braces.

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

Property Value

List<int>

EndingBrackets

Positions of closing parentheses.

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

Property Value

List<int>

EndingCurlyBrackets

Positions of closing curly braces.

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

Property Value

List<int>

EndingSquareBrackets

Positions of closing square brackets.

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

Property Value

List<int>

SquareBrackets

Positions of opening square brackets.

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

Property Value

List<int>

Methods

Add(Brackets, bool, int)

Adds a bracket position to the appropriate list based on bracket type and direction.

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

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 text.