C# Class UniversalMarkdown.Helpers.Common

Afficher le fichier Open project: QuinnDamerell/UniversalMarkdown

Méthodes publiques

Méthode Description
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 (>).

Private Methods

Méthode Description
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.

Method Details

FindNextSingleNewLine() public static méthode

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
Résultat int

FindNextWhiteSpace() public static méthode

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
Résultat int

IndexOf() public static méthode

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
Résultat int

IndexOf() public static méthode

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
Résultat int

IsBlankOrWhiteSpace() public static méthode

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

IsWhiteSpace() public static méthode

Determines if a character is a whitespace character.
public static IsWhiteSpace ( char c ) : bool
c char
Résultat bool

ParseInlineChildren() public static méthode

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.
Résultat List

ParseLines() public static méthode

Parses lines.
public static ParseLines ( string markdown, int start, int end, int quoteDepth ) : IEnumerable
markdown string
start int
end int
quoteDepth int
Résultat IEnumerable

SkipQuoteCharacters() public static méthode

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.
Résultat int