C# Класс Ancestry.Daisy.Language.WhitespaceEater

The WhitespaceEater is in charge of counting and managing whitespace at the begining of lines. It handles: Consistency of types of whitespace (tabs vs spaces) Consistency of number of whitespaces (# of spaces being counted as an indent) The number of indents on each line The change in the number of idents from the last line Counts the number of indents open at a time
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Eat ( string line, int lineCnt ) : WhitespaceMorsel

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

Метод Описание
Indents ( int spaces, int line ) : int
TrimLeadingSpaces ( string line, int lineCnt ) : TrimResult

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

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

public Eat ( string line, int lineCnt ) : WhitespaceMorsel
line string
lineCnt int
Результат WhitespaceMorsel