Copied remotely
[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 //
16 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
17 //
18 // Permission is hereby granted, free of charge, to any person obtaining
19 // a copy of this software and associated documentation files (the
20 // "Software"), to deal in the Software without restriction, including
21 // without limitation the rights to use, copy, modify, merge, publish,
22 // distribute, sublicense, and/or sell copies of the Software, and to
23 // permit persons to whom the Software is furnished to do so, subject to
24 // the following conditions:
25 // 
26 // The above copyright notice and this permission notice shall be
27 // included in all copies or substantial portions of the Software.
28 // 
29 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
30 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
31 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
32 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
33 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
34 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
35 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
36 //
37
38 namespace System.Globalization {
39
40         [Flags]
41         [Serializable]
42         public enum NumberStyles {
43                 None                 = 0x00000000,
44                 AllowLeadingWhite    = 0x00000001,
45                 AllowTrailingWhite   = 0x00000002,
46                 AllowLeadingSign     = 0x00000004,
47                 AllowTrailingSign    = 0x00000008,
48                 AllowParentheses     = 0x00000010,
49                 AllowDecimalPoint    = 0x00000020,
50                 AllowThousands       = 0x00000040,
51                 AllowExponent        = 0x00000080,
52                 AllowCurrencySymbol  = 0x00000100,
53                 AllowHexSpecifier    = 0x00000200,
54
55                 Integer   = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign ),
56                 HexNumber = ( AllowLeadingWhite | AllowTrailingWhite | AllowHexSpecifier ),
57                 Number    = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign | 
58                               AllowTrailingSign | AllowDecimalPoint  | AllowThousands ), 
59                 Float     = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign | 
60                               AllowDecimalPoint | AllowExponent ),           
61                 Currency  = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign | 
62                               AllowTrailingSign | AllowParentheses   | AllowDecimalPoint |
63                               AllowThousands    | AllowCurrencySymbol ), 
64                 Any       = ( AllowLeadingWhite | AllowTrailingWhite | AllowLeadingSign | 
65                               AllowTrailingSign | AllowParentheses   | AllowDecimalPoint |
66                               AllowThousands    | AllowExponent      | AllowCurrencySymbol ), 
67         }
68
69 } // Namespace