256 lines
11 KiB
C#
256 lines
11 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
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: 0x02000142 RID: 322
|
|
[Token(Token = "0x2000142")]
|
|
[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: 0x170000FC RID: 252
|
|
// (get) Token: 0x06000CAA RID: 3242 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000FC")]
|
|
public static StringComparer InvariantCulture
|
|
{
|
|
[Token(Token = "0x6000CAA")]
|
|
[Address(RVA = "0xD35E00", Offset = "0xD34E00", VA = "0x180D35E00")]
|
|
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: 0x170000FD RID: 253
|
|
// (get) Token: 0x06000CAB RID: 3243 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000FD")]
|
|
public static StringComparer InvariantCultureIgnoreCase
|
|
{
|
|
[Token(Token = "0x6000CAB")]
|
|
[Address(RVA = "0xD35DA0", Offset = "0xD34DA0", VA = "0x180D35DA0")]
|
|
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: 0x170000FE RID: 254
|
|
// (get) Token: 0x06000CAC RID: 3244 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000FE")]
|
|
public static StringComparer CurrentCultureIgnoreCase
|
|
{
|
|
[Token(Token = "0x6000CAC")]
|
|
[Address(RVA = "0xD35D20", Offset = "0xD34D20", VA = "0x180D35D20")]
|
|
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: 0x170000FF RID: 255
|
|
// (get) Token: 0x06000CAD RID: 3245 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000FF")]
|
|
public static StringComparer Ordinal
|
|
{
|
|
[Token(Token = "0x6000CAD")]
|
|
[Address(RVA = "0xD35EC0", Offset = "0xD34EC0", VA = "0x180D35EC0")]
|
|
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: 0x17000100 RID: 256
|
|
// (get) Token: 0x06000CAE RID: 3246 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x17000100")]
|
|
public static StringComparer OrdinalIgnoreCase
|
|
{
|
|
[Token(Token = "0x6000CAE")]
|
|
[Address(RVA = "0xD35E60", Offset = "0xD34E60", VA = "0x180D35E60")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Creates a <see cref="T:System.StringComparer" /> object that compares strings according to the rules of a specified culture.</summary>
|
|
/// <param name="culture">A culture whose linguistic rules are used to perform a string comparison.</param>
|
|
/// <param name="ignoreCase">
|
|
/// <see langword="true" /> to specify that comparison operations be case-insensitive; <see langword="false" /> to specify that comparison operations be case-sensitive.</param>
|
|
/// <returns>A new <see cref="T:System.StringComparer" /> object that performs string comparisons according to the comparison rules used by the <paramref name="culture" /> parameter and the case rule specified by the <paramref name="ignoreCase" /> parameter.</returns>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="culture" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06000CAF RID: 3247 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6000CAF")]
|
|
[Address(RVA = "0xD359C0", Offset = "0xD349C0", VA = "0x180D359C0")]
|
|
public static StringComparer Create(CultureInfo culture, bool ignoreCase)
|
|
{
|
|
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: 0x06000CB0 RID: 3248 RVA: 0x0000AE00 File Offset: 0x00009000
|
|
[Token(Token = "0x6000CB0")]
|
|
[Address(RVA = "0xD35800", Offset = "0xD34800", VA = "0x180D35800", 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: 0x06000CB1 RID: 3249 RVA: 0x0000AE18 File Offset: 0x00009018
|
|
[Token(Token = "0x6000CB1")]
|
|
[Address(RVA = "0xD35A60", Offset = "0xD34A60", VA = "0x180D35A60", 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: 0x06000CB2 RID: 3250 RVA: 0x0000AE30 File Offset: 0x00009030
|
|
[Token(Token = "0x6000CB2")]
|
|
[Address(RVA = "0xD35B40", Offset = "0xD34B40", VA = "0x180D35B40", 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: 0x06000CB3 RID: 3251
|
|
[Token(Token = "0x6000CB3")]
|
|
[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: 0x06000CB4 RID: 3252
|
|
[Token(Token = "0x6000CB4")]
|
|
[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: 0x06000CB5 RID: 3253
|
|
[Token(Token = "0x6000CB5")]
|
|
[Address(Slot = "12")]
|
|
public abstract int GetHashCode(string obj);
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.StringComparer" /> class.</summary>
|
|
// Token: 0x06000CB6 RID: 3254 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000CB6")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
protected StringComparer()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040004C9 RID: 1225
|
|
[Token(Token = "0x40004C9")]
|
|
private static readonly StringComparer _invariantCulture;
|
|
|
|
// Token: 0x040004CA RID: 1226
|
|
[Token(Token = "0x40004CA")]
|
|
private static readonly StringComparer _invariantCultureIgnoreCase;
|
|
|
|
// Token: 0x040004CB RID: 1227
|
|
[Token(Token = "0x40004CB")]
|
|
private static readonly StringComparer _ordinal;
|
|
|
|
// Token: 0x040004CC RID: 1228
|
|
[Token(Token = "0x40004CC")]
|
|
private static readonly StringComparer _ordinalIgnoreCase;
|
|
}
|
|
}
|