2004-05-11 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
authorAndreas N <andreas@mono-cvs.ximian.com>
Tue, 11 May 2004 17:05:25 +0000 (17:05 -0000)
committerAndreas N <andreas@mono-cvs.ximian.com>
Tue, 11 May 2004 17:05:25 +0000 (17:05 -0000)
* Char.cs: Fix exceptions

svn path=/trunk/mcs/; revision=27120

mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/Char.cs

index 63bf044c61a1ae53d2ce5d055a190f3e8745e41d..534fb980872e201593fa69b9feb8997fd1421a6d 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-11  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * Char.cs: Fix exceptions
+
 2004-05-11  Lluis Sanchez Gual  <lluis@ximian.com>
 
        * MissingMemberException.cs: Fix in serialization constructor.
index 38380f0528cf3019862fb7c61e217d3a58d0d95f..8e42af1eddff5a409f88edaf88c4c521c8a8a244 100644 (file)
@@ -104,12 +104,11 @@ namespace System
                public static double GetNumericValue (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
                                throw new ArgumentOutOfRangeException (Locale.GetText (
-                                       "The value of index is less than zero, or greater than or equal to the length of str"));
-                                       
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));       
                        
                        return GetNumericValue (str[index]);
                }
@@ -124,11 +123,11 @@ namespace System
                public static UnicodeCategory GetUnicodeCategory (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
-                               throw new ArgumentOutOfRangeException (Locale.GetText ("The value of index is less "+
-                                                         "than zero, or greater than or equal to the length of str"));
+                               throw new ArgumentOutOfRangeException (Locale.GetText (
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));
                        
                        return GetUnicodeCategory (str[index]);
                }
@@ -143,11 +142,11 @@ namespace System
                public static bool IsControl (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("Str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
                                throw new ArgumentOutOfRangeException (Locale.GetText (
-                                       "The value of index is less than zero, or greater than or equal to the length of str"));
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));
                        
                        return IsControl (str[index]);
                }       
@@ -162,11 +161,11 @@ namespace System
                public static bool IsDigit (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("Str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
                                throw new ArgumentOutOfRangeException (Locale.GetText (
-                                "The value of index is less than zero, or greater than or equal to the length of str"));
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));
                        
                        return IsDigit (str[index]);
                }
@@ -191,11 +190,11 @@ namespace System
                public static bool IsLetter (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
                                throw new ArgumentOutOfRangeException (Locale.GetText (
-                                "The value of index is less than zero, or greater than or equal to the length of str"));
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));
                        
                        return IsLetter (str[index]);
                }
@@ -221,11 +220,11 @@ namespace System
                public static bool IsLetterOrDigit (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
                                throw new ArgumentOutOfRangeException (Locale.GetText (
-                                "The value of index is less than zero, or greater than or equal to the length of str"));
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));
                        
                        return IsLetterOrDigit (str[index]);
                }
@@ -240,11 +239,11 @@ namespace System
                public static bool IsLower (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
                                throw new ArgumentOutOfRangeException (Locale.GetText (
-                                "The value of index is less than zero, or greater than or equal to the length of str"));
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));
                        
                        return IsLower (str[index]);
                }
@@ -267,11 +266,11 @@ namespace System
                public static bool IsNumber (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
                                throw new ArgumentOutOfRangeException (Locale.GetText (
-                               "The value of index is less than zero, or greater than or equal to the length of str"));
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));
                        
                        return IsNumber (str[index]);
                }
@@ -298,11 +297,11 @@ namespace System
                public static bool IsPunctuation (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
                                throw new ArgumentOutOfRangeException (Locale.GetText (
-                                "The value of index is less than zero, or greater than or equal to the length of str"));
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));
                        
                        return IsPunctuation (str[index]);
                }
@@ -325,11 +324,11 @@ namespace System
                public static bool IsSeparator (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
                                throw new ArgumentOutOfRangeException (Locale.GetText (
-                                "The value of index is less than zero, or greater than or equal to the length of str"));
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));
                        
                        return IsSeparator (str[index]);
                }
@@ -344,11 +343,11 @@ namespace System
                public static bool IsSurrogate (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
                                throw new ArgumentOutOfRangeException (Locale.GetText (
-                                "The value of index is less than zero, or greater than or equal to the length of str"));
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));
                        
                        return IsSurrogate (str[index]);
                }
@@ -372,11 +371,11 @@ namespace System
                public static bool IsSymbol (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
                                throw new ArgumentOutOfRangeException (Locale.GetText (
-                                       "The value of index is less than zero, or greater than or equal to the length of str"));
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));
                        
                        return IsSymbol (str[index]);
                }
@@ -391,11 +390,11 @@ namespace System
                public static bool IsUpper (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
                                throw new ArgumentOutOfRangeException (Locale.GetText (
-                                "The value of index is less than zero, or greater than or equal to the length of str"));
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));
                        
                        return IsUpper (str[index]);
                }
@@ -425,19 +424,19 @@ namespace System
                public static bool IsWhiteSpace (string str, int index)
                {
                        if (str == null) 
-                               throw new ArgumentNullException (Locale.GetText ("str is a null reference"));
+                               throw new ArgumentNullException ("str");
                        
                        if (index < 0 || index >= str.Length)
                                throw new ArgumentOutOfRangeException (Locale.GetText (
-                                       "The value of index is less than zero, or greater than or equal to the length of str"));
+                                       "The value of index is less than zero, or greater than or equal to the length of str."));
                        
                        return IsWhiteSpace (str[index]);
                }
 
                public static char Parse (string str)
                {
-                       if (str == null)
-                               throw new ArgumentNullException (Locale.GetText ("str is a null reference"));
+                       if (str == null) 
+                               throw new ArgumentNullException ("str");
 
                        if (str.Length != 1)
                                throw new FormatException ("string contains more than one character.");