C# Класс Sanderling.Parse.Number

Number formatting in the eve online client depends on number format configured in windows. For this reason, the number parsing works with a range of different group separators and decimal separators.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
DefaultNumberFormatRegex System.Text.RegularExpressions.Regex
DefaultNumberFormatRegexAllowLeadingAndTrailingChars System.Text.RegularExpressions.Regex
DefaultNumberFormatRegexPattern string
DefaultNumberFormatRegexPatternAllowLeadingAndTrailingChars string

Открытые методы

Метод Описание
DefaultNumberFormatRegexPatternConstruct ( bool allowLeadingCharacters = false, bool allowTrailingCharacters = false, string groupIdSufix = null ) : string
IntFromRoman ( this roman ) : int?
NumberFormatRegexPatternConstruct ( string setSignOption, string setDecimalSeparatorOption, string setDigitGroupSeparatorOption, bool allowLeadingCharacters = false, bool allowTrailingCharacters = false, string groupIdSufix = null ) : string
NumberParseDecimal ( this numberString ) : Int64?
NumberParseDecimalMilli ( this numberString ) : Int64?

parses a decimal number and returns the number multiplied by thousand.

NumberParseDecimalMilliBetween ( this stringContainingNumber, string prefixPattern = null, string suffixPattern = null, RegexOptions regexOptions = RegexOptions.None ) : Int64?
RegexPatternAlternativeConstruct ( string setOption ) : string

Описание методов

DefaultNumberFormatRegexPatternConstruct() статический публичный Метод

static public DefaultNumberFormatRegexPatternConstruct ( bool allowLeadingCharacters = false, bool allowTrailingCharacters = false, string groupIdSufix = null ) : string
allowLeadingCharacters bool
allowTrailingCharacters bool
groupIdSufix string
Результат string

IntFromRoman() статический публичный Метод

static public IntFromRoman ( this roman ) : int?
roman this
Результат int?

NumberFormatRegexPatternConstruct() статический публичный Метод

static public NumberFormatRegexPatternConstruct ( string setSignOption, string setDecimalSeparatorOption, string setDigitGroupSeparatorOption, bool allowLeadingCharacters = false, bool allowTrailingCharacters = false, string groupIdSufix = null ) : string
setSignOption string
setDecimalSeparatorOption string
setDigitGroupSeparatorOption string
allowLeadingCharacters bool
allowTrailingCharacters bool
groupIdSufix string
Результат string

NumberParseDecimal() статический публичный Метод

static public NumberParseDecimal ( this numberString ) : Int64?
numberString this
Результат Int64?

NumberParseDecimalMilli() статический публичный Метод

parses a decimal number and returns the number multiplied by thousand.
static public NumberParseDecimalMilli ( this numberString ) : Int64?
numberString this
Результат Int64?

NumberParseDecimalMilliBetween() статический публичный Метод

static public NumberParseDecimalMilliBetween ( this stringContainingNumber, string prefixPattern = null, string suffixPattern = null, RegexOptions regexOptions = RegexOptions.None ) : Int64?
stringContainingNumber this
prefixPattern string
suffixPattern string
regexOptions RegexOptions
Результат Int64?

RegexPatternAlternativeConstruct() статический публичный Метод

static public RegexPatternAlternativeConstruct ( string setOption ) : string
setOption string
Результат string

Описание свойств

DefaultNumberFormatRegex статическое публичное свойство

static public Regex,System.Text.RegularExpressions DefaultNumberFormatRegex
Результат System.Text.RegularExpressions.Regex

DefaultNumberFormatRegexAllowLeadingAndTrailingChars статическое публичное свойство

static public Regex,System.Text.RegularExpressions DefaultNumberFormatRegexAllowLeadingAndTrailingChars
Результат System.Text.RegularExpressions.Regex

DefaultNumberFormatRegexPattern статическое публичное свойство

static public string DefaultNumberFormatRegexPattern
Результат string

DefaultNumberFormatRegexPatternAllowLeadingAndTrailingChars статическое публичное свойство

static public string DefaultNumberFormatRegexPatternAllowLeadingAndTrailingChars
Результат string