C# Class IronPython.Runtime.StringFormatter

StringFormatter provides Python's % style string formatting services.
Afficher le fichier Open project: jschementi/iron Class Usage Examples

Private Properties

Свойство Type Description
AdjustForG char
AppendBase void
AppendBaseBigInt void
AppendChar void
AppendFloat void
AppendHex void
AppendInt void
AppendLeftAdj void
AppendNumberReversed void
AppendNumeric void
AppendOctal void
AppendRepr void
AppendString void
AppendString void
AppendZeroPad void
AppendZeroPadFloat void
CheckDataUsed void
DoFormatCode void
FixupAltFormDot void
FixupFloatMinus void
GetAltFormPrefixForRadix string
GetData object
GetIntegerValue object
GetKey object
NeedsAltForm bool
ReadConversionFlags void
ReadLengthModifier void
ReadMappingKey string
ReadMinimumFieldWidth void
ReadNumberOrStar int
ReadNumberOrStar int
ReadPrecision void
WriteConversion void
removeExponentePaddingZero string

Méthodes publiques

Méthode Description
Format ( ) : string
StringFormatter ( CodeContext context, string str, object data ) : System
StringFormatter ( CodeContext context, string str, object data, bool isUnicode ) : System

Private Methods

Méthode Description
AdjustForG ( char type, double v ) : char
AppendBase ( char format, int radix ) : void

AppendBase appends an integer at the specified radix doing all the special forms for Python. We have a copy and paste version of this for BigInteger below that should be kept in sync.

AppendBaseBigInt ( BigInteger origVal, char format, int radix ) : void

BigInteger version of AppendBase. Should be kept in sync w/ AppendBase

AppendChar ( ) : void
AppendFloat ( char type ) : void
AppendHex ( char format ) : void
AppendInt ( ) : void
AppendLeftAdj ( object val, bool fPos, char type ) : void
AppendNumberReversed ( StringBuilder str, string res ) : void
AppendNumeric ( object val, bool fPos, char format ) : void
AppendOctal ( ) : void
AppendRepr ( ) : void
AppendString ( ) : void
AppendString ( string s ) : void
AppendZeroPad ( object val, bool fPos, char format ) : void
AppendZeroPadFloat ( double val, char format ) : void
CheckDataUsed ( ) : void
DoFormatCode ( ) : void
FixupAltFormDot ( double v ) : void
FixupFloatMinus ( ) : void
GetAltFormPrefixForRadix ( char format, int radix ) : string
GetData ( int index ) : object
GetIntegerValue ( bool &fPos ) : object
GetKey ( string key ) : object
NeedsAltForm ( char format, char last ) : bool
ReadConversionFlags ( ) : void
ReadLengthModifier ( ) : void
ReadMappingKey ( ) : string

Read a possible mapping key for %(key)s.

ReadMinimumFieldWidth ( ) : void
ReadNumberOrStar ( ) : int
ReadNumberOrStar ( int noValSpecified ) : int
ReadPrecision ( ) : void
WriteConversion ( ) : void
removeExponentePaddingZero ( string val ) : string

Method Details

Format() public méthode

public Format ( ) : string
Résultat string

StringFormatter() public méthode

public StringFormatter ( CodeContext context, string str, object data ) : System
context CodeContext
str string
data object
Résultat System

StringFormatter() public méthode

public StringFormatter ( CodeContext context, string str, object data, bool isUnicode ) : System
context CodeContext
str string
data object
isUnicode bool
Résultat System