C# 클래스 PdfSharp.Pdf.Content.CLexer

Lexical analyzer for PDF content files. Adobe specifies no grammar, but it seems that it is a simple post-fix notation.
파일 보기 프로젝트 열기: DavidS/MigraDoc 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AppendAndScanNextChar char
IsDelimiter bool
IsOperatorChar bool
IsWhiteSpace bool
ScanNextChar char

공개 메소드들

메소드 설명
CLexer ( byte content ) : System

Initializes a new instance of the Lexer class.

ClearToken ( ) : void

Resets the current token to the empty string.

MoveToNonWhiteSpace ( ) : char

If the current character is not a white space, the function immediately returns it. Otherwise the PDF cursor is moved forward to the first non-white space or EOF. White spaces are NUL, HT, LF, FF, CR, and SP.

ScanComment ( ) : CSymbol

Scans a comment line. (Not yet used, comments are skipped by lexer.)

ScanHexadecimalString ( ) : CSymbol
ScanInlineImage ( ) : CSymbol

Scans the bytes of an inline image

ScanLiteralString ( ) : CSymbol
ScanName ( ) : CSymbol

Scans a name.

ScanNextToken ( ) : CSymbol

Reads the next token and returns its type.

ScanNumber ( ) : CSymbol

Scans an integer or real number.

ScanOperator ( ) : CSymbol

Scans an operator.

비공개 메소드들

메소드 설명
AppendAndScanNextChar ( ) : char

Appends current character to the token and reads next one.

IsDelimiter ( char ch ) : bool

Indicates whether the specified character is a PDF delimiter character.

IsOperatorChar ( char ch ) : bool

Indicates whether the specified character is an content operator character.

IsWhiteSpace ( char ch ) : bool

Indicates whether the specified character is a content stream white-space character.

ScanNextChar ( ) : char

Move current position one character further in content stream.

메소드 상세

CLexer() 공개 메소드

Initializes a new instance of the Lexer class.
public CLexer ( byte content ) : System
content byte
리턴 System

ClearToken() 공개 메소드

Resets the current token to the empty string.
public ClearToken ( ) : void
리턴 void

MoveToNonWhiteSpace() 공개 메소드

If the current character is not a white space, the function immediately returns it. Otherwise the PDF cursor is moved forward to the first non-white space or EOF. White spaces are NUL, HT, LF, FF, CR, and SP.
public MoveToNonWhiteSpace ( ) : char
리턴 char

ScanComment() 공개 메소드

Scans a comment line. (Not yet used, comments are skipped by lexer.)
public ScanComment ( ) : CSymbol
리턴 CSymbol

ScanHexadecimalString() 공개 메소드

public ScanHexadecimalString ( ) : CSymbol
리턴 CSymbol

ScanInlineImage() 공개 메소드

Scans the bytes of an inline image
public ScanInlineImage ( ) : CSymbol
리턴 CSymbol

ScanLiteralString() 공개 메소드

public ScanLiteralString ( ) : CSymbol
리턴 CSymbol

ScanName() 공개 메소드

Scans a name.
public ScanName ( ) : CSymbol
리턴 CSymbol

ScanNextToken() 공개 메소드

Reads the next token and returns its type.
public ScanNextToken ( ) : CSymbol
리턴 CSymbol

ScanNumber() 공개 메소드

Scans an integer or real number.
public ScanNumber ( ) : CSymbol
리턴 CSymbol

ScanOperator() 공개 메소드

Scans an operator.
public ScanOperator ( ) : CSymbol
리턴 CSymbol