Added type casting in some places and moved "optional" attribute to be AFTER that...
[mono.git] / mcs / class / Microsoft.VisualBasic / Microsoft.VisualBasic / VbStrConv.cs
1 //\r
2 // VbStrConv.cs\r
3 //\r
4 // Authors:\r
5 //   Martin Adoue (martin@cwanet.com)\r
6 //   Chris J Breisch (cjbreisch@altavista.net)\r
7 //\r
8 // (C) 2002 Ximian Inc.\r
9 //\r
10
11 //
12 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
13 //
14 // Permission is hereby granted, free of charge, to any person obtaining
15 // a copy of this software and associated documentation files (the
16 // "Software"), to deal in the Software without restriction, including
17 // without limitation the rights to use, copy, modify, merge, publish,
18 // distribute, sublicense, and/or sell copies of the Software, and to
19 // permit persons to whom the Software is furnished to do so, subject to
20 // the following conditions:
21 // 
22 // The above copyright notice and this permission notice shall be
23 // included in all copies or substantial portions of the Software.
24 // 
25 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 //
33 \r
34 using System;\r
35 \r
36 namespace Microsoft.VisualBasic\r
37 {\r
38         /// <summary>\r
39         /// When you call the StrConv function, you can use the following enumeration \r
40         /// members in your code in place of the actual values.\r
41         /// </summary>\r
42         [System.Flags] \r
43 #if NET_2_0
44         [System.Serializable]
45 #endif
46         public enum VbStrConv : int {\r
47                 /// <summary>\r
48                 /// Performs no conversion \r
49                 /// </summary>\r
50                 None = 0,\r
51                 /// <summary>\r
52                 /// Uses linguistic rules for casing, rather than File System (default). Valid with UpperCase and LowerCase only. \r
53                 /// </summary>\r
54                 LinguisticCasing = 1024,\r
55                 /// <summary>\r
56                 /// Converts the string to uppercase characters. \r
57                 /// </summary>\r
58                 UpperCase = 1,\r
59                 /// <summary>\r
60                 /// Converts the string to lowercase characters. \r
61                 /// </summary>\r
62                 LowerCase = 2,\r
63                 /// <summary>\r
64                 /// Converts the first letter of every word in string to uppercase.\r
65                 /// </summary>\r
66                 ProperCase = 3,\r
67                 /// <summary>\r
68                 /// Converts narrow (half-width) characters in the string to wide (full-width) characters. (Applies to Asian locales.)\r
69                 /// </summary>\r
70                 Wide = 4,                                       //*  \r
71                 /// <summary>\r
72                 /// Converts wide (full-width) characters in the string to narrow (half-width) characters. (Applies to Asian locales.)\r
73                 /// </summary>\r
74                 Narrow = 8,                                     //*  \r
75                 /// <summary>\r
76                 /// Converts Hiragana characters in the string to Katakana characters. (Applies to Japan only.)\r
77                 /// </summary>\r
78                 Katakana = 16,                          //**  \r
79                 /// <summary>\r
80                 /// Converts Katakana characters in the string to Hiragana characters. (Applies to Japan only.)\r
81                 /// </summary>\r
82                 Hiragana = 32,                          //** \r
83                 /// <summary>\r
84                 /// Converts Traditional Chinese characters to Simplified Chinese. (Applies to Asian locales.)\r
85                 /// </summary>\r
86                 SimplifiedChinese =256,         //*  \r
87                 /// <summary>\r
88                 /// Converts Simplified Chinese characters to Traditional Chinese. (Applies to Asian locales.)\r
89                 /// </summary>\r
90                 TraditionalChinese = 512        //*  \r
91                 /*\r
92                 \r
93                 *   Applies to Asian locales.\r
94                 **  Applies to Japan only.\r
95                 \r
96                 */\r
97         }\r
98 \r
99 }\r