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
파일 보기 프로젝트 열기: Ancestry/Daisy 1 사용 예제들

공개 메소드들

메소드 설명
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