Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Globalization/IdnMapping.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

186 lines
10 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: 0x02000315 RID: 789
[Token(Token = "0x2000315")]
public sealed class IdnMapping
{
/// <summary>Initializes a new instance of the <see cref="T:System.Globalization.IdnMapping" /> class.</summary>
// Token: 0x06001E48 RID: 7752 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E48")]
[Address(RVA = "0xE30850", Offset = "0xE2F850", VA = "0x180E30850")]
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: 0x06001E49 RID: 7753 RVA: 0x00014A90 File Offset: 0x00012C90
[Token(Token = "0x6001E49")]
[Address(RVA = "0xE2F880", Offset = "0xE2E880", VA = "0x180E2F880", 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: 0x06001E4A RID: 7754 RVA: 0x00014AA8 File Offset: 0x00012CA8
[Token(Token = "0x6001E4A")]
[Address(RVA = "0xE2FB10", Offset = "0xE2EB10", VA = "0x180E2FB10", 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: 0x06001E4B RID: 7755 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001E4B")]
[Address(RVA = "0xE2FA20", Offset = "0xE2EA20", VA = "0x180E2FA20")]
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: 0x06001E4C RID: 7756 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001E4C")]
[Address(RVA = "0xE2F900", Offset = "0xE2E900", VA = "0x180E2F900")]
public string GetAscii(string unicode, int index, int count)
{
return null;
}
// Token: 0x06001E4D RID: 7757 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001E4D")]
[Address(RVA = "0xE2F650", Offset = "0xE2E650", VA = "0x180E2F650")]
private string Convert(string input, int index, int count, bool toAscii)
{
return null;
}
// Token: 0x06001E4E RID: 7758 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001E4E")]
[Address(RVA = "0xE2FE70", Offset = "0xE2EE70", VA = "0x180E2FE70")]
private string ToAscii(string s, int offset)
{
return null;
}
// Token: 0x06001E4F RID: 7759 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E4F")]
[Address(RVA = "0xE30320", Offset = "0xE2F320", VA = "0x180E30320")]
private void VerifyLength(string s, int offset)
{
}
// Token: 0x06001E50 RID: 7760 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001E50")]
[Address(RVA = "0xE2FD40", Offset = "0xE2ED40", VA = "0x180E2FD40")]
private string NamePrep(string s, int offset)
{
return null;
}
// Token: 0x06001E51 RID: 7761 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E51")]
[Address(RVA = "0xE30420", Offset = "0xE2F420", VA = "0x180E30420")]
private void VerifyProhibitedCharacters(string s, int offset)
{
}
// Token: 0x06001E52 RID: 7762 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E52")]
[Address(RVA = "0xE30630", Offset = "0xE2F630", VA = "0x180E30630")]
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: 0x06001E53 RID: 7763 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001E53")]
[Address(RVA = "0xE2FC50", Offset = "0xE2EC50", VA = "0x180E2FC50")]
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: 0x06001E54 RID: 7764 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001E54")]
[Address(RVA = "0xE2FB30", Offset = "0xE2EB30", VA = "0x180E2FB30")]
public string GetUnicode(string ascii, int index, int count)
{
return null;
}
// Token: 0x06001E55 RID: 7765 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001E55")]
[Address(RVA = "0xE30180", Offset = "0xE2F180", VA = "0x180E30180")]
private string ToUnicode(string s, int offset)
{
return null;
}
// Token: 0x040010F5 RID: 4341
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40010F5")]
private bool allow_unassigned;
// Token: 0x040010F6 RID: 4342
[FieldOffset(Offset = "0x11")]
[Token(Token = "0x40010F6")]
private bool use_std3;
// Token: 0x040010F7 RID: 4343
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40010F7")]
private Punycode puny;
}
}