C# Class 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
Datei anzeigen Open project: Ancestry/Daisy Class Usage Examples

Public Methods

Method Description
Eat ( string line, int lineCnt ) : WhitespaceMorsel

Private Methods

Method Description
Indents ( int spaces, int line ) : int
TrimLeadingSpaces ( string line, int lineCnt ) : TrimResult

Method Details

Eat() public method

public Eat ( string line, int lineCnt ) : WhitespaceMorsel
line string
lineCnt int
return WhitespaceMorsel