2002-04-13 Gonzalo Paniagua Javier <gonzalo@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         public enum NumberStyles {
19                 None                 = 0x00000000,
20                 AllowLeadingWhite    = 0x00000001,
21                 AllowTrailingWhite   = 0x00000002,
22                 AllowLeadingSign     = 0x00000004,
23                 AllowTrailingSign    = 0x00000008,
24                 AllowParentheses     = 0x00000010,
25                 AllowDecimalPoint    = 0x00000020,
26                 AllowThousands       = 0x00000040,
27                 AllowExponent        = 0x00000080,
28                 AllowCurrencySymbol  = 0x00000100,
29                 AllowHexSpecifier    = 0x00000200,
30
31                 Integer   = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign ),
32                 HexNumber = ( AllowLeadingWhite | AllowTrailingWhite | AllowHexSpecifier ),
33                 Number    = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign | 
34                               AllowTrailingSign | AllowDecimalPoint  | AllowThousands ), 
35                 Float     = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign | 
36                               AllowDecimalPoint | AllowExponent ),           
37                 Currency  = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign | 
38                               AllowTrailingSign | AllowParentheses   | AllowDecimalPoint |
39                               AllowThousands    | AllowCurrencySymbol ), 
40                 Any       = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign | 
41                               AllowTrailingSign | AllowParentheses   | AllowDecimalPoint |
42                               AllowThousands    | AllowExponent      | AllowCurrencySymbol ), 
43         }
44
45 } // Namespace