2002-08-15 Tim Coleamn <tim@timcoleman.com>
authorTim Coleman <tim@mono-cvs.ximian.com>
Sat, 17 Aug 2002 07:43:15 +0000 (07:43 -0000)
committerTim Coleman <tim@mono-cvs.ximian.com>
Sat, 17 Aug 2002 07:43:15 +0000 (07:43 -0000)
        * CompareInfo.cs:
                Stubbed out some methods.

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

mcs/class/corlib/System.Globalization/ChangeLog
mcs/class/corlib/System.Globalization/CompareInfo.cs

index 70fad12228468f0f7b08bd3e70295bc67d7e4b0a..8c20c6e1baed379ffccf164ea732b0b5bab99167 100644 (file)
@@ -1,3 +1,7 @@
+2002-08-15  Tim Coleamn <tim@timcoleman.com>
+       * CompareInfo.cs:
+               Stubbed out some methods.
+
 2002-08-14  Dick Porter  <dick@ximian.com>
 
        * CultureInfo.cs: Implement Name, stub out all the other missing
index 5e6fdee6e08a5f7ee3ad85533e6b4b66e0a90f4b..d0ecec3cd21741b931cc3ef58386faf8703cc4a8 100644 (file)
@@ -13,6 +13,138 @@ namespace System.Globalization
 {
        public class CompareInfo : IDeserializationCallback
        {
+
+               public virtual int Compare (string string1, string string2)
+               {
+                       return Compare (string1, string2, CompareOptions.None);
+               }
+
+               [MonoTODO]
+               public virtual int Compare (string string1, string string2, CompareOptions options)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public virtual int Compare (string string1, int offset1, string string2, int offset2)
+               {
+                       return Compare (string1, offset1, string2, offset2, CompareOptions.None);
+               }
+
+               [MonoTODO]
+               public virtual int Compare (string string1, int offset1, string string2, int offset2, CompareOptions options)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public virtual int Compare (string string1, int offset1, int length1, string string2, int offset2, int length2)
+               {
+                       return Compare (string1, offset1, length1, string2, offset2, length2, CompareOptions.None);
+               }
+
+               [MonoTODO]
+               public virtual int Compare (string string1, int offset1, int length1, string string2, int offset2, int length2, CompareOptions options)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public virtual int IndexOf (string source, char value)
+               {
+                       if (source == null)
+                               throw new ArgumentNullException ();
+                       return IndexOf (source, value, CompareOptions.None);
+               }
+
+               public virtual int IndexOf (string source, string value)
+               {
+                       if (source == null)
+                               throw new ArgumentNullException ();
+                       if (value == null)
+                               throw new ArgumentNullException ();
+                       return IndexOf (source, value, CompareOptions.None);
+               }
+
+               [MonoTODO]
+               public virtual int IndexOf (string source, char value, CompareOptions options)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public virtual int IndexOf (string source, char value, int startIndex)
+               {
+                       if (source == null)
+                               throw new ArgumentNullException ();
+                       if (startIndex < 0 || startIndex > source.Length)
+                               throw new ArgumentOutOfRangeException ();
+                       return IndexOf (source, value, startIndex, CompareOptions.None);
+               }
+               
+               [MonoTODO]
+               public virtual int IndexOf (string source, string value, CompareOptions options)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public virtual int IndexOf (string source, string value, int startIndex)
+               {
+                       if (source == null)
+                               throw new ArgumentNullException ();
+                       if (value == null)
+                               throw new ArgumentNullException ();
+                       if (startIndex < 0 || startIndex > source.Length)
+                               throw new ArgumentOutOfRangeException ();
+                       return IndexOf (source, value, startIndex, CompareOptions.None);
+               }
+
+               [MonoTODO]
+               public virtual int IndexOf (string source, char value, int startIndex, CompareOptions options)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public virtual int IndexOf (string source, char value, int startIndex, int count)
+               {
+                       if (source == null)
+                               throw new ArgumentNullException ();
+                       if (startIndex < 0 || startIndex > source.Length)
+                               throw new ArgumentOutOfRangeException ();
+                       if (count < 0)
+                               throw new ArgumentOutOfRangeException ();
+                       return IndexOf (source, value, startIndex, count, CompareOptions.None);
+               }
+
+               public virtual int IndexOf (string source, string value, int startIndex, CompareOptions options)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public virtual int IndexOf (string source, string value, int startIndex, int count)
+               {
+                       if (source == null)
+                               throw new ArgumentNullException ();
+                       if (value == null)
+                               throw new ArgumentNullException ();
+                       if (startIndex < 0 || startIndex > source.Length)
+                               throw new ArgumentOutOfRangeException ();
+                       if (count < 0)
+                               throw new ArgumentOutOfRangeException ();
+                       return IndexOf (source, value, startIndex, count, CompareOptions.None);
+               }
+               
+               [MonoTODO]
+               public virtual int IndexOf (string source, char value, int startIndex, int count, CompareOptions options)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public virtual int IndexOf (string source, string value, int startIndex, int count, CompareOptions options)
+               {
+                       throw new NotImplementedException ();
+               }
+
+
                [MonoTODO]
                void IDeserializationCallback.OnDeserialization(object sender)
                {