From 165effebde94870d581eb0803bcd326b3ae596a0 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Fri, 11 Apr 2014 10:52:45 -0700 Subject: [PATCH] Abstractions: Pull in k10 dependency for IdnMapping. --- .../HostString.cs | 194 ------------------ .../project.json | 1 + 2 files changed, 1 insertion(+), 194 deletions(-) diff --git a/src/Microsoft.AspNet.Abstractions/HostString.cs b/src/Microsoft.AspNet.Abstractions/HostString.cs index f127eddaad..0847c7421e 100644 --- a/src/Microsoft.AspNet.Abstractions/HostString.cs +++ b/src/Microsoft.AspNet.Abstractions/HostString.cs @@ -193,199 +193,5 @@ namespace Microsoft.AspNet.Abstractions { return !left.Equals(right); } - -#if K10 - internal class IdnMapping - { - // - // 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. - // - // Parameters: - // unicode: - // The string to convert, which consists of one or more domain name labels delimited - // with label separators. - // - // Returns: - // The equivalent of the string specified by the 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. - // - // Exceptions: - // System.ArgumentNullException: - // unicode is null. - // - // System.ArgumentException: - // unicode is invalid based on the System.Globalization.IdnMapping.AllowUnassigned - // and System.Globalization.IdnMapping.UseStd3AsciiRules properties, and the - // IDNA standard. - public string GetAscii(string unicode) { throw new NotImplementedException(); } - - // - // Summary: - // Encodes 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. - // - // Parameters: - // unicode: - // The string to convert, which consists of one or more domain name labels delimited - // with label separators. - // - // index: - // A zero-based offset into unicode that specifies the start of the substring - // to convert. The conversion operation continues to the end of the unicode - // string. - // - // Returns: - // The equivalent of the substring specified by the unicode and index parameters, - // consisting of displayable Unicode characters in the US-ASCII character range - // (U+0020 to U+007E) and formatted according to the IDNA standard. - // - // Exceptions: - // System.ArgumentNullException: - // unicode is null. - // - // System.ArgumentOutOfRangeException: - // index is less than zero.-or-index is greater than the length of unicode. - // - // System.ArgumentException: - // unicode is invalid based on the System.Globalization.IdnMapping.AllowUnassigned - // and System.Globalization.IdnMapping.UseStd3AsciiRules properties, and the - // IDNA standard. - public string GetAscii(string unicode, int index) { throw new NotImplementedException(); } - - // - // 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. - // - // Parameters: - // unicode: - // The string to convert, which consists of one or more domain name labels delimited - // with label separators. - // - // index: - // A zero-based offset into unicode that specifies the start of the substring. - // - // count: - // The number of characters to convert in the substring that starts at the position - // specified by index in the unicode string. - // - // Returns: - // The equivalent of the substring specified by the unicode, index, and 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. - // - // Exceptions: - // System.ArgumentNullException: - // unicode is null. - // - // System.ArgumentOutOfRangeException: - // index or count is less than zero.-or-index is greater than the length of - // unicode.-or-index is greater than the length of unicode minus count. - // - // System.ArgumentException: - // unicode is invalid based on the System.Globalization.IdnMapping.AllowUnassigned - // and System.Globalization.IdnMapping.UseStd3AsciiRules properties, and the - // IDNA standard. - public string GetAscii(string unicode, int index, int count) { throw new NotImplementedException(); } - - // - // Summary: - // Decodes a string of one or more domain name labels, encoded according to - // the IDNA standard, to a string of Unicode characters. - // - // Parameters: - // 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. - // - // Returns: - // The Unicode equivalent of the IDNA substring specified by the ascii parameter. - // - // Exceptions: - // System.ArgumentNullException: - // ascii is null. - // - // System.ArgumentException: - // ascii is invalid based on the System.Globalization.IdnMapping.AllowUnassigned - // and System.Globalization.IdnMapping.UseStd3AsciiRules properties, and the - // IDNA standard. - public string GetUnicode(string ascii) { throw new NotImplementedException(); } - - // - // Summary: - // Decodes a substring of one or more domain name labels, encoded according - // to the IDNA standard, to a string of Unicode characters. - // - // Parameters: - // 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. - // - // index: - // A zero-based offset into ascii that specifies the start of the substring - // to decode. The decoding operation continues to the end of the ascii string. - // - // Returns: - // The Unicode equivalent of the IDNA substring specified by the ascii and index - // parameters. - // - // Exceptions: - // System.ArgumentNullException: - // ascii is null. - // - // System.ArgumentOutOfRangeException: - // index is less than zero.-or-index is greater than the length of ascii. - // - // System.ArgumentException: - // ascii is invalid based on the System.Globalization.IdnMapping.AllowUnassigned - // and System.Globalization.IdnMapping.UseStd3AsciiRules properties, and the - // IDNA standard. - public string GetUnicode(string ascii, int index) { throw new NotImplementedException(); } - - // - // 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. - // - // Parameters: - // 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. - // - // index: - // A zero-based offset into ascii that specifies the start of the substring. - // - // count: - // The number of characters to convert in the substring that starts at the position - // specified by index in the ascii string. - // - // Returns: - // The Unicode equivalent of the IDNA substring specified by the ascii, index, - // and count parameters. - // - // Exceptions: - // System.ArgumentNullException: - // ascii is null. - // - // System.ArgumentOutOfRangeException: - // index or count is less than zero.-or-index is greater than the length of - // ascii.-or-index is greater than the length of ascii minus count. - // - // System.ArgumentException: - // ascii is invalid based on the System.Globalization.IdnMapping.AllowUnassigned - // and System.Globalization.IdnMapping.UseStd3AsciiRules properties, and the - // IDNA standard. - public string GetUnicode(string ascii, int index, int count) { throw new NotImplementedException(); } - } -#endif } } diff --git a/src/Microsoft.AspNet.Abstractions/project.json b/src/Microsoft.AspNet.Abstractions/project.json index 40f2abd874..f626e3463a 100644 --- a/src/Microsoft.AspNet.Abstractions/project.json +++ b/src/Microsoft.AspNet.Abstractions/project.json @@ -9,6 +9,7 @@ "System.ComponentModel": "4.0.0.0", "System.Diagnostics.Tools": "4.0.0.0", "System.Globalization": "4.0.10.0", + "System.Globalization.Extensions": "4.0.0.0", "System.IO": "4.0.0.0", "System.Linq": "4.0.0.0", "System.Runtime": "4.0.20.0",