c81d71b5 cb90 4879 c72e ffef46f64b63 - akesseler/Plexdata.Utilities.Templates GitHub Wiki

TemplateParser.ParseHoleMarker Method

Parses a hole marker.

Namespace: Plexdata.Utilities.Formatting.Helpers
Assembly: Plexdata.Utilities.Templates (in Plexdata.Utilities.Templates.dll) Version: 1.0.0

Syntax

C#

private static BaseToken ParseHoleMarker(
	int index,
	ref int after,
	ref int rating,
	StringBuilder source
)

Parameters

 

index
Type: System.Int32
The index at where to start parsing.
after
Type: System.Int32
The next index behind the hole token.
rating
Type: System.Int32
The rating is nothing else but another expression of index and represents the zero-based offset within the format string.
source
Type: System.Text.StringBuilder
The source format string.

Return Value

Type: BaseToken
An instance of class HoleToken containing the formatting part or an instance of class TextToken when the formatting part was recognized as invalid format definition..

Remarks

This method tries to find the next hole marker within the original format string and returns it as instance of class HoleToken.

See Also

Reference

TemplateParser Class
Plexdata.Utilities.Formatting.Helpers Namespace

⚠️ **GitHub.com Fallback** ⚠️