C# Класс Code2Xml.Core.Location.StructuredCode

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetFragment ( CodeRange range ) : string
GetIndex ( CodeLocation location ) : int
GetIndex ( int line, int pos ) : int
GetLine ( int line ) : string
GetLocation ( int index ) : CodeLocation
GetLocation ( int index, CodeLocation startLocation ) : CodeLocation
GetRange ( int startIndex, int exclusiveEndIndex ) : CodeRange
StructuredCode ( string code ) : System.Collections.Generic
this ( CodeLocation location ) : char
this ( int index ) : char
this ( int line, int pos ) : char

Приватные методы

Метод Описание
GetLocation ( int index, int startLine ) : CodeLocation

Описание методов

GetFragment() публичный Метод

public GetFragment ( CodeRange range ) : string
range CodeRange
Результат string

GetIndex() публичный Метод

public GetIndex ( CodeLocation location ) : int
location CodeLocation
Результат int

GetIndex() публичный Метод

public GetIndex ( int line, int pos ) : int
line int
pos int
Результат int

GetLine() публичный Метод

public GetLine ( int line ) : string
line int
Результат string

GetLocation() публичный Метод

public GetLocation ( int index ) : CodeLocation
index int
Результат CodeLocation

GetLocation() публичный Метод

public GetLocation ( int index, CodeLocation startLocation ) : CodeLocation
index int
startLocation CodeLocation
Результат CodeLocation

GetRange() публичный Метод

public GetRange ( int startIndex, int exclusiveEndIndex ) : CodeRange
startIndex int
exclusiveEndIndex int
Результат CodeRange

StructuredCode() публичный Метод

public StructuredCode ( string code ) : System.Collections.Generic
code string
Результат System.Collections.Generic

this() публичный Метод

public this ( CodeLocation location ) : char
location CodeLocation
Результат char

this() публичный Метод

public this ( int index ) : char
index int
Результат char

this() публичный Метод

public this ( int line, int pos ) : char
line int
pos int
Результат char