85 lines
8.8 KiB
C#
85 lines
8.8 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Globalization
|
|
{
|
|
/// <summary>Determines the styles permitted in numeric string arguments that are passed to the <see langword="Parse" /> and <see langword="TryParse" /> methods of the integral and floating-point numeric types.</summary>
|
|
// Token: 0x020002F6 RID: 758
|
|
[Token(Token = "0x20002F6")]
|
|
[Flags]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public enum NumberStyles
|
|
{
|
|
/// <summary>Indicates that no style elements, such as leading or trailing white space, thousands separators, or a decimal separator, can be present in the parsed string. The string to be parsed must consist of integral decimal digits only.</summary>
|
|
// Token: 0x04000FF0 RID: 4080
|
|
[Token(Token = "0x4000FF0")]
|
|
None = 0,
|
|
/// <summary>Indicates that leading white-space characters can be present in the parsed string. Valid white-space characters have the Unicode values U+0009, U+000A, U+000B, U+000C, U+000D, and U+0020. Note that this is a subset of the characters for which the <see cref="M:System.Char.IsWhiteSpace(System.Char)" /> method returns <see langword="true" />.</summary>
|
|
// Token: 0x04000FF1 RID: 4081
|
|
[Token(Token = "0x4000FF1")]
|
|
AllowLeadingWhite = 1,
|
|
/// <summary>Indicates that trailing white-space characters can be present in the parsed string. Valid white-space characters have the Unicode values U+0009, U+000A, U+000B, U+000C, U+000D, and U+0020. Note that this is a subset of the characters for which the <see cref="M:System.Char.IsWhiteSpace(System.Char)" /> method returns <see langword="true" />.</summary>
|
|
// Token: 0x04000FF2 RID: 4082
|
|
[Token(Token = "0x4000FF2")]
|
|
AllowTrailingWhite = 2,
|
|
/// <summary>Indicates that the numeric string can have a leading sign. Valid leading sign characters are determined by the <see cref="P:System.Globalization.NumberFormatInfo.PositiveSign" /> and <see cref="P:System.Globalization.NumberFormatInfo.NegativeSign" /> properties.</summary>
|
|
// Token: 0x04000FF3 RID: 4083
|
|
[Token(Token = "0x4000FF3")]
|
|
AllowLeadingSign = 4,
|
|
/// <summary>Indicates that the numeric string can have a trailing sign. Valid trailing sign characters are determined by the <see cref="P:System.Globalization.NumberFormatInfo.PositiveSign" /> and <see cref="P:System.Globalization.NumberFormatInfo.NegativeSign" /> properties.</summary>
|
|
// Token: 0x04000FF4 RID: 4084
|
|
[Token(Token = "0x4000FF4")]
|
|
AllowTrailingSign = 8,
|
|
/// <summary>Indicates that the numeric string can have one pair of parentheses enclosing the number. The parentheses indicate that the string to be parsed represents a negative number.</summary>
|
|
// Token: 0x04000FF5 RID: 4085
|
|
[Token(Token = "0x4000FF5")]
|
|
AllowParentheses = 16,
|
|
/// <summary>Indicates that the numeric string can have a decimal point. If the <see cref="T:System.Globalization.NumberStyles" /> value includes the <see cref="F:System.Globalization.NumberStyles.AllowCurrencySymbol" /> flag and the parsed string includes a currency symbol, the decimal separator character is determined by the <see cref="P:System.Globalization.NumberFormatInfo.CurrencyDecimalSeparator" /> property. Otherwise, the decimal separator character is determined by the <see cref="P:System.Globalization.NumberFormatInfo.NumberDecimalSeparator" /> property.</summary>
|
|
// Token: 0x04000FF6 RID: 4086
|
|
[Token(Token = "0x4000FF6")]
|
|
AllowDecimalPoint = 32,
|
|
/// <summary>Indicates that the numeric string can have group separators, such as symbols that separate hundreds from thousands. If the <see cref="T:System.Globalization.NumberStyles" /> value includes the <see cref="F:System.Globalization.NumberStyles.AllowCurrencySymbol" /> flag and the string to be parsed includes a currency symbol, the valid group separator character is determined by the <see cref="P:System.Globalization.NumberFormatInfo.CurrencyGroupSeparator" /> property, and the number of digits in each group is determined by the <see cref="P:System.Globalization.NumberFormatInfo.CurrencyGroupSizes" /> property. Otherwise, the valid group separator character is determined by the <see cref="P:System.Globalization.NumberFormatInfo.NumberGroupSeparator" /> property, and the number of digits in each group is determined by the <see cref="P:System.Globalization.NumberFormatInfo.NumberGroupSizes" /> property.</summary>
|
|
// Token: 0x04000FF7 RID: 4087
|
|
[Token(Token = "0x4000FF7")]
|
|
AllowThousands = 64,
|
|
/// <summary>Indicates that the numeric string can be in exponential notation. The <see cref="F:System.Globalization.NumberStyles.AllowExponent" /> flag allows the parsed string to contain an exponent that begins with the "E" or "e" character and that is followed by an optional positive or negative sign and an integer. In other words, it successfully parses strings in the form nnnExx, nnnE+xx, and nnnE-xx. It does not allow a decimal separator or sign in the significand or mantissa; to allow these elements in the string to be parsed, use the <see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" /> and <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" /> flags, or use a composite style that includes these individual flags.</summary>
|
|
// Token: 0x04000FF8 RID: 4088
|
|
[Token(Token = "0x4000FF8")]
|
|
AllowExponent = 128,
|
|
/// <summary>Indicates that the numeric string can contain a currency symbol. Valid currency symbols are determined by the <see cref="P:System.Globalization.NumberFormatInfo.CurrencySymbol" /> property.</summary>
|
|
// Token: 0x04000FF9 RID: 4089
|
|
[Token(Token = "0x4000FF9")]
|
|
AllowCurrencySymbol = 256,
|
|
/// <summary>Indicates that the numeric string represents a hexadecimal value. Valid hexadecimal values include the numeric digits 0-9 and the hexadecimal digits A-F and a-f. Strings that are parsed using this style cannot be prefixed with "0x" or "&h". A string that is parsed with the <see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" /> style will always be interpreted as a hexadecimal value. The only flags that can be combined with <see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" /> are <see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" /> and <see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />. The <see cref="T:System.Globalization.NumberStyles" /> enumeration includes a composite style, <see cref="F:System.Globalization.NumberStyles.HexNumber" />, that consists of these three flags.</summary>
|
|
// Token: 0x04000FFA RID: 4090
|
|
[Token(Token = "0x4000FFA")]
|
|
AllowHexSpecifier = 512,
|
|
/// <summary>Indicates that the <see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />, <see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, and <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" /> styles are used. This is a composite number style.</summary>
|
|
// Token: 0x04000FFB RID: 4091
|
|
[Token(Token = "0x4000FFB")]
|
|
Integer = 7,
|
|
/// <summary>Indicates that the <see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />, <see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, and <see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" /> styles are used. This is a composite number style.</summary>
|
|
// Token: 0x04000FFC RID: 4092
|
|
[Token(Token = "0x4000FFC")]
|
|
HexNumber = 515,
|
|
/// <summary>Indicates that the <see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />, <see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />, <see cref="F:System.Globalization.NumberStyles.AllowTrailingSign" />, <see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" />, and <see cref="F:System.Globalization.NumberStyles.AllowThousands" /> styles are used. This is a composite number style.</summary>
|
|
// Token: 0x04000FFD RID: 4093
|
|
[Token(Token = "0x4000FFD")]
|
|
Number = 111,
|
|
/// <summary>Indicates that the <see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />, <see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />, <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />, <see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" />, and <see cref="F:System.Globalization.NumberStyles.AllowExponent" /> styles are used. This is a composite number style.</summary>
|
|
// Token: 0x04000FFE RID: 4094
|
|
[Token(Token = "0x4000FFE")]
|
|
Float = 167,
|
|
/// <summary>Indicates that all styles except <see cref="F:System.Globalization.NumberStyles.AllowExponent" /> and <see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" /> are used. This is a composite number style.</summary>
|
|
// Token: 0x04000FFF RID: 4095
|
|
[Token(Token = "0x4000FFF")]
|
|
Currency = 383,
|
|
/// <summary>Indicates that all styles except <see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" /> are used. This is a composite number style.</summary>
|
|
// Token: 0x04001000 RID: 4096
|
|
[Token(Token = "0x4001000")]
|
|
Any = 511
|
|
}
|
|
}
|