Files
2026-04-10 22:50:51 +02:00

186 lines
11 KiB
C#

using System;
using Cpp2IlInjected;
namespace System.Globalization
{
/// <summary>Supports the use of non-ASCII characters for Internet domain names. This class cannot be inherited.</summary>
// Token: 0x020002FB RID: 763
[Token(Token = "0x20002FB")]
public sealed class IdnMapping
{
/// <summary>Initializes a new instance of the <see cref="T:System.Globalization.IdnMapping" /> class.</summary>
// Token: 0x06001C47 RID: 7239 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001C47")]
[Address(RVA = "0x2C0CBC0", Offset = "0x2C0B9C0", VA = "0x182C0CBC0")]
public IdnMapping()
{
}
/// <summary>Indicates whether a specified object and the current <see cref="T:System.Globalization.IdnMapping" /> object are equal.</summary>
/// <param name="obj">The object to compare to the current object.</param>
/// <returns>
/// <see langword="true" /> if the object specified by the <paramref name="obj" /> parameter is derived from <see cref="T:System.Globalization.IdnMapping" /> and its <see cref="P:System.Globalization.IdnMapping.AllowUnassigned" /> and <see cref="P:System.Globalization.IdnMapping.UseStd3AsciiRules" /> properties are equal; otherwise, <see langword="false" />.</returns>
// Token: 0x06001C48 RID: 7240 RVA: 0x000126F0 File Offset: 0x000108F0
[Token(Token = "0x6001C48")]
[Address(RVA = "0x2C0BBF0", Offset = "0x2C0A9F0", VA = "0x182C0BBF0", Slot = "0")]
public override bool Equals(object obj)
{
return default(bool);
}
/// <summary>Returns a hash code for this <see cref="T:System.Globalization.IdnMapping" /> object.</summary>
/// <returns>One of four 32-bit signed constants derived from the properties of an <see cref="T:System.Globalization.IdnMapping" /> object. The return value has no special meaning and is not suitable for use in a hash code algorithm.</returns>
// Token: 0x06001C49 RID: 7241 RVA: 0x00012708 File Offset: 0x00010908
[Token(Token = "0x6001C49")]
[Address(RVA = "0x2C0BE80", Offset = "0x2C0AC80", VA = "0x182C0BE80", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Encodes a string of domain name labels that consist of Unicode characters to a string of displayable Unicode characters in the US-ASCII character range. The string is formatted according to the IDNA standard.</summary>
/// <param name="unicode">The string to convert, which consists of one or more domain name labels delimited with label separators.</param>
/// <returns>The equivalent of the string specified by the <paramref name="unicode" /> parameter, consisting of displayable Unicode characters in the US-ASCII character range (U+0020 to U+007E) and formatted according to the IDNA standard.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="unicode" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="unicode" /> is invalid based on the <see cref="P:System.Globalization.IdnMapping.AllowUnassigned" /> and <see cref="P:System.Globalization.IdnMapping.UseStd3AsciiRules" /> properties, and the IDNA standard.</exception>
// Token: 0x06001C4A RID: 7242 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001C4A")]
[Address(RVA = "0x2C0BD90", Offset = "0x2C0AB90", VA = "0x182C0BD90")]
public string GetAscii(string unicode)
{
return null;
}
/// <summary>Encodes the specified number of characters in a substring of domain name labels that include Unicode characters outside the US-ASCII character range. The substring is converted to a string of displayable Unicode characters in the US-ASCII character range and is formatted according to the IDNA standard.</summary>
/// <param name="unicode">The string to convert, which consists of one or more domain name labels delimited with label separators.</param>
/// <param name="index">A zero-based offset into <paramref name="unicode" /> that specifies the start of the substring.</param>
/// <param name="count">The number of characters to convert in the substring that starts at the position specified by <paramref name="index" /> in the <paramref name="unicode" /> string.</param>
/// <returns>The equivalent of the substring specified by the <paramref name="unicode" />, <paramref name="index" />, and <paramref name="count" /> parameters, consisting of displayable Unicode characters in the US-ASCII character range (U+0020 to U+007E) and formatted according to the IDNA standard.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="unicode" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> or <paramref name="count" /> is less than zero.
/// -or-
/// <paramref name="index" /> is greater than the length of <paramref name="unicode" />.
/// -or-
/// <paramref name="index" /> is greater than the length of <paramref name="unicode" /> minus <paramref name="count" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="unicode" /> is invalid based on the <see cref="P:System.Globalization.IdnMapping.AllowUnassigned" /> and <see cref="P:System.Globalization.IdnMapping.UseStd3AsciiRules" /> properties, and the IDNA standard.</exception>
// Token: 0x06001C4B RID: 7243 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001C4B")]
[Address(RVA = "0x2C0BC70", Offset = "0x2C0AA70", VA = "0x182C0BC70")]
public string GetAscii(string unicode, int index, int count)
{
return null;
}
// Token: 0x06001C4C RID: 7244 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001C4C")]
[Address(RVA = "0x2C0B9C0", Offset = "0x2C0A7C0", VA = "0x182C0B9C0")]
private string Convert(string input, int index, int count, bool toAscii)
{
return null;
}
// Token: 0x06001C4D RID: 7245 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001C4D")]
[Address(RVA = "0x2C0C1E0", Offset = "0x2C0AFE0", VA = "0x182C0C1E0")]
private string ToAscii(string s, int offset)
{
return null;
}
// Token: 0x06001C4E RID: 7246 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001C4E")]
[Address(RVA = "0x2C0C690", Offset = "0x2C0B490", VA = "0x182C0C690")]
private void VerifyLength(string s, int offset)
{
}
// Token: 0x06001C4F RID: 7247 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001C4F")]
[Address(RVA = "0x2C0C0B0", Offset = "0x2C0AEB0", VA = "0x182C0C0B0")]
private string NamePrep(string s, int offset)
{
return null;
}
// Token: 0x06001C50 RID: 7248 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001C50")]
[Address(RVA = "0x2C0C790", Offset = "0x2C0B590", VA = "0x182C0C790")]
private void VerifyProhibitedCharacters(string s, int offset)
{
}
// Token: 0x06001C51 RID: 7249 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001C51")]
[Address(RVA = "0x2C0C9A0", Offset = "0x2C0B7A0", VA = "0x182C0C9A0")]
private void VerifyStd3AsciiRules(string s, int offset)
{
}
/// <summary>Decodes a string of one or more domain name labels, encoded according to the IDNA standard, to a string of Unicode characters.</summary>
/// <param name="ascii">The string to decode, which consists of one or more labels in the US-ASCII character range (U+0020 to U+007E) encoded according to the IDNA standard.</param>
/// <returns>The Unicode equivalent of the IDNA substring specified by the <paramref name="ascii" /> parameter.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="ascii" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="ascii" /> is invalid based on the <see cref="P:System.Globalization.IdnMapping.AllowUnassigned" /> and <see cref="P:System.Globalization.IdnMapping.UseStd3AsciiRules" /> properties, and the IDNA standard.</exception>
// Token: 0x06001C52 RID: 7250 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001C52")]
[Address(RVA = "0x2C0BFC0", Offset = "0x2C0ADC0", VA = "0x182C0BFC0")]
public string GetUnicode(string ascii)
{
return null;
}
/// <summary>Decodes a substring of a specified length that contains one or more domain name labels, encoded according to the IDNA standard, to a string of Unicode characters.</summary>
/// <param name="ascii">The string to decode, which consists of one or more labels in the US-ASCII character range (U+0020 to U+007E) encoded according to the IDNA standard.</param>
/// <param name="index">A zero-based offset into <paramref name="ascii" /> that specifies the start of the substring.</param>
/// <param name="count">The number of characters to convert in the substring that starts at the position specified by <paramref name="index" /> in the <paramref name="ascii" /> string.</param>
/// <returns>The Unicode equivalent of the IDNA substring specified by the <paramref name="ascii" />, <paramref name="index" />, and <paramref name="count" /> parameters.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="ascii" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="index" /> or <paramref name="count" /> is less than zero.
/// -or-
/// <paramref name="index" /> is greater than the length of <paramref name="ascii" />.
/// -or-
/// <paramref name="index" /> is greater than the length of <paramref name="ascii" /> minus <paramref name="count" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="ascii" /> is invalid based on the <see cref="P:System.Globalization.IdnMapping.AllowUnassigned" /> and <see cref="P:System.Globalization.IdnMapping.UseStd3AsciiRules" /> properties, and the IDNA standard.</exception>
// Token: 0x06001C53 RID: 7251 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001C53")]
[Address(RVA = "0x2C0BEA0", Offset = "0x2C0ACA0", VA = "0x182C0BEA0")]
public string GetUnicode(string ascii, int index, int count)
{
return null;
}
// Token: 0x06001C54 RID: 7252 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001C54")]
[Address(RVA = "0x2C0C4F0", Offset = "0x2C0B2F0", VA = "0x182C0C4F0")]
private string ToUnicode(string s, int offset)
{
return null;
}
// Token: 0x0400103A RID: 4154
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400103A")]
private bool allow_unassigned;
// Token: 0x0400103B RID: 4155
[FieldOffset(Offset = "0x11")]
[Token(Token = "0x400103B")]
private bool use_std3;
// Token: 0x0400103C RID: 4156
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400103C")]
private Punycode puny;
}
}