C# Class System.TermInfo.ParameterizedStrings

Provides support for evaluating parameterized terminfo database format strings.
Show file Open project: dotnet/corefx

Public Methods

Method Description
Evaluate ( string format ) : string

Evaluates a terminfo formatting string, using the supplied arguments.

Evaluate ( string format, FormatParam arg ) : string

Evaluates a terminfo formatting string, using the supplied argument.

Evaluate ( string format, FormatParam arg1, FormatParam arg2 ) : string

Evaluates a terminfo formatting string, using the supplied arguments.

Private Methods

Method Description
AsBool ( Int32 i ) : bool

Converts an Int32 to a Boolean, with 0 meaning false and all non-zero values meaning true.

AsInt ( bool b ) : int

Converts a Boolean to an Int32, with true meaning 1 and false meaning 0.

EvaluateInternal ( string format, int &pos, FormatParam args, Stack stack, FormatParam &dynamicVars, FormatParam &staticVars ) : string

Evaluates a terminfo formatting string, using the supplied arguments and processing data structures.

FormatPrintF ( string format, object arg ) : string

Formats an argument into a printf-style format string.

GetDynamicOrStaticVariables ( char c, FormatParam &dynamicVars, FormatParam &staticVars, int &index ) : FormatParam[]

Gets the lazily-initialized dynamic or static variables collection, based on the supplied variable name.

Method Details

Evaluate() public static method

Evaluates a terminfo formatting string, using the supplied arguments.
public static Evaluate ( string format ) : string
format string The format string.
return string

Evaluate() public static method

Evaluates a terminfo formatting string, using the supplied argument.
public static Evaluate ( string format, FormatParam arg ) : string
format string The format string.
arg FormatParam The argument to the format string.
return string

Evaluate() public static method

Evaluates a terminfo formatting string, using the supplied arguments.
public static Evaluate ( string format, FormatParam arg1, FormatParam arg2 ) : string
format string The format string.
arg1 FormatParam The first argument to the format string.
arg2 FormatParam The second argument to the format string.
return string