C# 클래스 UniversalMarkdown.Helpers.Common

파일 보기 프로젝트 열기: QuinnDamerell/UniversalMarkdown

공개 메소드들

메소드 설명
FindNextSingleNewLine ( string markdown, int startingPos, int endingPos, int &startOfNextLine ) : int

Returns the next \n or \r\n in the markdown.

FindNextWhiteSpace ( string markdown, int startingPos, int endingPos, bool ifNotFoundReturnLength ) : int

Finds the next whitespace in a range.

IndexOf ( string markdown, char search, int startingPos, int endingPos, bool reverseSearch = false ) : int

Helper function for index of with a start and an ending.

IndexOf ( string markdown, string search, int startingPos, int endingPos, bool reverseSearch = false ) : int

Helper function for index of with a start and an ending.

IsBlankOrWhiteSpace ( string str ) : bool

Determines if a string is blank or comprised entirely of whitespace characters.

IsWhiteSpace ( char c ) : bool

Determines if a character is a whitespace character.

ParseInlineChildren ( string markdown, int startingPos, int maxEndingPos, bool ignoreLinks = false ) : List

This function can be called by any element parsing. Given a start and stopping point this will parse all found elements out of the range.

ParseLines ( string markdown, int start, int end, int quoteDepth ) : IEnumerable

Parses lines.

SkipQuoteCharacters ( string markdown, int start, int end, int quoteDepth ) : int

Skips a certain number of quote characters (>).

비공개 메소드들

메소드 설명
Common ( ) : System
FindNextInlineElement ( string markdown, int start, int end, bool ignoreLinks ) : InlineParseResult

Finds the next inline element by matching trip chars and verifying the match.

메소드 상세

FindNextSingleNewLine() 공개 정적인 메소드

Returns the next \n or \r\n in the markdown.
public static FindNextSingleNewLine ( string markdown, int startingPos, int endingPos, int &startOfNextLine ) : int
markdown string
startingPos int
endingPos int
startOfNextLine int
리턴 int

FindNextWhiteSpace() 공개 정적인 메소드

Finds the next whitespace in a range.
public static FindNextWhiteSpace ( string markdown, int startingPos, int endingPos, bool ifNotFoundReturnLength ) : int
markdown string
startingPos int
endingPos int
ifNotFoundReturnLength bool
리턴 int

IndexOf() 공개 정적인 메소드

Helper function for index of with a start and an ending.
public static IndexOf ( string markdown, char search, int startingPos, int endingPos, bool reverseSearch = false ) : int
markdown string
search char
startingPos int
endingPos int
reverseSearch bool
리턴 int

IndexOf() 공개 정적인 메소드

Helper function for index of with a start and an ending.
public static IndexOf ( string markdown, string search, int startingPos, int endingPos, bool reverseSearch = false ) : int
markdown string
search string
startingPos int
endingPos int
reverseSearch bool
리턴 int

IsBlankOrWhiteSpace() 공개 정적인 메소드

Determines if a string is blank or comprised entirely of whitespace characters.
public static IsBlankOrWhiteSpace ( string str ) : bool
str string
리턴 bool

IsWhiteSpace() 공개 정적인 메소드

Determines if a character is a whitespace character.
public static IsWhiteSpace ( char c ) : bool
c char
리턴 bool

ParseInlineChildren() 공개 정적인 메소드

This function can be called by any element parsing. Given a start and stopping point this will parse all found elements out of the range.
public static ParseInlineChildren ( string markdown, int startingPos, int maxEndingPos, bool ignoreLinks = false ) : List
markdown string
startingPos int
maxEndingPos int
ignoreLinks bool Indicates whether to parse links.
리턴 List

ParseLines() 공개 정적인 메소드

Parses lines.
public static ParseLines ( string markdown, int start, int end, int quoteDepth ) : IEnumerable
markdown string
start int
end int
quoteDepth int
리턴 IEnumerable

SkipQuoteCharacters() 공개 정적인 메소드

Skips a certain number of quote characters (>).
public static SkipQuoteCharacters ( string markdown, int start, int end, int quoteDepth ) : int
markdown string
start int
end int
quoteDepth int The number of quote characters to skip.
리턴 int