ParseColumnHeaderDetect(ref StringSlice, ref Char, out Nullable, out Int32) Method

Definition

Assembly Markdig.dll

Parses a column header equivalent to the regexp:

\s*:\s*[delimiterChar]+\s*:\s*

public static bool ParseColumnHeaderDetect(ref StringSlice slice, ref char delimiterChar, scoped out TableColumnAlign? align, scoped out int delimiterCount)

Parameters

slice
StringSlice

The text slice.

delimiterChar
Char

The delimiter character (either - or =). If \0, it will detect the character (either - or =)

align
Nullable<TableColumnAlign>

The alignment of the column.

delimiterCount
Int32

The number of times delimiterChar appeared in the column header.

Returns

Boolean
true if parsing was successful