240 lines
10 KiB
C#
240 lines
10 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>Represents a string comparison operation that uses specific case and culture-based or ordinal comparison rules.</summary>
|
|
// Token: 0x0200013B RID: 315
|
|
[Token(Token = "0x200013B")]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public abstract class StringComparer : IComparer, IEqualityComparer, IComparer<string>, IEqualityComparer<string>
|
|
{
|
|
/// <summary>Gets a <see cref="T:System.StringComparer" /> object that performs a case-sensitive string comparison using the word comparison rules of the invariant culture.</summary>
|
|
/// <returns>A new <see cref="T:System.StringComparer" /> object.</returns>
|
|
// Token: 0x170000F7 RID: 247
|
|
// (get) Token: 0x06000C77 RID: 3191 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000F7")]
|
|
public static StringComparer InvariantCulture
|
|
{
|
|
[Token(Token = "0x6000C77")]
|
|
[Address(RVA = "0x2C457A0", Offset = "0x2C445A0", VA = "0x182C457A0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.StringComparer" /> object that performs a case-insensitive string comparison using the word comparison rules of the invariant culture.</summary>
|
|
/// <returns>A new <see cref="T:System.StringComparer" /> object.</returns>
|
|
// Token: 0x170000F8 RID: 248
|
|
// (get) Token: 0x06000C78 RID: 3192 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000F8")]
|
|
public static StringComparer InvariantCultureIgnoreCase
|
|
{
|
|
[Token(Token = "0x6000C78")]
|
|
[Address(RVA = "0x2C45740", Offset = "0x2C44540", VA = "0x182C45740")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.StringComparer" /> object that performs case-insensitive string comparisons using the word comparison rules of the current culture.</summary>
|
|
/// <returns>A new object for string comparison.</returns>
|
|
// Token: 0x170000F9 RID: 249
|
|
// (get) Token: 0x06000C79 RID: 3193 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000F9")]
|
|
public static StringComparer CurrentCultureIgnoreCase
|
|
{
|
|
[Token(Token = "0x6000C79")]
|
|
[Address(RVA = "0x2C456C0", Offset = "0x2C444C0", VA = "0x182C456C0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.StringComparer" /> object that performs a case-sensitive ordinal string comparison.</summary>
|
|
/// <returns>A <see cref="T:System.StringComparer" /> object.</returns>
|
|
// Token: 0x170000FA RID: 250
|
|
// (get) Token: 0x06000C7A RID: 3194 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000FA")]
|
|
public static StringComparer Ordinal
|
|
{
|
|
[Token(Token = "0x6000C7A")]
|
|
[Address(RVA = "0x2C45860", Offset = "0x2C44660", VA = "0x182C45860")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a <see cref="T:System.StringComparer" /> object that performs a case-insensitive ordinal string comparison.</summary>
|
|
/// <returns>A <see cref="T:System.StringComparer" /> object.</returns>
|
|
// Token: 0x170000FB RID: 251
|
|
// (get) Token: 0x06000C7B RID: 3195 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000FB")]
|
|
public static StringComparer OrdinalIgnoreCase
|
|
{
|
|
[Token(Token = "0x6000C7B")]
|
|
[Address(RVA = "0x2C45800", Offset = "0x2C44600", VA = "0x182C45800")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, compares two objects and returns an indication of their relative sort order.</summary>
|
|
/// <param name="x">An object to compare to <paramref name="y" />.</param>
|
|
/// <param name="y">An object to compare to <paramref name="x" />.</param>
|
|
/// <returns>A signed integer that indicates the relative values of <paramref name="x" /> and <paramref name="y" />, as shown in the following table.
|
|
/// Value
|
|
///
|
|
/// Meaning
|
|
///
|
|
/// Less than zero
|
|
///
|
|
/// <paramref name="x" /> precedes <paramref name="y" /> in the sort order.
|
|
///
|
|
/// -or-
|
|
///
|
|
/// <paramref name="x" /> is <see langword="null" /> and <paramref name="y" /> is not <see langword="null" />.
|
|
///
|
|
/// Zero
|
|
///
|
|
/// <paramref name="x" /> is equal to <paramref name="y" />.
|
|
///
|
|
/// -or-
|
|
///
|
|
/// <paramref name="x" /> and <paramref name="y" /> are both <see langword="null" />.
|
|
///
|
|
/// Greater than zero
|
|
///
|
|
/// <paramref name="x" /> follows <paramref name="y" /> in the sort order.
|
|
///
|
|
/// -or-
|
|
///
|
|
/// <paramref name="y" /> is <see langword="null" /> and <paramref name="x" /> is not <see langword="null" />.</returns>
|
|
/// <exception cref="T:System.ArgumentException">Neither <paramref name="x" /> nor <paramref name="y" /> is a <see cref="T:System.String" /> object, and neither <paramref name="x" /> nor <paramref name="y" /> implements the <see cref="T:System.IComparable" /> interface.</exception>
|
|
// Token: 0x06000C7C RID: 3196 RVA: 0x0000AB18 File Offset: 0x00008D18
|
|
[Token(Token = "0x6000C7C")]
|
|
[Address(RVA = "0x2C45240", Offset = "0x2C44040", VA = "0x182C45240", Slot = "4")]
|
|
public int Compare(object x, object y)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, indicates whether two objects are equal.</summary>
|
|
/// <param name="x">An object to compare to <paramref name="y" />.</param>
|
|
/// <param name="y">An object to compare to <paramref name="x" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="x" /> and <paramref name="y" /> refer to the same object, or <paramref name="x" /> and <paramref name="y" /> are both the same type of object and those objects are equal, or both <paramref name="x" /> and <paramref name="y" /> are <see langword="null" />; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06000C7D RID: 3197 RVA: 0x0000AB30 File Offset: 0x00008D30
|
|
[Token(Token = "0x6000C7D")]
|
|
[Address(RVA = "0x2C45400", Offset = "0x2C44200", VA = "0x182C45400", Slot = "5")]
|
|
public bool Equals(object x, object y)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, gets the hash code for the specified object.</summary>
|
|
/// <param name="obj">An object.</param>
|
|
/// <returns>A 32-bit signed hash code calculated from the value of the <paramref name="obj" /> parameter.</returns>
|
|
/// <exception cref="T:System.ArgumentException">Not enough memory is available to allocate the buffer that is required to compute the hash code.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="obj" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06000C7E RID: 3198 RVA: 0x0000AB48 File Offset: 0x00008D48
|
|
[Token(Token = "0x6000C7E")]
|
|
[Address(RVA = "0x2C454E0", Offset = "0x2C442E0", VA = "0x182C454E0", Slot = "6")]
|
|
public int GetHashCode(object obj)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, compares two strings and returns an indication of their relative sort order.</summary>
|
|
/// <param name="x">A string to compare to <paramref name="y" />.</param>
|
|
/// <param name="y">A string to compare to <paramref name="x" />.</param>
|
|
/// <returns>A signed integer that indicates the relative values of <paramref name="x" /> and <paramref name="y" />, as shown in the following table.
|
|
/// Value
|
|
///
|
|
/// Meaning
|
|
///
|
|
/// Less than zero
|
|
///
|
|
/// <paramref name="x" /> precedes <paramref name="y" /> in the sort order.
|
|
///
|
|
/// -or-
|
|
///
|
|
/// <paramref name="x" /> is <see langword="null" /> and <paramref name="y" /> is not <see langword="null" />.
|
|
///
|
|
/// Zero
|
|
///
|
|
/// <paramref name="x" /> is equal to <paramref name="y" />.
|
|
///
|
|
/// -or-
|
|
///
|
|
/// <paramref name="x" /> and <paramref name="y" /> are both <see langword="null" />.
|
|
///
|
|
/// Greater than zero
|
|
///
|
|
/// <paramref name="x" /> follows <paramref name="y" /> in the sort order.
|
|
///
|
|
/// -or-
|
|
///
|
|
/// <paramref name="y" /> is <see langword="null" /> and <paramref name="x" /> is not <see langword="null" />.</returns>
|
|
// Token: 0x06000C7F RID: 3199
|
|
[Token(Token = "0x6000C7F")]
|
|
[Address(Slot = "10")]
|
|
public abstract int Compare(string x, string y);
|
|
|
|
/// <summary>When overridden in a derived class, indicates whether two strings are equal.</summary>
|
|
/// <param name="x">A string to compare to <paramref name="y" />.</param>
|
|
/// <param name="y">A string to compare to <paramref name="x" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="x" /> and <paramref name="y" /> refer to the same object, or <paramref name="x" /> and <paramref name="y" /> are equal, or <paramref name="x" /> and <paramref name="y" /> are <see langword="null" />; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06000C80 RID: 3200
|
|
[Token(Token = "0x6000C80")]
|
|
[Address(Slot = "11")]
|
|
public abstract bool Equals(string x, string y);
|
|
|
|
/// <summary>When overridden in a derived class, gets the hash code for the specified string.</summary>
|
|
/// <param name="obj">A string.</param>
|
|
/// <returns>A 32-bit signed hash code calculated from the value of the <paramref name="obj" /> parameter.</returns>
|
|
/// <exception cref="T:System.ArgumentException">Not enough memory is available to allocate the buffer that is required to compute the hash code.</exception>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="obj" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06000C81 RID: 3201
|
|
[Token(Token = "0x6000C81")]
|
|
[Address(Slot = "12")]
|
|
public abstract int GetHashCode(string obj);
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.StringComparer" /> class.</summary>
|
|
// Token: 0x06000C82 RID: 3202 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000C82")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
protected StringComparer()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040004BF RID: 1215
|
|
[Token(Token = "0x40004BF")]
|
|
private static readonly StringComparer _invariantCulture;
|
|
|
|
// Token: 0x040004C0 RID: 1216
|
|
[Token(Token = "0x40004C0")]
|
|
private static readonly StringComparer _invariantCultureIgnoreCase;
|
|
|
|
// Token: 0x040004C1 RID: 1217
|
|
[Token(Token = "0x40004C1")]
|
|
private static readonly StringComparer _ordinal;
|
|
|
|
// Token: 0x040004C2 RID: 1218
|
|
[Token(Token = "0x40004C2")]
|
|
private static readonly StringComparer _ordinalIgnoreCase;
|
|
}
|
|
}
|