C# 클래스 Axiom.Scripting.ParseHelper

Class contining helper methods for parsing text files.
파일 보기 프로젝트 열기: WolfgangSt/axiom

공개 메소드들

메소드 설명
Combine ( string items, int start, int end ) : string

Helper method for taking a string array and returning a single concatenated string composed of the range of specified elements.

GetParams ( string all ) : string[]

Helper method to remove the first item from a string array and return a new array 1 element smaller starting at the second element of the original array. This helpe to seperate the params from the command in the various script files.

LogParserError ( string attribute, string context, string reason ) : void

Helper method to log a formatted error when encountering problems with parsing an attribute.

ReadLine ( TextReader reader ) : string

Helper method to nip/tuck the string before parsing it. This includes trimming spaces from the beginning and end of the string, as well as removing excess spaces in between values.

SkipToNextCloseBrace ( TextReader reader ) : void

Advances in the stream until it hits the next }.

SkipToNextOpenBrace ( TextReader reader ) : void

Advances in the stream until it hits the next {.

메소드 상세

Combine() 공개 정적인 메소드

Helper method for taking a string array and returning a single concatenated string composed of the range of specified elements.
public static Combine ( string items, int start, int end ) : string
items string
start int
end int
리턴 string

GetParams() 공개 정적인 메소드

Helper method to remove the first item from a string array and return a new array 1 element smaller starting at the second element of the original array. This helpe to seperate the params from the command in the various script files.
public static GetParams ( string all ) : string[]
all string
리턴 string[]

LogParserError() 공개 정적인 메소드

Helper method to log a formatted error when encountering problems with parsing an attribute.
public static LogParserError ( string attribute, string context, string reason ) : void
attribute string
context string
reason string
리턴 void

ReadLine() 공개 정적인 메소드

Helper method to nip/tuck the string before parsing it. This includes trimming spaces from the beginning and end of the string, as well as removing excess spaces in between values.
public static ReadLine ( TextReader reader ) : string
reader TextReader
리턴 string

SkipToNextCloseBrace() 공개 정적인 메소드

Advances in the stream until it hits the next }.
public static SkipToNextCloseBrace ( TextReader reader ) : void
reader TextReader
리턴 void

SkipToNextOpenBrace() 공개 정적인 메소드

Advances in the stream until it hits the next {.
public static SkipToNextOpenBrace ( TextReader reader ) : void
reader TextReader
리턴 void