2003-12-06 Dick Porter <dick@ximian.com>
[mono.git] / mcs / class / corlib / System.Globalization / NumberStyles.cs
1 //------------------------------------------------------------------------------
2 // 
3 // System.Globalization.NumberStyles.cs 
4 //
5 // Copyright (C) 2001 Michael Lambert, All Rights Reserved
6 // 
7 // Author:         Michael Lambert, michaellambert@email.com
8 // Created:        Thu 07/18/2001 
9 //
10 // Modified:       7/20/01, Derek Holden (dholden@draper.com)
11 //                 Added ECMA values for allows and masks for data types
12 //
13 //------------------------------------------------------------------------------
14
15 namespace System.Globalization {
16
17         [Flags]
18         [Serializable]
19         public enum NumberStyles {
20                 None                 = 0x00000000,
21                 AllowLeadingWhite    = 0x00000001,
22                 AllowTrailingWhite   = 0x00000002,
23                 AllowLeadingSign     = 0x00000004,
24                 AllowTrailingSign    = 0x00000008,
25                 AllowParentheses     = 0x00000010,
26                 AllowDecimalPoint    = 0x00000020,
27                 AllowThousands       = 0x00000040,
28                 AllowExponent        = 0x00000080,
29                 AllowCurrencySymbol  = 0x00000100,
30                 AllowHexSpecifier    = 0x00000200,
31
32                 Integer   = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign ),
33                 HexNumber = ( AllowLeadingWhite | AllowTrailingWhite | AllowHexSpecifier ),
34                 Number    = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign | 
35                               AllowTrailingSign | AllowDecimalPoint  | AllowThousands ), 
36                 Float     = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign | 
37                               AllowDecimalPoint | AllowExponent ),           
38                 Currency  = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign | 
39                               AllowTrailingSign | AllowParentheses   | AllowDecimalPoint |
40                               AllowThousands    | AllowCurrencySymbol ), 
41                 Any       = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign | 
42                               AllowTrailingSign | AllowParentheses   | AllowDecimalPoint |
43                               AllowThousands    | AllowExponent      | AllowCurrencySymbol ), 
44         }
45
46 } // Namespace