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
Afficher le fichier Open project: Ancestry/Daisy Class Usage Examples

Méthodes publiques

Méthode Description
Eat ( string line, int lineCnt ) : WhitespaceMorsel

Private Methods

Méthode Description
Indents ( int spaces, int line ) : int
TrimLeadingSpaces ( string line, int lineCnt ) : TrimResult

Method Details

Eat() public méthode

public Eat ( string line, int lineCnt ) : WhitespaceMorsel
line string
lineCnt int
Résultat WhitespaceMorsel