C# Class System.ParameterizedStrings

Provides support for evaluating parameterized terminfo database format strings.
Mostra file Open project: vargaz/mono

Public Methods

Method Description
Evaluate ( string format ) : 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, LowLevelStack 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.

StringFromAsciiBytes ( byte buffer, int offset, int length ) : string
snprintf ( byte str, IntPtr size, string format, int arg1 ) : int
snprintf ( byte str, IntPtr size, string format, string arg1 ) : int

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