| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437 |
- //
- // System.Globalization.CompareInfo
- //
- // Authors:
- // Rodrigo Moya ([email protected])
- //
- // (C) Ximian, Inc. 2002
- //
- using System.Reflection;
- using System.Runtime.Serialization;
- namespace System.Globalization
- {
- [Serializable]
- public class CompareInfo : IDeserializationCallback
- {
- /* Hide the .ctor() */
- CompareInfo() {}
-
- 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 ();
- }
- [MonoTODO]
- public override bool Equals(object value)
- {
- throw new NotImplementedException();
- }
- [MonoTODO]
- public static CompareInfo GetCompareInfo(int culture)
- {
- throw new NotImplementedException();
- }
- [MonoTODO]
- public static CompareInfo GetCompareInfo(string name)
- {
- if(name == null) {
- throw new ArgumentNullException("name is null");
- }
- throw new NotImplementedException();
- }
- [MonoTODO]
- public static CompareInfo GetCompareInfo(int culture, Assembly assembly)
- {
- if(assembly == null) {
- throw new ArgumentNullException("assembly is null");
- }
- throw new NotImplementedException();
- }
- [MonoTODO]
- public static CompareInfo GetCompareInfo(string name, Assembly assembly)
- {
- if(name == null) {
- throw new ArgumentNullException("name is null");
- }
- if(assembly == null) {
- throw new ArgumentNullException("assembly is null");
- }
- throw new NotImplementedException();
- }
- [MonoTODO]
- public override int GetHashCode()
- {
- throw new NotImplementedException();
- }
- [MonoTODO]
- public virtual SortKey GetSortKey(string source)
- {
- throw new NotImplementedException();
- }
- [MonoTODO]
- public virtual SortKey GetSortKey(string source,
- 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]
- public virtual bool IsPrefix(string source, string prefix)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- if(prefix == null) {
- throw new ArgumentNullException("prefix is null");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual bool IsPrefix(string source, string prefix, CompareOptions options)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- if(prefix == null) {
- throw new ArgumentNullException("prefix is null");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual bool IsSuffix(string source, string suffix)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- if(suffix == null) {
- throw new ArgumentNullException("suffix is null");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual bool IsSuffix(string source, string suffix, CompareOptions options)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- if(suffix == null) {
- throw new ArgumentNullException("suffix is null");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual int LastIndexOf(string source, char value)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual int LastIndexOf(string source, string value)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- if(value == null) {
- throw new ArgumentNullException("value is null");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual int LastIndexOf(string source, char value,
- CompareOptions options)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual int LastIndexOf(string source, char value,
- int startIndex)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual int LastIndexOf(string source, string value,
- CompareOptions options)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- if(value == null) {
- throw new ArgumentNullException("value is null");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual int LastIndexOf(string source, string value,
- int startIndex)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- if(value == null) {
- throw new ArgumentNullException("value is null");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual int LastIndexOf(string source, char value,
- int startIndex,
- CompareOptions options)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual int LastIndexOf(string source, char value,
- int startIndex, int count)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- if(count < 0) {
- throw new ArgumentOutOfRangeException("count is less than zero");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual int LastIndexOf(string source, string value,
- int startIndex,
- CompareOptions options)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- if(value == null) {
- throw new ArgumentNullException("value is null");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual int LastIndexOf(string source, string value,
- int startIndex, int count)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- if(value == null) {
- throw new ArgumentNullException("value is null");
- }
- if(count < 0) {
- throw new ArgumentOutOfRangeException("count is less than zero");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual int LastIndexOf(string source, char value,
- int startIndex, int count,
- CompareOptions options)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- if(count < 0) {
- throw new ArgumentOutOfRangeException("count is less than zero");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public virtual int LastIndexOf(string source, string value,
- int startIndex, int count,
- CompareOptions options)
- {
- if(source == null) {
- throw new ArgumentNullException("source is null");
- }
- if(value == null) {
- throw new ArgumentNullException("value is null");
- }
- if(count < 0) {
- throw new ArgumentOutOfRangeException("count is less than zero");
- }
- throw new NotImplementedException ();
- }
- [MonoTODO]
- public override string ToString()
- {
- throw new NotImplementedException ();
- }
- [MonoTODO]
- void IDeserializationCallback.OnDeserialization(object sender)
- {
- throw new NotImplementedException ();
- }
- /* LAMESPEC: not mentioned in the spec, but corcompare
- * shows it. Some documentation about what it does
- * would be nice.
- */
- [MonoTODO]
- public Int32 LCID
- {
- get {
- throw new NotImplementedException();
- }
- }
- }
- }
|